Talk:HOWTO Gentoo on Cygwin

From Gentoo Linux Wiki

Jump to: navigation, search


Pending tasks for Talk:HOWTO Gentoo on Cygwin

edit -history - watch - purge
  • FIXME: Documentation on auto-generating cygwin-binary ebuilds from the Cygwin setup.ini tree (and/or possible hosting of the same) should be put here.
  • FIXME: Show commands for handling user/group account initialization here.
  • FIXME: Portage whines about not finding einfo et al, which are defined in /etc/init.d/functions.sh, which you can copy straight from a Gentoo box, or we can DTRT and get sys-apps/baselayout to install properly.
  • FIXED?: USE="nls" need to work. Otherwise Gentoo on Cygwin will be useless for non-americans.

Contents

[edit] Script to generate /etc/portage/profile/package.provided

Would this work?

Code: Generate package.provided
cygcheck -c -d  | \
  awk '{print "cygwin-binaries/"$1"-"$2}' | \
  dos2unix | \
  sed -e 's/-\([0-9]\+\)$/-r\1/' > /etc/portage/profile/package.provided

Possible problems are:

  • Package called "foo/bar-1". Will be converted to "foo/bar-r1". Will not happen if there is a dot in the version number.
  • Fails to produce valid atoms for some packages (on my installation: 13 packages out of 524).

-AnMaster 13:35, 9 March 2006 (GMT)

Aha! I didn't know you were a Cygwin user! (I thought I was spouting HOWTO instructions into a thankless void...) It looks like this works, but I was beginning to think that it would be best to integrate the version number translation process into the automated-ebuild-generator for the cygwin-binaries category. I'm looking into getting hosting for a portage.cygwin overlay via the original project (http://gentoocygwin.sourceforge.net/) and the original project leader. If this pans out, then it will become much more important that we have a way to fix the invalid atoms consistantly. It would also be convenient to generate /etc/portage/profile/virtuals at the same time, though I'd probably put that in /usr/local/portage.cygwin/profiles/default-cygwin/default-binaries/virtuals (or something of a similar name) instead.

That said, I think that your script is the right starting point, so I'm including it.

--Jalonso 22:46, 9 March 2006 (GMT)

I'm actually using cygwin for it's X server. I use coLinux.

I like the idea of portage cygwin, but when I emerged bzip2 things went odd (functions not found in DLL files, DLL files not found at all...). I went back to use the binary cygwin one for bzip2.

Some apps (like app-admin/localepurge) works without any patch. Only the keyword needs to be added.

One problem with cygwin is that it is very slow, even on my AMD64.

--AnMaster 08:37, 10 March 2006 (GMT)

Neat... I actually use colinux too (gentoo-ized and with evms... that was a bit of a hack). I use Cygwin in a lab environment that involves hardware interfacing (and coworkers with limited engineering/linux ability), which makes colinux too cumbersome for most work.

In other news, I'm trying to secure a well-positioned subversion repository to host a publicly-accessible portage overlay for Gentoo on Cygwin. Once that is in place, we should be able to make much smoother progress...

--Jalonso 18:48, 24 March 2006 (GMT)

Hey, I'm also trying this out. I'll let you know how it goes.

-- Ctchan 22:49, 7 April 2006 (GMT)


This is super gnarly. I am rsyncing immediately.

--Frew 20:07, 1 June 2006 (UTC)

[edit] toolchain inquiry.

Hi,

When I try to emerge portage, the merge is unsuccessful due to the absence of the toolchain-funcs.eclass and multilib.eclass files. Are there any viable solutions to this problem? --Jimi 18:41, 1 June 2006 (UTC)

[edit] Problem with the portage cache

When the emerge --sync command tries to update the portage cache, i get many(i think one for each updated package) errors. The error text indicates an invalid argument and an error when chowning a lockfile.

I already tried making /var/cache/edb/dep a managed mount. But when doing an emerge --regen to fill the cache after this i get the same error messages for each package in the portage tree.

The error messages all look like the following example (from emerge --debug --regen):

processing app-admin/eselect-blas
Cannot chown a lockfile. This could cause inconvenience later.

error processing app-admin/eselect-blas-0.1, continuing... ([Errno 22] Invalid argument: 
'/var/cache/edb/dep//usr/portage/app-admin/.update.2088.eselect-blas-0.1')


Does anybody have an idea what could cause this error?


Have you configured your user accounts and groups?

Arichard 23:00, 2 May 2007 (UTC)

[edit] Cygwin Portage Overlay

Once the overlay is set up, perhaps it could be linked to the Layman project? Just a thought.

Also, is there a mailing list or similar set up?

Endgame 11:00, 8 November 2006 (UTC)

Personal tools