12ace9bdb9
If there are unpackaged symlinks, build will fail with unpackaged files. People can %undefine __brp_ldconfig if they need to and they should make sure that they call ldconfig themselves. Right now, script doesn't guide packagers what to do, but it's not prerequisite. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
11 lines
270 B
Bash
11 lines
270 B
Bash
#!/bin/sh -efu
|
|
# Force creating of DSO symlinks.
|
|
|
|
# If using normal root, avoid changing anything.
|
|
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
/sbin/ldconfig -N -r "$RPM_BUILD_ROOT"
|
|
# TODO: warn if it created new symlinks and guide people.
|