[th] rpm.spec - packaging problem
Patryk Zawadzki
patrys at pld-linux.org
Fri Nov 9 17:32:00 CET 2007
2007/11/9, Patryk Zawadzki <patrys at pld-linux.org>:
> The default (rpm/lib/rpmds.c ~ 1546) is:
> #define _ETC_RPM_SYSINFO SYSCONFIGDIR "/sysinfo"
Upon further investigation, this is used as a callback when the macro
below returns nothing, so the answer is clear:
> We can patch either that line or just override the macro used to get
> the path later (same file ~ 1571):
> rpmExpand("%{?_rpmds_sysinfo_path}", NULL)
>
> The function rpmdsSysinfo is always called with NULL as filename so it
> always resorts to evaluating that macro.
And that's defined in /etc/rpm/macros
--
Patryk Zawadzki
PLD Linux Distribution
More information about the pld-devel-en
mailing list