Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#21408 - [namcap] Comments are reported as errors in PKGBUILD
Attached to Project:
Arch Linux
Opened by Kurt Marasco (celilo) - Friday, 22 October 2010, 03:02 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 07 December 2010, 23:12 GMT
Opened by Kurt Marasco (celilo) - Friday, 22 October 2010, 03:02 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 07 December 2010, 23:12 GMT
|
DetailsDescription: running "namcap PKGBUILD" reports error, "E: File referenced in $startdir" for lines in the package build that are commented by a preceeding "#"
Steps to reproduce: Run namecap on file with comment line containing an improper reference such as: # install -D -m755 ${startdir}/freeswitchd $pkgdir/etc/rc.d/freeswitchd # install -D -m755 $startdir/freeswitch $pkgdir/etc/rc.d/freeswitch # mv $pkgdir/usr/freeswitch/conf $pkgdir/usr/freeswitch/conf.sample install -D -m755 $startdir/freeswitch $pkgdir/etc/rc.d/freeswitch The error is reported for all three commented lines. namcap does not report erros after removing the commented lines from the PKGBUILD. While this matters little for a final PKGBUILD, which would be free of such comments, it can result in lost productivity searching for errors that do not actually exist in a PKGBUILD. |
This task depends upon
Closed by Dan McGee (toofishes)
Tuesday, 07 December 2010, 23:12 GMT
Reason for closing: Won't implement
Tuesday, 07 December 2010, 23:12 GMT
Reason for closing: Won't implement
This is a change to the PKGBUILD structure, which is why I misinterpreted the error. PKGBUILD removed $startdir as a valid variable, yet it still interprets it without reporting an error, I'm sure this was done as to not break existing PKGBUILDS.
Perhaps a simple solution would be to simply change the error to indicate that "$startdir is no longer a valid PKGBUILD variable", which would point package builders in the correct direction of using something like "../", to reference to their root build directory.
And your last comment is completely wrong- that is less correct than using $startdir. You should almost never ever have to reference the root build directory...do you have some valid reason for doing so?
Thanks.
Thanks,
Kurt