Re: creating links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux