FS#41811 - makepkg -- impossible to specify a bzr+ssh:// URL

Attached to Project: Pacman
Opened by Mantas Mikulėnas (grawity) - Wednesday, 03 September 2014, 19:49 GMT
Last edited by Allan McRae (Allan) - Monday, 17 November 2014, 07:20 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version 4.2.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm trying to build a package from the 'lp:hipl' Bzr repository. After the initial branching, running `makepkg` throws the error:

==> Retrieving sources...
==> ERROR: /home/grawity/src/_makepkg/hipl is not a branch of lp:hipl
==> ERROR: The local URL is bzr+ssh://bazaar.launchpad.net/+branch/hipl/

Alright, but if I change it to source=(bzr+ssh://...), I get this:

==> Retrieving sources...
==> ERROR: /home/grawity/src/_makepkg/hipl is not a branch of ssh://bazaar.launchpad.net/+branch/hipl/
==> ERROR: The local URL is bzr+ssh://bazaar.launchpad.net/+branch/hipl/

Okay, so makepkg chops the "bzr+" for its own use, which means source=(bzr+bzr+ssh://...) will work, right?

==> Retrieving sources...
==> ERROR: /home/grawity/src/_makepkg/hipl is not a branch of ssh://bazaar.launchpad.net/+branch/hipl/
==> ERROR: The local URL is bzr+ssh://bazaar.launchpad.net/+branch/hipl/

...nope.

Even if I have "bzr+" a dozen times, it is impossible to tell makepkg that at least one "bzr+" is literally *part of* the repository URL.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 17 November 2014, 07:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  6949012590
Comment by Mantas Mikulėnas (grawity) - Wednesday, 03 September 2014, 19:51 GMT
Ah, yeah, and it's makepkg (pacman) 4.1.2-406-g3e19, commit 3e19cd366add23.
Comment by Tatsuyuki Ishi (ishitatsuyuki) - Tuesday, 23 September 2014, 08:42 GMT
OK, this is NOT a complete fix, but a usable fix...

Change LINE 458 "$url" to
$(echo "$url" | sed -e "s/http/bzr+ssh/")

Loading...