Re: Does building linux packages under poudriere require linux compatibility emulation?
Thanks to all who responded, makes perfect sense now. Paul Mather wrote: The only thing you need on the host is to have the linux kernel module loaded. (You don't need to have any Linux packages installed there.) The default setting in /usr/local/etc/poudriere.conf is to have NOLINUX=yes commented out, i.e., Linux support in Poudriere is enabled unless you explicitly disable it. The easiest way to load the linux kernel module on the host for use with Poudriere is to add it to the "kld_list" setting in /etc/rc.conf, e.g., kld_list="linux" I do have NOLINUX=yes commented out, as is a default. 2017-01-14 22:45 Timon wrote: No, it doesn't require linuxulator to be configured, but require linux.ko (and linux64.ko if your host is amd64) to be loaded. Poudriere load linux.ko, but doesn't load linux64. Try this patch: --- /usr/local/share/poudriere/common.sh.orig +++ /usr/local/share/poudriere/common.sh @@ -1686,6 +1686,9 @@ jail_start() { if [ "${arch}" = "i386" -o "${arch}" = "amd64" ]; then needfs="${needfs} linprocfs" sysctl -n compat.linux.osrelease >/dev/null 2>&1 || kldload linux + if [ "${arch}" = "amd64" ]; then + kldload linux64 + fi fi fi [ -n "${USE_TMPFS}" ] && needfs="${needfs} tmpfs" Great, that seems to do the trick! (actually, I just loaded the linux64 kmodule, did not try to apply the patch). Thanks! Looks like the poudriere/common.sh needs this patch. Mark ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
On 14/01/2017 03:07, Mark Martinec wrote: Does building such packages really require linuxilator configured on the build host ??? No, it doesn't require linuxulator to be configured, but require linux.ko (and linux64.ko if your host is amd64) to be loaded. Poudriere load linux.ko, but doesn't load linux64. Try this patch: --- /usr/local/share/poudriere/common.sh.orig +++ /usr/local/share/poudriere/common.sh @@ -1686,6 +1686,9 @@ jail_start() { if [ "${arch}" = "i386" -o "${arch}" = "amd64" ]; then needfs="${needfs} linprocfs" sysctl -n compat.linux.osrelease >/dev/null 2>&1 || kldload linux + if [ "${arch}" = "amd64" ]; then + kldload linux64 + fi fi fi [ -n "${USE_TMPFS}" ] && needfs="${needfs} tmpfs" -- Aleksandr Matveev ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
On Sat, 14 Jan 2017 15:11:42 +0100 Tijl Coosemanswrote: > On Sat, 14 Jan 2017 01:07:09 +0100 Mark Martinec > wrote: >> When building packages under poudriere on 11.0-RELEASE-p7 (from a >> command line in a terminal window) I'm noticing occasional streams of >> diagnostic: >> >>ELF binary type "3" not known. >> >> which seem to be related to building some linux packages (example below, >> parallel builds). Poudriere still reports success for these builds. >> >> The host where poudriere is running does not have linux.ko loaded. >> >> Does building such packages really require linuxilator configured >> on the build host ??? > > To build a package, its dependencies need to be installed and on > installation some packages may need to run certain commands and for > linux packages these commands may be linux programs. So, yes, if you > need to build linux packages the build host should have USE_LINUX=yes > in /etc/rc.conf. That should be linux_enable="YES" in /etc/rc.conf, not USE_LINUX. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
On Jan 14, 2017, at 9:11 AM, Tijl Coosemanswrote: > On Sat, 14 Jan 2017 01:07:09 +0100 Mark Martinec > wrote: >> When building packages under poudriere on 11.0-RELEASE-p7 (from a >> command line in a terminal window) I'm noticing occasional streams of >> diagnostic: >> >> ELF binary type "3" not known. >> >> which seem to be related to building some linux packages (example below, >> parallel builds). Poudriere still reports success for these builds. >> >> The host where poudriere is running does not have linux.ko loaded. >> >> Does building such packages really require linuxilator configured >> on the build host ??? > > To build a package, its dependencies need to be installed and on > installation some packages may need to run certain commands and for > linux packages these commands may be linux programs. So, yes, if you > need to build linux packages the build host should have USE_LINUX=yes > in /etc/rc.conf. The only thing you need on the host is to have the linux kernel module loaded. (You don't need to have any Linux packages installed there.) The default setting in /usr/local/etc/poudriere.conf is to have NOLINUX=yes commented out, i.e., Linux support in Poudriere is enabled unless you explicitly disable it. The easiest way to load the linux kernel module on the host for use with Poudriere is to add it to the "kld_list" setting in /etc/rc.conf, e.g., kld_list="linux" Cheers, Paul. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
On Sat, 14 Jan 2017 01:07:09 +0100 Mark Martinecwrote: > When building packages under poudriere on 11.0-RELEASE-p7 (from a > command line in a terminal window) I'm noticing occasional streams of > diagnostic: > >ELF binary type "3" not known. > > which seem to be related to building some linux packages (example below, > parallel builds). Poudriere still reports success for these builds. > > The host where poudriere is running does not have linux.ko loaded. > > Does building such packages really require linuxilator configured > on the build host ??? To build a package, its dependencies need to be installed and on installation some packages may need to run certain commands and for linux packages these commands may be linux programs. So, yes, if you need to build linux packages the build host should have USE_LINUX=yes in /etc/rc.conf. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
On Sat, Jan 14, 2017 at 9:38 AM, Konstantin Tokarevwrote: > 14.01.2017, 12:18, "René Ladan" : > > Op 14 jan. 2017 01:07 schreef "Mark Martinec" < > mark.martinec+free...@ijs.si > >> : > > When building packages under poudriere on 11.0-RELEASE-p7 (from a command > > line in a terminal window) I'm noticing occasional streams of diagnostic: > > > > ELF binary type "3" not known. > > > > which seem to be related to building some linux packages (example below, > > parallel builds). Poudriere still reports success for these builds. > > > > The host where poudriere is running does not have linux.ko loaded. > > > > Does building such packages really require linuxilator configured > > on the build host ??? > > For example, your log includes building qdoc3. It is likely to be used in > build process of other Qt packages. qmake, moc, various utilities for maintaining Qt object registries... there will be a lot of build tools, and you would need to force them to build native instead of linux if you wanted to get away with not having the linuxulator installed. (This will be hard if they are part of another build that needs to be linux.) Same applies to gtk and dependents. And their respective upstreams likely have no interest in what amounts to a cross-compilation setup: too much difficult (and difficult for them to test) work, very little demand. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
14.01.2017, 12:18, "René Ladan": > Op 14 jan. 2017 01:07 schreef "Mark Martinec" > : > > When building packages under poudriere on 11.0-RELEASE-p7 (from a command > line in a terminal window) I'm noticing occasional streams of diagnostic: > > ELF binary type "3" not known. > > which seem to be related to building some linux packages (example below, > parallel builds). Poudriere still reports success for these builds. > > The host where poudriere is running does not have linux.ko loaded. > > Does building such packages really require linuxilator configured > on the build host ??? For example, your log includes building qdoc3. It is likely to be used in build process of other Qt packages. > > Mark > > I rhink the host wouldn't need the linuxolator for building the Linux > packages, unless those packages run other Linux packages for their build. > > René > > [00:23:56] >> [02][00:00:00] Starting build of www/linux-c6-qt47-webkit > [00:23:57] >> [13][00:00:00] Starting build of textproc/linux-c6-libxml2 > ELF binary type "3" not known. > ELF binary type "3" not known. > [00:24:09] >> [19][00:00:28] Finished build of > textproc/linux-c6-aspell: Success > [00:24:11] >> [19][00:00:00] Starting build of devel/qt4-makeqpf > [00:24:11] >> [11][00:00:24] Finished build of > security/linux-c6-openssl-compat: Success > ELF binary type "3" not known. > ELF binary type "3" not known. > ELF binary type "3" not known. > ELF binary type "3" not known. > ELF binary type "3" not known. > [00:24:12] >> [11][00:00:00] Starting build of x11-toolkits/vte > ELF binary type "3" not known. > ELF binary type "3" not known. > ELF binary type "3" not known. > ELF binary type "3" not known. > [00:24:16] >> [07][00:00:24] Finished build of > graphics/linux-c6-glx-utils: Success > ELF binary type "3" not known. > ELF binary type "3" not known. > ELF binary type "3" not known. > [00:24:17] >> [07][00:00:00] Starting build of devel/qt4-qdoc3 > ELF binary type "3" not known. > ELF binary type "3" not known. > [00:24:19] >> [13][00:00:22] Finished build of > textproc/linux-c6-libxml2: Success > [00:24:19] >> [13][00:00:00] Starting build of graphics/goocanvas > [00:24:27] >> [10][00:02:26] Finished build of graphics/sdl_gfx: Success > [00:24:29] >> [10][00:00:00] Starting build of multimedia/mjpegtools > [00:24:34] >> [04][00:02:15] Finished build of devel/linux-c6-devtools: > Success > [00:24:35] >> [04][00:00:00] Starting build of > devel/linux-c6-ncurses-base > ___ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" > ___ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" -- Regards, Konstantin ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Does building linux packages under poudriere require linux compatibility emulation?
Op 14 jan. 2017 01:07 schreef "Mark Martinec": When building packages under poudriere on 11.0-RELEASE-p7 (from a command line in a terminal window) I'm noticing occasional streams of diagnostic: ELF binary type "3" not known. which seem to be related to building some linux packages (example below, parallel builds). Poudriere still reports success for these builds. The host where poudriere is running does not have linux.ko loaded. Does building such packages really require linuxilator configured on the build host ??? Mark I rhink the host wouldn't need the linuxolator for building the Linux packages, unless those packages run other Linux packages for their build. René [00:23:56] >> [02][00:00:00] Starting build of www/linux-c6-qt47-webkit [00:23:57] >> [13][00:00:00] Starting build of textproc/linux-c6-libxml2 ELF binary type "3" not known. ELF binary type "3" not known. [00:24:09] >> [19][00:00:28] Finished build of textproc/linux-c6-aspell: Success [00:24:11] >> [19][00:00:00] Starting build of devel/qt4-makeqpf [00:24:11] >> [11][00:00:24] Finished build of security/linux-c6-openssl-compat: Success ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. [00:24:12] >> [11][00:00:00] Starting build of x11-toolkits/vte ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. [00:24:16] >> [07][00:00:24] Finished build of graphics/linux-c6-glx-utils: Success ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. [00:24:17] >> [07][00:00:00] Starting build of devel/qt4-qdoc3 ELF binary type "3" not known. ELF binary type "3" not known. [00:24:19] >> [13][00:00:22] Finished build of textproc/linux-c6-libxml2: Success [00:24:19] >> [13][00:00:00] Starting build of graphics/goocanvas [00:24:27] >> [10][00:02:26] Finished build of graphics/sdl_gfx: Success [00:24:29] >> [10][00:00:00] Starting build of multimedia/mjpegtools [00:24:34] >> [04][00:02:15] Finished build of devel/linux-c6-devtools: Success [00:24:35] >> [04][00:00:00] Starting build of devel/linux-c6-ncurses-base ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Does building linux packages under poudriere require linux compatibility emulation?
When building packages under poudriere on 11.0-RELEASE-p7 (from a command line in a terminal window) I'm noticing occasional streams of diagnostic: ELF binary type "3" not known. which seem to be related to building some linux packages (example below, parallel builds). Poudriere still reports success for these builds. The host where poudriere is running does not have linux.ko loaded. Does building such packages really require linuxilator configured on the build host ??? Mark [00:23:56] >> [02][00:00:00] Starting build of www/linux-c6-qt47-webkit [00:23:57] >> [13][00:00:00] Starting build of textproc/linux-c6-libxml2 ELF binary type "3" not known. ELF binary type "3" not known. [00:24:09] >> [19][00:00:28] Finished build of textproc/linux-c6-aspell: Success [00:24:11] >> [19][00:00:00] Starting build of devel/qt4-makeqpf [00:24:11] >> [11][00:00:24] Finished build of security/linux-c6-openssl-compat: Success ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. [00:24:12] >> [11][00:00:00] Starting build of x11-toolkits/vte ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. [00:24:16] >> [07][00:00:24] Finished build of graphics/linux-c6-glx-utils: Success ELF binary type "3" not known. ELF binary type "3" not known. ELF binary type "3" not known. [00:24:17] >> [07][00:00:00] Starting build of devel/qt4-qdoc3 ELF binary type "3" not known. ELF binary type "3" not known. [00:24:19] >> [13][00:00:22] Finished build of textproc/linux-c6-libxml2: Success [00:24:19] >> [13][00:00:00] Starting build of graphics/goocanvas [00:24:27] >> [10][00:02:26] Finished build of graphics/sdl_gfx: Success [00:24:29] >> [10][00:00:00] Starting build of multimedia/mjpegtools [00:24:34] >> [04][00:02:15] Finished build of devel/linux-c6-devtools: Success [00:24:35] >> [04][00:00:00] Starting build of devel/linux-c6-ncurses-base ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"