https://bugzilla.redhat.com/show_bug.cgi?id=1513040
Bug ID: 1513040
Summary: Create rpm macro %{_modprobedir} in
/usr/lib/rpm/macros.d/macros.kmod
Product: Fedora
Version: rawhide
Component: kmod
Severity: low
Assignee: kmod-maint(a)lists.fedoraproject.org
Reporter: jkysela(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: jonathan(a)jonmasters.org,
kmod-maint(a)lists.fedoraproject.org,
skozina(a)redhat.com, ykaliuta(a)redhat.com
Description of problem:
Some packages (alsa-lib, b43-openfwwf, hwdata) use hardcoded path
/lib/modprobe.d for the additional modprobe configuration files. It would be
more appropriate to use the path defined by a rpm macro. Example of rpmlint
errors:
alsa-lib.src:108: E: hardcoded-library-path in /lib/modprobe.d/dist-*
Example contents of macros.kmod file:
# RPM macros for packages with additional kernel module configurations
%_depmodconfdir %{_sysconfdir}/depmod.d
%_modprobeconfdir %{_sysconfdir}/modprobe.d
%_modprobedir /lib/modprobe.d
Note:
The kmod package should create also usr/lib/rpm/macros.d directory in case when
the rpm package is not installed! See selinux-policy for example:
$ rpm -qf /usr/lib/rpm/macros.d
javapackages-tools-4.7.0-17.fc26.noarch
selinux-policy-3.13.1-260.13.fc26.noarch
rpm-4.13.0.2-1.fc26.x86_64
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.