Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509270 - Prefix status on Interix
Summary: Prefix status on Interix
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-01 16:48 UTC by Maxim Koltsov (RETIRED)
Modified: 2016-01-26 09:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Koltsov (RETIRED) gentoo-dev 2014-05-01 16:48:39 UTC
Hello. I've tried to do prefix bootstrap on Interix 6.1 (Windows 7) and, naturally, ran into several errors. I've managed to fix them but one, so I'm sharing my solutions with prefix devs for inclusion in the script. Here are my notes:

* add to PATH
    - /opt/gcc.3.3/bin for gcc
    - /usr/bin/contrib for gzip, otherwise bootstrap script tries to download .tar archives
* use make-3.79, make-3.82 does not build with gcc-3.3
* use sed-4.1.9, sed-4.2 fails with `couldn't flush stdin: invalid seek on non-seekable object`
* coreutils's lib/Makefile missed `mountlist.$(OBJEXT)` in `libcoreutils_a_OBJ`, therefore stat.o fails to link
* grep needs gperf, therefore add `bootstrap_gnu gperf 3.0.1`. Also, gperf fails to build docs without texinfo, so `doc` subdir must be disabled in `configure.in`
* python needs existing python, this can be worked around with installing python from `python.org` and temporaly symlinking it into e.g. `/usr/contrib/bin`. Also, it's required to set `BUILDEXE=.exe` in `Makefile`, otherwise SUA fails to run `./python`. And python needs rpath setting, otherwise it will not work

After all this adjustments, bootstrap script successfully went through stage1 and stage2. But on stage3 it seems to hang on the first emerge call: no output after 'These are the packages that would be merged, in order:'. I've not created solution for this yet.
Comment 1 Fabian Groffen gentoo-dev 2014-06-12 20:21:47 UTC
Not to spoil the fun, but I was under the impression Interix is dead in the water now.  That said, is it fruitful to try and revive it again?
Comment 2 Markus Duft (RETIRED) gentoo-dev 2014-06-13 11:51:29 UTC
Yes, Interix (SUA/SFU) is dead. Windows Server 2012R2 discontinued support for that. There is some work happening to get (our in house fork of) prefix working using another technique; We're using a Linux box and a Windows VM plus invented [1] to couple them... :) (Note: we're using prefix /only/ to get a compiler wrapper running that produces native windows binaries using native linux build systems... so our scope is rather reduced - no "get me vim on windows" or so).

This is however highly experimental, and actually I doubt that this will ever get mature enough for upstream prefix. It's an interesting technology though :D

[1] https://github.com/mduft/rex
Comment 3 Fabian Groffen gentoo-dev 2016-01-24 10:09:15 UTC
Given Markus retired, and Interix is a dead end, removal of Interix keywords seem the best way forward.
Comment 4 Michael Haubenwallner (RETIRED) gentoo-dev 2016-01-26 09:34:35 UTC
For the archives: A Cygwin patch to protect fork() against dll- and exe-updates is on the road: http://thread.gmane.org/gmane.os.cygwin.devel/1378