bertaerts wrote:- Code: Select all
bash nvidia-mgabuild.sh NVIDIA-Linux-x86_64-346.35.run
gives a lot of not normal text output and finally
- Code: Select all
error: Bad exit status from /tmp/nvidia-mgabuild.2r7dCi/tmp/rpm-tmp.tANr3C (%install)
With the previous driver NVIDIA-Linux-x86_64-340.65.run the script still runs fine and creates working rpm's.
What could be wrong?
The error message you posted is only the result that rpmbuild returns. The real error is a bit above that:
┌─[doktor5000@Mageia5]─[20:02:56]─[~]
└──╼ bash nvidia-mgabuild.sh NVIDIA-Linux-x86_64-346.35.run
Building a package of NVIDIA driver 346.35 for x86_64, this will take a few minutes... rpmbuild output follows:
[snip]
+ section=nothingyet
+ set +x
++ wc -l pcitable.nvidia.lst
++ cut -f1 '-d '
+ '[' 1 -gt 200 ']'
error: Bad exit status from /tmp/nvidia-mgabuild.0l0aJ6/tmp/rpm-tmp.cw4CU3 (%install)
RPM build errors:
Bad exit status from /tmp/nvidia-mgabuild.0l0aJ6/tmp/rpm-tmp.cw4CU3 (%install)
Building package failed!
What happens during the package build is the README contained in the driver is parsed,
and the script tries to write a list of supported cards, and then runs a few checks on that list.
Something in the README format has changed, and hence the parsing fails, and the list is not generated,
then the script errors out, relevant test that you see in the rpmbuild verbose output above:
┌─[doktor5000@Mageia5]─[20:05:08]─[~]
└──╼ grep -n pcitable.nvidia.lst nvidia-mgabuild.sh
970:done | sort -u > pcitable.nvidia.lst
972:[ $(wc -l pcitable.nvidia.lst | cut -f1 -d" ") -gt 200 ]
975:gzip -c pcitable.nvidia.lst > %{buildroot}%{_datadir}/ldetect-lst/pcitable.d/40%{drivername}.lst.gz
Either you comment out line 972 via an editor or via
- Code: Select all
sed -i 's|\[ \$(wc -l pcitable.nvidia.lst|#\[ \$(wc -l pcitable.nvidia.lst|g' nvidia-mgabuild.sh
or you rewrite the parsing from line 945 to 970
