Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23504 - [kernel26] - fails to build headers if user disables dv support/patch attached

Attached to Project: Arch Linux
Opened by John (graysky) - Tuesday, 29 March 2011, 20:27 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 18 June 2011, 15:24 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas B├Ąchler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: If users disable dvb support in the kernel, package_kernel26-headers fails with "cp: cannot stat `include/config/dvb/*.h': No such file or directory". The failing /bin/cp is in PKGBUILD where "cp include/config/dvb/*.h [...]" assumes that there indeed are such files to copy.

Here is a patch by JokerBoy that fixes it:

-cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
+[[ -e include/config/dvb/ ]] && cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Saturday, 18 June 2011, 15:24 GMT
Reason for closing:  Won't fix
Additional comments about closing:  fix the PKGBUILD for your needs
Comment by Jan de Groot (JGC) - Tuesday, 29 March 2011, 23:55 GMT
IMHO the kernel builds fine as it is configured, so I see no need to "fix" this. If you want to customize the config, you have to deal with these things yourself.
Comment by John (graysky) - Wednesday, 30 March 2011, 20:57 GMT
@JGC - I see your point, but in the interest of flexibility with regard to users building via ABS, I think it would be a value-added addition to the PKGBUILD: making it more "idiot-proof" if you will. Afterall, there is a commented out line for an nconfig in the PKGBUILD now...

Loading...