On Thu, May 18, 2017 at 12:42:09AM -0400, Ian Stakenvicius wrote: > On 18/05/17 12:08 AM, Marty Plummer wrote: > > On Thu, May 18, 2017 at 06:46:24AM +0300, Alon Bar-Lev wrote: > >> Hi, > >> You can emerge crossdev and then run crossdev -t x86_64-w64-mingw32 or > >> crossdev -t i686-w64-mingw32 > >> Alon > >> > > I'm aware of that, using it. Its simply the fact that its fairly broken > > for mingw-w64, and requires quite a lot of hackage to get going. > > > > What I'm suggesting is the creation of a profile that should handle this > > sort of thing for you semi-automatically. Something like the > > prefix/windows, but meant more for toolchains. it seems that beber's > > portage tree at git.meleeweb.net/gentoo/portage.git already has a setup > > similar to what I envision already. > > > > There isn't a whole lot that's broken about it actually -- the main > issue is that the default 'embedded' profile doesn't allow all of the > variable overrides in it that are necessary for the crossdev to work > properly. See bug http://bugs.gentoo.org/487310 > > The crossdev that's created will provide all the necessary profile > overrides to allow you to emerge the things you want, and of course > compile your own things as well. There's no need for a special prefix > (or 'prefix/*' profile) in order to support this, IMO, once the > embedded profile permits the overrides necessary to the ARCH, ELIBC, > and KERNEL variables that the crossdev tool already sets. >
There's also a host of packages that are pulled in by default which are simply uneeded for this sort of setup, such as coreutils, sed, file, debianutils which have to be manually package.provided away by end users. I'm simply suggesting we should make this a bit more easy for everyone involved, as it could ease use and possibly cut down on spurious bug reports if there was a standardized way of doing things. This is a common enough use case that it should be handled upstream imho. I'm more than willing to help in this matter, but I don't want to be spitting into the wind if nothing will actually come of it.