SuSE Linux 8.1 RPM Macros

Support knowledgebase (81_rpm_macros)
Applies to

SuSE Linux: Version 8.1

Symptom

A small bug has crept into the RPM macro files in SuSE Linux 8.1. This bug makes it impossible to use the variable %{_libdir} with an %{_exec_prefix} other than /usr.

Solution

Edit the following macro files:

/usr/lib/rpm/i386-linux/macros
/usr/lib/rpm/i386-suse-linux/macros
/usr/lib/rpm/i486-linux/macros
/usr/lib/rpm/i486-suse-linux/macros
/usr/lib/rpm/i586-linux/macros
/usr/lib/rpm/i586-suse-linux/macros
/usr/lib/rpm/i686-linux/macros
/usr/lib/rpm/i686-suse-linux/macros
/usr/lib/rpm/noarch-linux/macros
/usr/lib/rpm/noarch-suse-linux/macros

replacing the line

%_libdir /usr/%{_lib}

with

%_libdir %{_exec_prefix}/%{_lib}

in each of them.


Keywords: RPM, USR, MACROS, PACKAGE

Categories: Packages

SDB-81_rpm_macros, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 22. Nov 2002
SuSE Linux AG - Last generated: 25. Mar 2003 by pthomas (sdb_gen 1.40.0)