~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] community/go: Add musl-dev as dependency

Details
Message ID
<20190924182427.14073-1-wolf@wolfsden.cz>
DKIM signature
missing
Download raw message
Patch: +1 -1
Installing and trying to use go in clean base image lead to

/tmp # go run test.go
loadinternal: cannot find runtime/cgo
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
cannot find Scrt1.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
cannot find crti.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status

which is fixed by installing musl-dev.
---
 community/go/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index fbcee984e1..00a75209b6 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -8,7 +8,7 @@ pkgdesc="Go programming language compiler"
url="http://www.golang.org/"
arch="all"
license="BSD"
depends="binutils gcc"
depends="binutils gcc musl-dev"
depends_dev=""
makedepends="bash"
checkdepends="binutils-gold"
-- 
2.23.0
Details
Message ID
<20191101181726.GF356904@alpha>
In-Reply-To
<20190924182427.14073-1-wolf@wolfsden.cz> (view parent)
DKIM signature
missing
Download raw message
On Tue, Sep 24, 2019 at 08:24:27PM +0200, Wolf wrote:
> Installing and trying to use go in clean base image lead to
> 
> /tmp # go run test.go
> loadinternal: cannot find runtime/cgo
> /usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
> /usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
> cannot find Scrt1.o: No such file or directory
> /usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
> cannot find crti.o: No such file or directory
> /usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
> cannot find -lssp_nonshared
> collect2: error: ld returned 1 exit status
> 
> which is fixed by installing musl-dev.
> ---
>  community/go/APKBUILD | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/community/go/APKBUILD b/community/go/APKBUILD
> index fbcee984e1..00a75209b6 100644
> --- a/community/go/APKBUILD
> +++ b/community/go/APKBUILD
> @@ -8,7 +8,7 @@ pkgdesc="Go programming language compiler"
>  url="http://www.golang.org/"
>  arch="all"
>  license="BSD"
> -depends="binutils gcc"
> +depends="binutils gcc musl-dev"
>  depends_dev=""
>  makedepends="bash"
>  checkdepends="binutils-gold"
> -- 
> 2.23.0

Hello Wolf,

I have pushed this to master. Note that you forgot to bump the pkgrel, which is
necessary for the package to be rebuilt.

Kind regards, Kevin.
Reply to thread Export thread (mbox)