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
can you give baselayout-prefix-2.2 a try (unmask it) please?
I've unmasked it, so just trying 2.2-r2 should work
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.
(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.
(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.
yeah, that's a stupid logic error, fixed now. Can you test (ebuild rev 1.5)?
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.
I am closing this since the original issue is fixed.