On May 3, 2013 5:17 PM, "Myles English" <[email protected]> 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://[email protected]:mylese/dolfin.git)
>
> which leads to this git command:
>
> $ git clone --mirror git://[email protected]:mylese/dolfin.git
/home/myles/tmp/sources/dolfin
>
> and this error:
>
> "fatal: Unable to look up [email protected] (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::[email protected]: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::[email protected]:mylese/dolfin.git)
>
> Myles

Reply via email to