- Code: Select all
Running Generic preparation routine
make mrproper
Makefile:1384: *** insufficient number of arguments (1) to function 'addprefix'. Stop.
(bad exit status: 2)
Running Generic preparation routine
make mrproper
Makefile:1384: *** insufficient number of arguments (1) to function 'addprefix'. Stop.
(bad exit status: 2)
%install
%__mkdir_p %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}
%__cp -a %{modname}-%{version}/* %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}
%__cat > %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}/dkms.conf <<EOF
PACKAGE_VERSION="%{version}-%{release}"
# Items below here should not have to change with each driver version
PACKAGE_NAME="%{modname}"
MAKE[0]="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules"
CLEAN="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean"
BUILT_MODULE_NAME[0]="mei-pci"
DEST_MODULE_LOCATION[0]="/kernel/3rdparty"
BUILT_MODULE_NAME[1]="qst-hwmon"
DEST_MODULE_LOCATION[1]="/kernel/3rdparty"
BUILT_MODULE_NAME[2]="intel-mei"
DEST_MODULE_LOCATION[2]="/kernel/3rdparty"
REMAKE_INITRD="no"
AUTOINSTALL="YES"
EOF
doktor5000 wrote:Not really, the relevant sections on what is actually happening when you install the package in this case are %post and maybe %preun ( for the uninstall part ).
%post
/usr/sbin/dkms add -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade
/usr/sbin/dkms build -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade
/usr/sbin/dkms install -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade
%preun
/usr/sbin/dkms remove -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade --all
Also for your actual error message you would need to take a look inside your dkms.conf and inside the Makefile.
FWIW, what you ship inside that dkms package, is that from your git repo https://eden.mose.org.uk/gitweb/?p=mei.git;a=summary ?
srowe wrote:It could be related to https://patchwork.kernel.org/patch/10690487/
Return to Packaging and translating for Mageia
Users browsing this forum: No registered users and 1 guest