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#11450 - [k3b-i18n] wrong dependancy k3b>=$pkgver (in PKGBUILD)
Attached to Project:
Arch Linux
Opened by solsTiCe (zebul666) - Thursday, 11 September 2008, 17:47 GMT
Last edited by Ronald van Haren (pressh) - Monday, 10 November 2008, 18:47 GMT
Opened by solsTiCe (zebul666) - Thursday, 11 September 2008, 17:47 GMT
Last edited by Ronald van Haren (pressh) - Monday, 10 November 2008, 18:47 GMT
|
Detailsk3b-i18n-1.0.5-1 shows a list of depends like that with pacman -Qi k3b-i18n:
k3b>=$pkgver there is an error in the PKGBUILD: - either use " " double quote around k3b-$pkgver so that the shell evaluates it - or either use single quote (as it is required) but then specify the spec by number i.e. k3b>=1.0.5 |
This task depends upon
Closed by Ronald van Haren (pressh)
Monday, 10 November 2008, 18:47 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in trunk
Monday, 10 November 2008, 18:47 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in trunk
I'm not sure what the actual bug is here. repo-add never looks at the PKGBUILD, so if for some reason it is eval-ing the $pkgver at that late stage, we have a problem there that needs to be fixed as they should not be evaluated or processed as anything but literals. Regardless, if you are using variables in your dependencies, then don't use single quotes.
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index d6d59eb..7c9f790 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -154,7 +154,6 @@ db_write_entry()
local line
for line in $(bsdtar -xOf "$pkgfile" .PKGINFO | \
grep -v "^#" | sed 's|\(\w*\)\s*=\s*\(.*\)|\1="\2"|'); do
- eval "$line"
case "$line" in
group=*) _groups="$_groups$group\n" ;;
depend=*) _depends="$_depends$depend\n" ;;