[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency

Olivier Thauvin nanardon at nanardon.zarb.org
Thu Jul 26 09:05:08 CEST 2012


Hi,

I do think the way we enforce the need of migrate to /usr fs is just an
abuse of rpm.

By using the a rpmlib() dependency we create in fact this dependency
tree:
filesystem => rpm with X-CheckUnifiedSystemdir patch => check fs
whereas we want:
filesystem => check fs

THere another to perform the check w/o needing patch in rpm (so w/o
needing a specific rpm first): using pre script.

If the %pre script failed rpm will refuse to install the rpm, so
something like that:

export LC_ALL=C

[ "`stat /bin -c %F`" == 'symbolic link' ] || exit 1

or the same using lua.

Regards.

-- 

Olivier Thauvin
CNRS  -  LATMOS
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: </pipermail/mageia-dev/attachments/20120726/f2056a25/attachment.asc>


More information about the Mageia-dev mailing list