[aur-general] Unable to submit package
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine. error message: "Missing build function in PKGBUILD." package: http://aur.archlinux.org/packages.php?ID=18036 Problematic version attached. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
edogawaconan wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
package: http://aur.archlinux.org/packages.php?ID=18036
Problematic version attached.
Attachments do not work on this list, but the error message is quite clear. Does your PKGBUILD have a build() function?
2009/11/29 Allan McRae <allan@archlinux.org>:
edogawaconan wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
package: http://aur.archlinux.org/packages.php?ID=18036
Problematic version attached.
Attachments do not work on this list, but the error message is quite clear. Does your PKGBUILD have a build() function?
The error message is simple, but the meaning is not that straightforward: AUR can miss the build function when makepkg has no problem, e.g. in case of a bug in bash-type variable replacements.... I'm not saying that it is the case for this PKGBUILD, but wouldn't be the first bug like this, as much as I remember. Do .gz attachments work on this list? If they do, please attach the compressed faulty PKGBUILD. Cheers, Greg
On 11/29/2009 11:38 AM, Gergely Imreh wrote:
2009/11/29 Allan McRae<allan@archlinux.org>:
edogawaconan wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
package: http://aur.archlinux.org/packages.php?ID=18036
Problematic version attached.
Attachments do not work on this list, but the error message is quite clear. Does your PKGBUILD have a build() function?
The error message is simple, but the meaning is not that straightforward: AUR can miss the build function when makepkg has no problem, e.g. in case of a bug in bash-type variable replacements.... I'm not saying that it is the case for this PKGBUILD, but wouldn't be the first bug like this, as much as I remember.
Do .gz attachments work on this list? If they do, please attach the compressed faulty PKGBUILD.
Cheers, Greg
you could paste it in http://pastebin.ca or others paste online services
On Sun, Nov 29, 2009 at 4:32 PM, Allan McRae <allan@archlinux.org> wrote:
edogawaconan wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
package: http://aur.archlinux.org/packages.php?ID=18036
Problematic version attached.
Attachments do not work on this list, but the error message is quite clear. Does your PKGBUILD have a build() function?
sure it has one. http://pastebin.com/m2d0bd65d -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
2009/11/29 edogawaconan <me@myconan.net>
On Sun, Nov 29, 2009 at 4:32 PM, Allan McRae <allan@archlinux.org> wrote:
edogawaconan wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
package: http://aur.archlinux.org/packages.php?ID=18036
Problematic version attached.
Attachments do not work on this list, but the error message is quite clear. Does your PKGBUILD have a build() function?
sure it has one.
-- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Move all the custom variables below pkgname. -- GPG/PGP ID: B42DDCAD
On Sun, Nov 29, 2009 at 10:28 PM, Ray Rashif <schivmeister@gmail.com> wrote:
2009/11/29 edogawaconan <me@myconan.net> Move all the custom variables below pkgname.
same result -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
2009/11/30 edogawaconan <me@myconan.net>
On Sun, Nov 29, 2009 at 10:28 PM, Ray Rashif <schivmeister@gmail.com> wrote:
2009/11/29 edogawaconan <me@myconan.net> Move all the custom variables below pkgname.
same result
-- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Add a maintainer tag (although I have seen plenty of scripts without). Still, the parsing is different from makepkg/namcap so it might be having trouble with the bash conditionals. I may be short-sighted but that's no excuse why I can't spot anything else. -- GPG/PGP ID: B42DDCAD
2009/11/29 edogawaconan <me@myconan.net>:
On Sun, Nov 29, 2009 at 4:32 PM, Allan McRae <allan@archlinux.org> wrote:
edogawaconan wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
package: http://aur.archlinux.org/packages.php?ID=18036
Problematic version attached.
Attachments do not work on this list, but the error message is quite clear. Does your PKGBUILD have a build() function?
sure it has one.
http://pastebin.com/m2d0bd65d Just a guess - what about missing backslashes at the end of the line in the source array (lines 28 to 30)?
On Sun, Nov 29, 2009 at 12:30, Vojtech Horky <vojta.horky@seznam.cz> wrote:
Just a guess - what about missing backslashes at the end of the line in the source array (lines 28 to 30)?
You don't need backslashes at the end of lines inside an array declaration.
On Sun, Nov 29, 2009 at 05:05:28PM +0700, edogawaconan wrote:
sure it has one.
This is rather a bug in the AUR "pkgsubmit.php" script. In each line, everything follwing a pound sign ("#") is stripped since it is considered to be a comment. As every line of the "backup" array contains a pound sign, the closing bracket of the "backup" array is actually never reached. I opened a ticket concerning this issue: http://bugs.archlinux.org/task/17328 Best regards, Lukas Fleischer
On Tue, Dec 1, 2009 at 12:45 AM, Lukas Fleischer <archlinux@cryptocrack.de> wrote:
On Sun, Nov 29, 2009 at 05:05:28PM +0700, edogawaconan wrote:
sure it has one.
This is rather a bug in the AUR "pkgsubmit.php" script. In each line, everything follwing a pound sign ("#") is stripped since it is considered to be a comment. As every line of the "backup" array contains a pound sign, the closing bracket of the "backup" array is actually never reached.
I opened a ticket concerning this issue: http://bugs.archlinux.org/task/17328
oh right. I reverted back to old version for that block and pkgsubmit accepted it. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
Ok, this is a longshot, but its worth a try. The pkgbuild that you pasted has DOS-style line terminators. You know, CRLF? That may well be an artifact of the pastebin service. If you did have them in the original file, remove them. For whatever reason, bash behaves atrociously when sourcing a file with DOS-style line endings, though it gives no complaint when they are replaced with Unix-style line-endings. Like I said, it's a longshot... -- Chris
On Mon, Nov 30, 2009 at 1:02 AM, Chris Brannon <cmbrannon79@gmail.com> wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
Ok, this is a longshot, but its worth a try. The pkgbuild that you pasted has DOS-style line terminators. You know, CRLF? That may well be an artifact of the pastebin service. If you did have them in the original file, remove them. For whatever reason, bash behaves atrociously when sourcing a file with DOS-style line endings, though it gives no complaint when they are replaced with Unix-style line-endings.
no, the crlf probably because I pasted it using windows pc. The actual pkgbuild is unix-style. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
On Sun, Nov 29, 2009 at 1:29 PM, edogawaconan <me@myconan.net> wrote:
On Mon, Nov 30, 2009 at 1:02 AM, Chris Brannon <cmbrannon79@gmail.com> wrote:
After 'cleaning up' a package I'm maintaining (nginx-unstable), and verifying it can be built and works fine, AUR rejected the package. Reverting to old version (with updated version) works fine.
error message: "Missing build function in PKGBUILD."
Ok, this is a longshot, but its worth a try. The pkgbuild that you pasted has DOS-style line terminators. You know, CRLF? That may well be an artifact of the pastebin service. If you did have them in the original file, remove them. For whatever reason, bash behaves atrociously when sourcing a file with DOS-style line endings, though it gives no complaint when they are replaced with Unix-style line-endings.
no, the crlf probably because I pasted it using windows pc. The actual pkgbuild is unix-style.
Another longshot: Change: build() { to build() {
-- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
participants (10)
-
Allan McRae
-
Chris Brannon
-
Daenyth Blank
-
edogawaconan
-
Eric Bélanger
-
Gergely Imreh
-
Ionut Biru
-
Lukas Fleischer
-
Ray Rashif
-
Vojtech Horky