[aur-general] makepkg patch for git at bitbucket.org urls
Dave Reisner
d at falconindy.com
Fri May 3 17:33:38 EDT 2013
On May 3, 2013 5:17 PM, "Myles English" <mylesenglish at gmail.com> wrote:
>
>
> Hi,
>
> Either I am using makepkg or wrong (how?) or I have a patch that might
> be useful.
>
> I was having trouble using this source line:
>
> sources=(dolfin::git://git@bitbucket.org:mylese/dolfin.git)
>
> which leads to this git command:
>
> $ git clone --mirror git://git@bitbucket.org:mylese/dolfin.git
/home/myles/tmp/sources/dolfin
>
> and this error:
>
> "fatal: Unable to look up git at bitbucket.org (port mylese) (Servname not
> supported for ai_socktype)"
Cloning from a private repo doesn't make a whole lot of sense here.
> Omitting the "git://" protocol, i.e.:
>
> sources=(dolfin::git at bitbucket.org:mylese/dolfin.git)
>
> leads to the "local" protocol being used and then
>
> "==> ERROR: dolfin was not found in the build directory and is not a URL"
>
> Changing makepkg like this:
>
> diff --git a/makepkg b/makepkg
> index 45a702e..310e5ef 100755
> --- a/makepkg
> +++ b/makepkg
> @@ -269,6 +269,10 @@ get_protocol() {
> # strip leading filename
> local proto="${1##*::}"
> printf "%s\n" "${proto%%://*}"
> + elif [[ $1 = *@bitbucket* ]]; then
> + # strip leading filename
> + local proto="${1##*::}"
> + printf "%s\n" "${proto%%@bitbucket*}"
I really don't think special casing bitbucket is the right "solution" here.
Just clone from a public repo.
> else
> printf "%s\n" local
> fi
>
> allows this sources line to be used:
>
> sources=(dolfin::git at bitbucket.org:mylese/dolfin.git)
>
> Myles
More information about the aur-general
mailing list