Arch Linux

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!
Tasklist

FS#22217 - get_filename function in makepkg has a bug.

Attached to Project: Arch Linux
Opened by zhangning (zhangn1985) - Sunday, 26 December 2010, 05:41 GMT
Last edited by Allan McRae (Allan) - Sunday, 26 December 2010, 06:32 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
get_filename function can replace pkgver to its value.
and i don't know why only me meet this problem.
I read PKGBUILDs for other packages, they work fine.
I think this is a bug.

Additional info:
* package version(s): newest
* config and/or log files etc.

https://bbs.archlinux.org/viewtopic.php?pid=870422#p870422

Steps to reproduce:
follow link above.

fix suggestion:
add one more eval to get_filename function.
like this:
get_filename() {
# if a filename is specified, use it
local filename="${1%%::*}"
# if it is just an URL, we only keep the last component
eval echo "${filename##*/}"
}

-----
I don't know if the fix is ok to everyone or no bugs.
it's a solution to me.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 26 December 2010, 06:32 GMT
Reason for closing:  Not a bug
Comment by zhangning (zhangn1985) - Sunday, 26 December 2010, 05:52 GMT
i know it's very danger to put an eval in get_filename.
there should be better solution.

Loading...