FS#43649 - Optional depenencies containing both description and version requirement are incorrectly parsed

Attached to Project: AUR web interface
Opened by (Det) - Saturday, 31 January 2015, 23:35 GMT
Last edited by Lukas Fleischer (lfleischer) - Friday, 19 June 2015, 19:41 GMT
Task Type General Gripe
Category PKGBUILD Parser
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Very Low
Priority Normal
Reported Version 3.5.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

In jdk6-docs[1] .SRCINFO I have:

optdepends = java-environment>=6: Compile and run the examples

Which results in:

java-environment>=6: Compile and run the examples (optional) – (unknown)

Instead of:

java-environment>=6 (optional) – Compile and run the examples

[1] = https://aur.archlinux.org/packages/jdk6-docs/
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Friday, 19 June 2015, 19:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  Implemented in v4.0.0-rc5.
Comment by Lukas Fleischer (lfleischer) - Monday, 23 February 2015, 09:08 GMT
Could you please check whether that still happens with the aurweb 4.0.0 .SRCINFO parser?
Comment by (Det) - Monday, 23 February 2015, 09:57 GMT
Yeah, sure, I'll see when I have time. https://aur-dev.archlinux.org, right? (displays "AUR v3.5.1")

And then I'll do this?: https://lists.archlinux.org/pipermail/aur-dev/2014-December/003013.html
Comment by Lukas Fleischer (lfleischer) - Monday, 23 February 2015, 10:18 GMT
Correct. Step 4 of the instructions is no longer necessary, though. You should be able to clone a nonexistent package repository.
Comment by (Det) - Thursday, 26 February 2015, 10:46 GMT
Yeah..:

$ git clone ssh+git://aur-dev.archlinux.org/jdk6-docs.git/
$ cd jdk6-docs
- add files -
$ git add .
$ git commit -m 'Initial upload.'
$ git push origin master
Total 5 (delta 0), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 74d1405f3b84de80d5c9d61b18d6a57de43d7ab1:
remote: error: invalid package name: java-environment>=6: Compile and run the examples
remote: error: hook declined to update refs/heads/master
To ssh+git://aur-dev.archlinux.org/jdk6-docs.git/
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh+git://aur-dev.archlinux.org/jdk6-docs.git/'

I uploaded jdk6, too, but it still doesn't detect the (optional) dependency: https://aur-dev.archlinux.org/packages/jdk6/
Comment by (Det) - Sunday, 14 June 2015, 01:21 GMT
In AUR 4, as you probably know, it's the same behavior as AUR 3:

- https://aur.archlinux.org/packages/jdk6-docs/
- https://aur4.archlinux.org/packages/jdk6-docs/
Comment by Lukas Fleischer (lfleischer) - Sunday, 14 June 2015, 16:08 GMT
I just applied a patch that should fix this issue. Can you confirm that it works now?
Comment by (Det) - Sunday, 14 June 2015, 19:42 GMT
Yes. Seems to work as intended: https://aur4.archlinux.org/packages/jdk6-docs/

Loading...