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

Re: creating links



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.

TIA,
--
Joshua M. Miller - RHCE,VCP


Jeff Johnson wrote:

On Apr 6, 2007, at 1:07 PM, Matthew Miller wrote:

On Fri, Apr 06, 2007 at 10:03:26AM -0700, Joshua M. Miller wrote:
What would be the best way to specify creation of symlinks after RPM
installation in the SPEC file?
I have tried during the %post portion and that fails with the following
error:
  error: %post(libldap-2.3.34-centos3) scriptlet failed, exit status 1

That would be a fine place. You're just doing it wrong somehow. :)


Yes your scriptlet has a error somehow.

But let's backup: If you are creating a symlink to a directory, you've got
a whole different class of problem that needs to be solved with a
%pretrans, not a %post, scriptlet.

The %post scriptlet is too late to make the Right Thing Happen in rpm if/when
creating a legacy symlink to a directory, doing a directory rename and
creating a symlink needs to be done before file fingerprints are calculated.

If you're *NOT* creating a symlink to a directory, then ignore the previous
comment(s).

73 de Jeff

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



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