Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2016 18:15:42 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: pkg(1) continues after pre-install script fails
Message-ID:  <20160803161541.sowx66ok6u6jmyyn@ivaldir.etoilebsd.net>
In-Reply-To: <20160803170301.5b21bf39@kalimero.tijl.coosemans.org>
References:  <20160803170301.5b21bf39@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--d6fr62tmpwkoo7vz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
>=20
> 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
>=20
> 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 :(

Bapt

--d6fr62tmpwkoo7vz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXohiaAAoJEGOJi9zxtz5aukkP/AzLZ7b5HMjgt7vZ3MuSutrj
CuRsAaq46ZdQQ+sCMZ+S2FeAzYy9DiBbWxPw++U2Nyl7tF67h2jQyw/6c94Clck9
1xDMAymSkUhOo5CrdD6WripFQa/TmRZEmvV/W8JaCDOH4ZqX281uE93xyOUEhBfD
XoD7sB7MxnlOasc0LDf7YHf0Qh0HxSa1Qz1e30fhUnOHQ7ZooFdh/IVWoiM81Hrw
n8XaMJsTzpbCKmd/FC8+KVxhr0r3MkV4LGGHQnZ9CT0Xu+2+o/iLzdXov8+hbute
9dgPqiNuq8MgaHI/uL9CN7+fFjgFWvTbL64FYMlFxxKIWw3lRxQQ4sBODfee1smf
pBUU6VUX3soJ4bQ/chHZe/91xSVlB72BKH/3TfihZ/ubN2teVYjiwGGoBiioqo6J
4UENNwg0cwgL6M/39H8sAaBzEU1MHA+Vvmwjoh5wCtzFWSygXuxEVj/Yfh+ACjSp
cDovDjbou6ZUw4LomgSAeAOaNx1kbaNqfWCiKe1ku0XoBKhEq4hmcsIVhuyEuKlc
sjJZmRMKZHOCCmoMTEqJXMC5RENJXiG0+b5C//aEH6vn7WvP1wSyeyjzHpzIYV0+
f33VJebQnfwnc4now/PwwGCpaoMWWqlGAW3nyArsattbt6nS3Qv14nLehCh/VR+q
HjIv3jpgttDensVVxs1H
=vrNV
-----END PGP SIGNATURE-----

--d6fr62tmpwkoo7vz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160803161541.sowx66ok6u6jmyyn>