Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468304 - sys-apps/baselayout-prefix-1.12.14 fails to build on cygwin
Summary: sys-apps/baselayout-prefix-1.12.14 fails to build on cygwin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Other
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2013-05-02 15:00 UTC by Richard Yao (RETIRED)
Modified: 2013-05-09 10:05 UTC (History)
1 user (show)

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


Attachments
sys-apps/baselayout-prefix-1.12.14 failure log (build.log,15.16 KB, text/plain)
2013-05-02 15:00 UTC, Richard Yao (RETIRED)
Details
sys-apps/baselayout-prefix-2.2-r2 failure log (build.log,19.30 KB, text/plain)
2013-05-07 06:53 UTC, Richard Yao (RETIRED)
Details
sys-apps/baselayout-prefix-2.2-r2 build.log (rev. 1.5) (build.log,19.73 KB, text/plain)
2013-05-09 10:04 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2013-05-02 15:00:07 UTC
Created attachment 347142 [details]
sys-apps/baselayout-prefix-1.12.14 failure log

sys-apps/baselayout-prefix-1.12.14 fails to build on Cygwin. start-stop-daemon.c was moved to OpenRC in baselayout-2. OpenRC's start-stop-daemon.c appears to have fixed the issues that affect baselayout-1's start-stop-daemon.c. The build failure could be resolved by either backporting the newer start-stop-daemon.c or migrating to baselayout-2.

http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=blob_plain;f=src/rc/start-stop-daemon.c;hb=HEAD
Comment 1 Fabian Groffen gentoo-dev 2013-05-03 18:16:16 UTC
can you give baselayout-prefix-2.2 a try (unmask it) please?
Comment 2 Fabian Groffen gentoo-dev 2013-05-03 18:19:43 UTC
I've unmasked it, so just trying 2.2-r2 should work
Comment 3 Richard Yao (RETIRED) gentoo-dev 2013-05-07 06:53:48 UTC
Created attachment 347566 [details]
sys-apps/baselayout-prefix-2.2-r2 failure log

src_compile in sys-apps/baselayout-prefix-2.2-r2 worked, but src_install failed. The failure is due to ${ROOT} being used instead of ${EROOT}.

Fixing that results in an additional failure:

>>> Completed installing baselayout-prefix-2.2-r2 into /home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/image/

/home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read: read error: 10: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read: read error: 10: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read: read error: 10: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read: read error: 10: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read: read error: 10: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/ebuild-helpers/ecompressdir: line 1: echo: write error: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/ebuild-helpers/ecompressdir: line 1: echo: write error: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/ebuild-helpers/ecompressdir: line 1: echo: write error: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/ebuild-helpers/ecompressdir: line 1: echo: write error: Communication error on send
/home/ryao/gentoo/usr/lib/portage/bin/ebuild-helpers/ecompressdir: line 1: echo: write error: Communication error on send
ecompressdir: bzip2 -9 /usr/share/man
 * QA Notice: the following files use invalid (possible non-prefixed) shebangs:
 *   home/ryao/gentoo/sbin/runscript:/usr/bin/bash (script runscript installed in PATH but interpreter /usr/bin/bash not found)
 * ERROR: sys-apps/baselayout-prefix-2.2-r2 failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 1893:  Called install_qa_check
 *   misc-functions.sh, line  244:  Called install_qa_check_prefix
 *   misc-functions.sh, line 1016:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/baselayout-prefix-2.2-r2'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/baselayout-prefix-2.2-r2'`.
 * The complete build log is located at '/home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/temp/environment'.
 * Working directory: '/home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/image'
 * S: '/home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/work/einfo-1.0.1'

Changing ${BASH} to ${SHELL} fixes that failure and makes baselayout-prefix merge successfully.
Comment 4 Fabian Groffen gentoo-dev 2013-05-07 07:02:52 UTC
(In reply to comment #3)
> src_compile in sys-apps/baselayout-prefix-2.2-r2 worked, but src_install
> failed. The failure is due to ${ROOT} being used instead of ${EROOT}.

There's only one ${ROOT} and that's a [[ -d ${ROOT}... ]] with comment to add host provided mandirs is existant.  That can't fail, and is correct as is.

> Fixing that results in an additional failure:
> 
> >>> Completed installing baselayout-prefix-2.2-r2 into /home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/image/
> 
> /home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read:
> read error: 10: Communication error on send

This looks like the portage piping system, maybe.  It's not healty to say the least.

>  * QA Notice: the following files use invalid (possible non-prefixed)
> shebangs:
>  *   home/ryao/gentoo/sbin/runscript:/usr/bin/bash (script runscript
> installed in PATH but interpreter /usr/bin/bash not found)

This is interesting, does configure detect this?

> Changing ${BASH} to ${SHELL} fixes that failure and makes baselayout-prefix
> merge successfully.

I wonder why not just using /bin/sh is sufficient here, because portage will auto-fix....

Will commit that.
Comment 5 Richard Yao (RETIRED) gentoo-dev 2013-05-07 21:34:17 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > src_compile in sys-apps/baselayout-prefix-2.2-r2 worked, but src_install
> > failed. The failure is due to ${ROOT} being used instead of ${EROOT}.
> 
> There's only one ${ROOT} and that's a [[ -d ${ROOT}... ]] with comment to
> add host provided mandirs is existant.  That can't fail, and is correct as
> is.

That was my first thought, but it somehow managed to fail anyway. I attached the build.log, which displays the failure.

> > Fixing that results in an additional failure:
> > 
> > >>> Completed installing baselayout-prefix-2.2-r2 into /home/ryao/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r2/image/
> > 
> > /home/ryao/gentoo/usr/lib/portage/bin/helper-functions.sh: line 40: read:
> > read error: 10: Communication error on send
> 
> This looks like the portage piping system, maybe.  It's not healty to say
> the least.

This could be a bug in Cygwin itself. I do not know where to begin in terms of making a minimal test case for the Cygwin developers.

> >  * QA Notice: the following files use invalid (possible non-prefixed)
> > shebangs:
> >  *   home/ryao/gentoo/sbin/runscript:/usr/bin/bash (script runscript
> > installed in PATH but interpreter /usr/bin/bash not found)
> 
> This is interesting, does configure detect this?

No.

> > Changing ${BASH} to ${SHELL} fixes that failure and makes baselayout-prefix
> > merge successfully.
> 
> I wonder why not just using /bin/sh is sufficient here, because portage will
> auto-fix....
> 
> Will commit that.

You are correct. ${SHELL} expands to /bin/sh, which is then auto-fixed.
Comment 6 Fabian Groffen gentoo-dev 2013-05-08 05:51:46 UTC
yeah, that's a stupid logic error, fixed now.  Can you test (ebuild rev 1.5)?
Comment 7 Richard Yao (RETIRED) gentoo-dev 2013-05-09 10:04:25 UTC
Created attachment 347808 [details]
sys-apps/baselayout-prefix-2.2-r2 build.log (rev. 1.5)

(In reply to comment #6)
> yeah, that's a stupid logic error, fixed now.  Can you test (ebuild rev 1.5)?

It works now. I have attached a build.log from a test run that used the ebuild command directly to build until and including the install phase.

The only issue remaining when building sys-apps/baselayout-prefix are the Communication errors. That is probably an issue for another bug though.
Comment 8 Richard Yao (RETIRED) gentoo-dev 2013-05-09 10:05:36 UTC
I am closing this since the original issue is fixed.