[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: creating links
- From: Jeff Johnson <n3npq jbj gmail com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: creating links
- Date: Fri, 6 Apr 2007 14:24:29 -0400
On Apr 6, 2007, at 2:15 PM, Joshua M. Miller wrote:
Ok, so here is what I'm doing:
%post -n %{libname} -p /sbin/ldconfig
/bin/ln -s /usr/lib/liblber-2.3.so.0.2.22 /usr/lib/liblber.so.2
/bin/ln -s /usr/lib/libldap-2.3.so.0.2.22 /usr/lib/libldap.so.2
Though obvious, I can't help but state my noob status with building
RPMs.
Ah, ok. Files, not directories, so ignore my comments.
You likely don't need to create those in %post because /sbin/ldconfig
should create the symlinks for you.
Meanwhile your %post is wrong (likely why failing).
Try (without symlink creation in %post)
%post -n %{libname} -p /sbin/ldconfig
or (with symlink creation in %post)
%post -n %{libname}
/sbin/ldconfig
/bin/ln -s /usr/lib/liblber-2.3.so.0.2.22 /usr/lib/liblber.so.2
/bin/ln -s /usr/lib/libldap-2.3.so.0.2.22 /usr/lib/libldap.so.2
If you *REALLY* need to create the symlinks, then the soname
in the library perhaps needs changing.
73 de Jeff
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]