On 30/01/18 10:04 +0100, Igor Gnatenko wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 For those who didn't check Change page since today's morning: Thanks to Jason Tibbits (tibbs) who proposed %ldconfig_scriptlets macro and its implementation. Now we have 4 macros you could use: %ldconfig, %ldconfig_post, %ldconfig_postun, %ldconfig_scriptlets. So long story short: * If you have %post -p /sbin/ldconfig and %postun -p /sbin/ldconfig, replace it with %ldconfig_scriptlets * If you have just one of those, replace it with %ldconfig_post or %ldconfig_postun accordingly * If you just call to /sbin/ldconfig from one of your scriptlets in shell, just replace it with %?ldconfig However, if you are not interested to support distro versions less than F28, then just remove scriptlets 😉 Although on F28+, those macro expand to nothin g so it's just matter of having 1-2 additional lines in spec file.
Is there any way to use the macros for subpackages? The boost package has lots of subpackages that install shared libs, so each one does: %post foo -p /sbin/ldconfig %postun foo -p /sbin/ldconfig %post bar -p /sbin/ldconfig %postun bar -p /sbin/ldconfig (Although for Boost we don't have a single spec file that works for all distro versions, so I can just remove them entirely in rawhide, and keep them in older branches). _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx