Date: Wed, 3 Aug 2016 18:57:27 +0200 From: Tijl Coosemans <tijl@FreeBSD.org> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: pkg(1) continues after pre-install script fails Message-ID: <20160803185727.38f70eea@kalimero.tijl.coosemans.org> In-Reply-To: <20160803161541.sowx66ok6u6jmyyn@ivaldir.etoilebsd.net> References: <20160803170301.5b21bf39@kalimero.tijl.coosemans.org> <20160803161541.sowx66ok6u6jmyyn@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Aug 2016 18:15:42 +0200 Baptiste Daroussin <bapt@FreeBSD.org> wrote: > On Wed, Aug 03, 2016 at 05:03:01PM +0200, Tijl Coosemans wrote: >> The linux_base-* packages require Linux support in the kernel during >> installation because they run /compat/linux/sbin/ldconfig. The packages >> have a PRE-INSTALL script that checks this and returns an error if the >> support isn't there, but pkg(1) ignores such errors and continues to >> install the files anyway. Then it runs ldconfig via POST-INSTALL which >> fails but errors from this are also ignored and pkg(1) exits normally. >> It looks like this: >> >> sysctl: unknown oid 'compat.linux.osrelease' >> linuxulator is not (kld)loaded, exiting >> pkg-static: PRE-INSTALL script failed >> ELF binary type "0" not known. >> /bin/sh: /compat/linux/sbin/ldconfig: Exec format error >> pkg-static: POST-INSTALL script failed >> >> Shouldn't pkg(1) abort when pre-install fails and return an error when >> post-install fails? > > It has been reverted because the number of script failing in the ports tree > is still too high :( Can you provide a patch that enables this again and request an exp-run?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160803185727.38f70eea>