[1/2] Added x86_64 i586 aarch64 armv5tel support for GO language required for node_exporter compilation.
Message ID | 20210606174856.177205-2-holger.sunke@posteo.de |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4FykYM0ycXz3x6t for <patchwork@web04.haj.ipfire.org>; Sun, 6 Jun 2021 17:50:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FykYH5cLbz1DF; Sun, 6 Jun 2021 17:50:11 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FykYG71qvz2yqh; Sun, 6 Jun 2021 17:50:10 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FykYF5ljRz2xhq for <development@lists.ipfire.org>; Sun, 6 Jun 2021 17:50:09 +0000 (UTC) Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4FykYD2FMVzkW for <development@lists.ipfire.org>; Sun, 6 Jun 2021 17:50:08 +0000 (UTC) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B391A240029 for <development@lists.ipfire.org>; Sun, 6 Jun 2021 19:50:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1623001806; bh=tPHFl+a5CEg2xR+NTd4g5qNgNRatfBQGCcIO7hgdD1E=; h=From:To:Cc:Subject:Date:From; b=LjtH1EYk0j2E1iGVqkz5kx0n2V3tWet0J0lpDGBaNFk/OMoCQU+mCgQXGTyN1nyFS bRxNgPxNb6L0q+A/FIGCxIr8FFfvfUDSXBsoXhjj6egvEVHk3f7xy6Hs6MXMh6Ienh 6ubr6JxnwmreIBRnibE/o849UULLzuNPpVMG5K5Kz0B6C32x4/tzOK5XXLDbjUycKr t92WhTfH2/i4bzDsCMpwyr1rEAPESCXkeXJcL5OlBTX7Furv3fGy68+ITVLhoULxXZ mRB5E6aL59xee/pAgj5K2bUOWIH3HIZCARvkSA8+LDiknB6yCuNO0n8zXMXUqxusvv egWXwD62JXwSQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FykYB2gbZz9rxQ; Sun, 6 Jun 2021 19:50:06 +0200 (CEST) From: Holger Sunke <holger.sunke@posteo.de> To: development@lists.ipfire.org Subject: [PATCH 1/2] Added x86_64 i586 aarch64 armv5tel support for GO language required for node_exporter compilation. Date: Sun, 6 Jun 2021 17:48:55 +0000 Message-Id: <20210606174856.177205-2-holger.sunke@posteo.de> In-Reply-To: <20210606174856.177205-1-holger.sunke@posteo.de> References: <20210606174856.177205-1-holger.sunke@posteo.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=posteo.de header.s=2017 header.b=LjtH1EYk; spf=pass (mail01.ipfire.org: domain of holger.sunke@posteo.de designates 185.67.36.65 as permitted sender) smtp.mailfrom=holger.sunke@posteo.de ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1623001808; a=rsa-sha256; cv=none; b=RSngL7IHzK0k0V4HD7irIZb/l9lS8knzM0TyQpepYSakJUt8zK5RiXfbIeg745pbX3U3x5 4PdK4zhB2o11NNMBhkoHC1/sc0VNVxoZA6S+6Eo5t550uWE4Tqr+BGuOjZI8U3BoJwLl00 h88uJ13jrltqbQPZkvErqxSGIZM+uAeUayL7TLsoLAAOpOt/26bLfiyjYvuOD5aXTxYPqj vkWVLcRQjlHCkavMZZcL5a8dvirDeUOQyj9TAwLj+P9SZklse+q/cGo36665+fij+InPLo Ogg2jJoLV4goJFyH4ZEWPuzijfmD2Uu7AdExXqp9OW+xv52mgbQu8v3gJnuE4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1623001808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=KMv4/1oHTXCeZb9wPaMqdP6Fn0poscev0ilGBA1cyec=; b=Fmwu42l9SJ6p4AxgcLnCpaIYDatpe4aGf3My2I7geNNCYydJiFefCUyWuAOZAXfPgfEeR3 CeS6QXHkJ0PdHZ8hkgCnCB+qkdaNx8fnCmDcHoDmPTNNbC3400/Nfk8xt+vhH5zUEtE4sK zxzjhhKl5gez0WgJBrhBrUcYiIJjsyUa56DRUMS9ifkpTp5Iy6JyZOKbYXdo2PC3ASAjD6 jO4WPQc2ruQ3VS6SZQhMtMUNyYGAVsV5EFTQswN4norQIMAgG7qDXDaKImeCA2t7SlWrkL B9pHGcnzZZZwrrgM5jk7Qk8YJnp2aUfU2U7Gt5qkH/uqkoWP4CH1NOpRKrMeJw== X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-1.42 / 11.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.67.36.0/23:c]; R_MISSING_CHARSET(2.50)[]; RWL_MAILSPIKE_GOOD(0.00)[185.67.36.65:from]; IP_REPUTATION_HAM(-1.31)[asn: 8495(-0.37), country: DE(-0.01), ip: 185.67.36.65(-0.93)]; BROKEN_CONTENT_TYPE(1.50)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[posteo.de:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[posteo.de,none]; MX_GOOD(-0.01)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8495, ipnet:185.67.36.0/23, country:DE]; BAYES_HAM(-3.00)[99.99%]; RCVD_IN_DNSWL_LOW(-0.10)[185.67.36.65:from]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[posteo.de:s=2017]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; DWL_DNSWL_LOW(-1.00)[posteo.de:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4FykYD2FMVzkW Authentication-Results: mail01.ipfire.org; dkim=pass header.d=posteo.de header.s=2017 header.b=LjtH1EYk; spf=pass (mail01.ipfire.org: domain of holger.sunke@posteo.de designates 185.67.36.65 as permitted sender) smtp.mailfrom=holger.sunke@posteo.de; dmarc=pass (policy=none) header.from=posteo.de X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
Reworked patches introducing node_exporter on master branch
|
|
Commit Message
Holger Sunke
June 6, 2021, 5:48 p.m. UTC
--- lfs/Config | 8 ++++++++ lfs/go | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-)
Comments
Hello Holger, This patch looks good so far, but the root files are missing. Do you know what those are? Otherwise this would be mergeable. Best, -Michael > On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: > > --- > lfs/Config | 8 ++++++++ > lfs/go | 9 ++++++--- > 2 files changed, 14 insertions(+), 3 deletions(-) > > diff --git a/lfs/Config b/lfs/Config > index 7d98e303b..c8be227a1 100644 > --- a/lfs/Config > +++ b/lfs/Config > @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" > GOARCH = arm64 > endif > > +ifeq "$(BUILD_ARCH)" "armv5tel" > + GOARCH = armv6l > +endif > + > +ifeq "$(BUILD_ARCH)" "i586" > + GOARCH = 386 > +endif > + > ############################################################################### > # Common Macro Definitions > ############################################################################### > diff --git a/lfs/go b/lfs/go > index 6ebb37080..487ad8486 100644 > --- a/lfs/go > +++ b/lfs/go > @@ -28,10 +28,10 @@ VER = 1.15.4 > > THISAPP = go-$(VER) > DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz > -DL_FROM = $(URL_IPFIRE) > +DL_FROM = https://golang.org/dl/ > DIR_APP = $(DIR_SRC)/go > TARGET = $(DIR_INFO)/$(THISAPP) > -SUP_ARCH = x86_64 > +SUP_ARCH = x86_64 i586 aarch64 armv5tel > > ############################################################################### > # Top-level Rules > @@ -41,7 +41,10 @@ objects = $(DL_FILE) > > $(DL_FILE) = $(DL_FROM)/$(DL_FILE) > > -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d > +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d > +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c > +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be > +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 > > install : $(TARGET) > > -- > 2.30.2 >
Hello Michael, I don't know what the root files are, would you mind to explain? Kind regards Holger Am 08.06.21 um 18:54 schrieb Michael Tremer: > Hello Holger, > > This patch looks good so far, but the root files are missing. > > Do you know what those are? > > Otherwise this would be mergeable. > > Best, > -Michael > >> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >> >> --- >> lfs/Config | 8 ++++++++ >> lfs/go | 9 ++++++--- >> 2 files changed, 14 insertions(+), 3 deletions(-) >> >> diff --git a/lfs/Config b/lfs/Config >> index 7d98e303b..c8be227a1 100644 >> --- a/lfs/Config >> +++ b/lfs/Config >> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >> GOARCH = arm64 >> endif >> >> +ifeq "$(BUILD_ARCH)" "armv5tel" >> + GOARCH = armv6l >> +endif >> + >> +ifeq "$(BUILD_ARCH)" "i586" >> + GOARCH = 386 >> +endif >> + >> ############################################################################### >> # Common Macro Definitions >> ############################################################################### >> diff --git a/lfs/go b/lfs/go >> index 6ebb37080..487ad8486 100644 >> --- a/lfs/go >> +++ b/lfs/go >> @@ -28,10 +28,10 @@ VER = 1.15.4 >> >> THISAPP = go-$(VER) >> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >> -DL_FROM = $(URL_IPFIRE) >> +DL_FROM = https://golang.org/dl/ >> DIR_APP = $(DIR_SRC)/go >> TARGET = $(DIR_INFO)/$(THISAPP) >> -SUP_ARCH = x86_64 >> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >> >> ############################################################################### >> # Top-level Rules >> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >> >> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >> >> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >> >> install : $(TARGET) >> >> -- >> 2.30.2 >> >
Hello, > On 9 Jun 2021, at 07:00, Holger Sunke <holger.sunke@posteo.de> wrote: > > Hello Michael, > > I don't know what the root files are, would you mind to explain? It is explained here: https://wiki.ipfire.org/devel/ipfire-2-x/addon-howto#package-definition There is a log file which lists all files that are created and you will need to select the files that should be shipped in the package. Let me know if you have any questions. Best, -Michael > > Kind regards > > Holger > > Am 08.06.21 um 18:54 schrieb Michael Tremer: >> Hello Holger, >> This patch looks good so far, but the root files are missing. >> Do you know what those are? >> Otherwise this would be mergeable. >> Best, >> -Michael >>> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >>> >>> --- >>> lfs/Config | 8 ++++++++ >>> lfs/go | 9 ++++++--- >>> 2 files changed, 14 insertions(+), 3 deletions(-) >>> >>> diff --git a/lfs/Config b/lfs/Config >>> index 7d98e303b..c8be227a1 100644 >>> --- a/lfs/Config >>> +++ b/lfs/Config >>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>> GOARCH = arm64 >>> endif >>> >>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>> + GOARCH = armv6l >>> +endif >>> + >>> +ifeq "$(BUILD_ARCH)" "i586" >>> + GOARCH = 386 >>> +endif >>> + >>> ############################################################################### >>> # Common Macro Definitions >>> ############################################################################### >>> diff --git a/lfs/go b/lfs/go >>> index 6ebb37080..487ad8486 100644 >>> --- a/lfs/go >>> +++ b/lfs/go >>> @@ -28,10 +28,10 @@ VER = 1.15.4 >>> >>> THISAPP = go-$(VER) >>> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >>> -DL_FROM = $(URL_IPFIRE) >>> +DL_FROM = https://golang.org/dl/ >>> DIR_APP = $(DIR_SRC)/go >>> TARGET = $(DIR_INFO)/$(THISAPP) >>> -SUP_ARCH = x86_64 >>> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >>> >>> ############################################################################### >>> # Top-level Rules >>> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >>> >>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >>> >>> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >>> >>> install : $(TARGET) >>> >>> -- >>> 2.30.2 >>>
I guess I have to build ipfire for each different arch to get the log files as source for the root files. How do you build ipfire for all the archs? Do you use some kind of VMs? Kind regards Holger On 08.06.21 18:54, Michael Tremer wrote: > Hello Holger, > > This patch looks good so far, but the root files are missing. > > Do you know what those are? > > Otherwise this would be mergeable. > > Best, > -Michael > >> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >> >> --- >> lfs/Config | 8 ++++++++ >> lfs/go | 9 ++++++--- >> 2 files changed, 14 insertions(+), 3 deletions(-) >> >> diff --git a/lfs/Config b/lfs/Config >> index 7d98e303b..c8be227a1 100644 >> --- a/lfs/Config >> +++ b/lfs/Config >> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >> GOARCH = arm64 >> endif >> >> +ifeq "$(BUILD_ARCH)" "armv5tel" >> + GOARCH = armv6l >> +endif >> + >> +ifeq "$(BUILD_ARCH)" "i586" >> + GOARCH = 386 >> +endif >> + >> ############################################################################### >> # Common Macro Definitions >> ############################################################################### >> diff --git a/lfs/go b/lfs/go >> index 6ebb37080..487ad8486 100644 >> --- a/lfs/go >> +++ b/lfs/go >> @@ -28,10 +28,10 @@ VER = 1.15.4 >> >> THISAPP = go-$(VER) >> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >> -DL_FROM = $(URL_IPFIRE) >> +DL_FROM = https://golang.org/dl/ >> DIR_APP = $(DIR_SRC)/go >> TARGET = $(DIR_INFO)/$(THISAPP) >> -SUP_ARCH = x86_64 >> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >> >> ############################################################################### >> # Top-level Rules >> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >> >> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >> >> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >> >> install : $(TARGET) >> >> -- >> 2.30.2 >> >
Hello Holger, > On 15 Jul 2021, at 20:32, Holger Sunke <holger.sunke@posteo.de> wrote: > > I guess I have to build ipfire for each different arch to get the log files as source for the root files. Yes, that would be the easiest way. For most packages this is not requires as the list of installed files is identical but compilers and other architecture-specific package tends to require this extra work. > How do you build ipfire for all the archs? Do you use some kind of VMs? You can do either that or use qemu-user-static. This will emulate the other architecture for you instead. So you would install qemu-user-static (https://packages.debian.org/buster/qemu-user-static) or whatever the equivalent is in our your distribution of choice and then run these commands: Erase the old build: ./make.sh clean Download a toolchain for the target architecture: ./make.sh —-target=aarch64 gettoolchain And then you run the build: ./make.sh —-target=aarch64 build You can then do this for armv6l in next, too. The emulated build will take a little bit longer due to the emulation. Let me know if this has worked. Best, -Michael > > Kind regards > > Holger > > > > On 08.06.21 18:54, Michael Tremer wrote: >> Hello Holger, >> This patch looks good so far, but the root files are missing. >> Do you know what those are? >> Otherwise this would be mergeable. >> Best, >> -Michael >>> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >>> >>> --- >>> lfs/Config | 8 ++++++++ >>> lfs/go | 9 ++++++--- >>> 2 files changed, 14 insertions(+), 3 deletions(-) >>> >>> diff --git a/lfs/Config b/lfs/Config >>> index 7d98e303b..c8be227a1 100644 >>> --- a/lfs/Config >>> +++ b/lfs/Config >>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>> GOARCH = arm64 >>> endif >>> >>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>> + GOARCH = armv6l >>> +endif >>> + >>> +ifeq "$(BUILD_ARCH)" "i586" >>> + GOARCH = 386 >>> +endif >>> + >>> ############################################################################### >>> # Common Macro Definitions >>> ############################################################################### >>> diff --git a/lfs/go b/lfs/go >>> index 6ebb37080..487ad8486 100644 >>> --- a/lfs/go >>> +++ b/lfs/go >>> @@ -28,10 +28,10 @@ VER = 1.15.4 >>> >>> THISAPP = go-$(VER) >>> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >>> -DL_FROM = $(URL_IPFIRE) >>> +DL_FROM = https://golang.org/dl/ >>> DIR_APP = $(DIR_SRC)/go >>> TARGET = $(DIR_INFO)/$(THISAPP) >>> -SUP_ARCH = x86_64 >>> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >>> >>> ############################################################################### >>> # Top-level Rules >>> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >>> >>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >>> >>> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >>> >>> install : $(TARGET) >>> >>> -- >>> 2.30.2 >>>
Hello Michael, I think this should generally work, but currently I'm stuck with strange issues like these: Jul 21 17:51:53: Building glibc glibc-2.32.tar.xz checksum OK + cd /usr/src/lfs + make -f glibc LFS_BASEDIR=/usr/src install ====================================== Installing glibc-2.32 ... Install started; saving file list to /usr/src/lsalr ... cd /usr/src/glibc-2.32 && patch -Np1 < /usr/src/src/patches/glibc-localedef-no-archive.patch patching file localedata/Makefile Hunk #1 succeeded at 440 with fuzz 1 (offset 217 lines). cd /usr/src/glibc-build && \ CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC -fstack-clash-protection -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Wno-error=maybe-uninitialized -fno-asynchronous-unwind-tables" \ /usr/src/glibc-2.32/configure --build=aarch64-unknown-linux-gnu --prefix=/usr --libexecdir=/usr/lib/glibc --enable-stack-protector=strong --disable-profile --enable-kernel=4.14.0 --enable-add-ons --without-selinux --enable-experimental-malloc --enable-bind-now --disable-crypt qemu: Unsupported syscall: 291 /tools_aarch64/bin/ls: cannot access '.': Function not implemented configure: error: working directory cannot be determined make: *** [glibc:114: /usr/src/log/glibc-2.32] Error 2 ERROR: Building glibc [ FAIL ] Check /home/holger/development/ipfire/ipfire-2.x/log/_build.base.log for errors if applicable [ FAIL ] I tried building in schroot using Ubuntu bionic and focal. Did you already encounter these errors? Kind regards Holger Am 19.07.21 um 13:11 schrieb Michael Tremer: > Hello Holger, > >> On 15 Jul 2021, at 20:32, Holger Sunke <holger.sunke@posteo.de> wrote: >> >> I guess I have to build ipfire for each different arch to get the log files as source for the root files. > > Yes, that would be the easiest way. For most packages this is not requires as the list of installed files is identical but compilers and other architecture-specific package tends to require this extra work. > >> How do you build ipfire for all the archs? Do you use some kind of VMs? > > You can do either that or use qemu-user-static. This will emulate the other architecture for you instead. > > So you would install qemu-user-static (https://packages.debian.org/buster/qemu-user-static) or whatever the equivalent is in our your distribution of choice and then run these commands: > > Erase the old build: > > ./make.sh clean > > Download a toolchain for the target architecture: > > ./make.sh —-target=aarch64 gettoolchain > > And then you run the build: > > ./make.sh —-target=aarch64 build > > You can then do this for armv6l in next, too. > > The emulated build will take a little bit longer due to the emulation. > > Let me know if this has worked. > > Best, > -Michael > >> >> Kind regards >> >> Holger >> >> >> >> On 08.06.21 18:54, Michael Tremer wrote: >>> Hello Holger, >>> This patch looks good so far, but the root files are missing. >>> Do you know what those are? >>> Otherwise this would be mergeable. >>> Best, >>> -Michael >>>> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >>>> >>>> --- >>>> lfs/Config | 8 ++++++++ >>>> lfs/go | 9 ++++++--- >>>> 2 files changed, 14 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/lfs/Config b/lfs/Config >>>> index 7d98e303b..c8be227a1 100644 >>>> --- a/lfs/Config >>>> +++ b/lfs/Config >>>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>>> GOARCH = arm64 >>>> endif >>>> >>>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>>> + GOARCH = armv6l >>>> +endif >>>> + >>>> +ifeq "$(BUILD_ARCH)" "i586" >>>> + GOARCH = 386 >>>> +endif >>>> + >>>> ############################################################################### >>>> # Common Macro Definitions >>>> ############################################################################### >>>> diff --git a/lfs/go b/lfs/go >>>> index 6ebb37080..487ad8486 100644 >>>> --- a/lfs/go >>>> +++ b/lfs/go >>>> @@ -28,10 +28,10 @@ VER = 1.15.4 >>>> >>>> THISAPP = go-$(VER) >>>> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >>>> -DL_FROM = $(URL_IPFIRE) >>>> +DL_FROM = https://golang.org/dl/ >>>> DIR_APP = $(DIR_SRC)/go >>>> TARGET = $(DIR_INFO)/$(THISAPP) >>>> -SUP_ARCH = x86_64 >>>> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >>>> >>>> ############################################################################### >>>> # Top-level Rules >>>> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >>>> >>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >>>> >>>> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >>>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >>>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >>>> >>>> install : $(TARGET) >>>> >>>> -- >>>> 2.30.2 >>>> >
Hello, We had this one before on the list. I can’t find it though. What distribution are you using? It looks like QEMU is too old. The statx syscall (291) isn’t supported. -Michael > On 21 Jul 2021, at 18:55, Holger Sunke <holger.sunke@posteo.de> wrote: > > Hello Michael, > > I think this should generally work, but currently I'm stuck with strange issues like these: > > Jul 21 17:51:53: Building glibc glibc-2.32.tar.xz checksum OK > + cd /usr/src/lfs > + make -f glibc LFS_BASEDIR=/usr/src install > ====================================== Installing glibc-2.32 ... > Install started; saving file list to /usr/src/lsalr ... > cd /usr/src/glibc-2.32 && patch -Np1 < /usr/src/src/patches/glibc-localedef-no-archive.patch > patching file localedata/Makefile > Hunk #1 succeeded at 440 with fuzz 1 (offset 217 lines). > cd /usr/src/glibc-build && \ > CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC -fstack-clash-protection -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Wno-error=maybe-uninitialized -fno-asynchronous-unwind-tables" \ > /usr/src/glibc-2.32/configure --build=aarch64-unknown-linux-gnu --prefix=/usr --libexecdir=/usr/lib/glibc --enable-stack-protector=strong --disable-profile --enable-kernel=4.14.0 --enable-add-ons --without-selinux --enable-experimental-malloc --enable-bind-now --disable-crypt > qemu: Unsupported syscall: 291 > /tools_aarch64/bin/ls: cannot access '.': Function not implemented > configure: error: working directory cannot be determined > make: *** [glibc:114: /usr/src/log/glibc-2.32] Error 2 > > ERROR: Building glibc [ FAIL ] > Check /home/holger/development/ipfire/ipfire-2.x/log/_build.base.log for errors if applicable [ FAIL ] > > > I tried building in schroot using Ubuntu bionic and focal. > > Did you already encounter these errors? > > Kind regards > Holger > > > Am 19.07.21 um 13:11 schrieb Michael Tremer: >> Hello Holger, >>> On 15 Jul 2021, at 20:32, Holger Sunke <holger.sunke@posteo.de> wrote: >>> >>> I guess I have to build ipfire for each different arch to get the log files as source for the root files. >> Yes, that would be the easiest way. For most packages this is not requires as the list of installed files is identical but compilers and other architecture-specific package tends to require this extra work. >>> How do you build ipfire for all the archs? Do you use some kind of VMs? >> You can do either that or use qemu-user-static. This will emulate the other architecture for you instead. >> So you would install qemu-user-static (https://packages.debian.org/buster/qemu-user-static) or whatever the equivalent is in our your distribution of choice and then run these commands: >> Erase the old build: >> ./make.sh clean >> Download a toolchain for the target architecture: >> ./make.sh —-target=aarch64 gettoolchain >> And then you run the build: >> ./make.sh —-target=aarch64 build >> You can then do this for armv6l in next, too. >> The emulated build will take a little bit longer due to the emulation. >> Let me know if this has worked. >> Best, >> -Michael >>> >>> Kind regards >>> >>> Holger >>> >>> >>> >>> On 08.06.21 18:54, Michael Tremer wrote: >>>> Hello Holger, >>>> This patch looks good so far, but the root files are missing. >>>> Do you know what those are? >>>> Otherwise this would be mergeable. >>>> Best, >>>> -Michael >>>>> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >>>>> >>>>> --- >>>>> lfs/Config | 8 ++++++++ >>>>> lfs/go | 9 ++++++--- >>>>> 2 files changed, 14 insertions(+), 3 deletions(-) >>>>> >>>>> diff --git a/lfs/Config b/lfs/Config >>>>> index 7d98e303b..c8be227a1 100644 >>>>> --- a/lfs/Config >>>>> +++ b/lfs/Config >>>>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>>>> GOARCH = arm64 >>>>> endif >>>>> >>>>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>>>> + GOARCH = armv6l >>>>> +endif >>>>> + >>>>> +ifeq "$(BUILD_ARCH)" "i586" >>>>> + GOARCH = 386 >>>>> +endif >>>>> + >>>>> ############################################################################### >>>>> # Common Macro Definitions >>>>> ############################################################################### >>>>> diff --git a/lfs/go b/lfs/go >>>>> index 6ebb37080..487ad8486 100644 >>>>> --- a/lfs/go >>>>> +++ b/lfs/go >>>>> @@ -28,10 +28,10 @@ VER = 1.15.4 >>>>> >>>>> THISAPP = go-$(VER) >>>>> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >>>>> -DL_FROM = $(URL_IPFIRE) >>>>> +DL_FROM = https://golang.org/dl/ >>>>> DIR_APP = $(DIR_SRC)/go >>>>> TARGET = $(DIR_INFO)/$(THISAPP) >>>>> -SUP_ARCH = x86_64 >>>>> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >>>>> >>>>> ############################################################################### >>>>> # Top-level Rules >>>>> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >>>>> >>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >>>>> >>>>> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>>> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >>>>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >>>>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >>>>> >>>>> install : $(TARGET) >>>>> >>>>> -- >>>>> 2.30.2 >>>>>
Hello, I'm using Ubuntu focal. After pulling a newer version of qemu and locally moving up the 'go' package in the make.sh script, I finally got the logs to create rootfiles for aarch64 and armv5tel. What exact distro are you using? I could not manage do complete a build for aarch64 nor armv5tel as I ran into segmentation faults. Kind reagards Holger Am 21.07.21 um 20:15 schrieb Michael Tremer: > Hello, > > We had this one before on the list. I can’t find it though. > > What distribution are you using? It looks like QEMU is too old. The statx syscall (291) isn’t supported. > > -Michael > >> On 21 Jul 2021, at 18:55, Holger Sunke <holger.sunke@posteo.de> wrote: >> >> Hello Michael, >> >> I think this should generally work, but currently I'm stuck with strange issues like these: >> >> Jul 21 17:51:53: Building glibc glibc-2.32.tar.xz checksum OK >> + cd /usr/src/lfs >> + make -f glibc LFS_BASEDIR=/usr/src install >> ====================================== Installing glibc-2.32 ... >> Install started; saving file list to /usr/src/lsalr ... >> cd /usr/src/glibc-2.32 && patch -Np1 < /usr/src/src/patches/glibc-localedef-no-archive.patch >> patching file localedata/Makefile >> Hunk #1 succeeded at 440 with fuzz 1 (offset 217 lines). >> cd /usr/src/glibc-build && \ >> CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC -fstack-clash-protection -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Wno-error=maybe-uninitialized -fno-asynchronous-unwind-tables" \ >> /usr/src/glibc-2.32/configure --build=aarch64-unknown-linux-gnu --prefix=/usr --libexecdir=/usr/lib/glibc --enable-stack-protector=strong --disable-profile --enable-kernel=4.14.0 --enable-add-ons --without-selinux --enable-experimental-malloc --enable-bind-now --disable-crypt >> qemu: Unsupported syscall: 291 >> /tools_aarch64/bin/ls: cannot access '.': Function not implemented >> configure: error: working directory cannot be determined >> make: *** [glibc:114: /usr/src/log/glibc-2.32] Error 2 >> >> ERROR: Building glibc [ FAIL ] >> Check /home/holger/development/ipfire/ipfire-2.x/log/_build.base.log for errors if applicable [ FAIL ] >> >> >> I tried building in schroot using Ubuntu bionic and focal. >> >> Did you already encounter these errors? >> >> Kind regards >> Holger >> >> >> Am 19.07.21 um 13:11 schrieb Michael Tremer: >>> Hello Holger, >>>> On 15 Jul 2021, at 20:32, Holger Sunke <holger.sunke@posteo.de> wrote: >>>> >>>> I guess I have to build ipfire for each different arch to get the log files as source for the root files. >>> Yes, that would be the easiest way. For most packages this is not requires as the list of installed files is identical but compilers and other architecture-specific package tends to require this extra work. >>>> How do you build ipfire for all the archs? Do you use some kind of VMs? >>> You can do either that or use qemu-user-static. This will emulate the other architecture for you instead. >>> So you would install qemu-user-static (https://packages.debian.org/buster/qemu-user-static) or whatever the equivalent is in our your distribution of choice and then run these commands: >>> Erase the old build: >>> ./make.sh clean >>> Download a toolchain for the target architecture: >>> ./make.sh —-target=aarch64 gettoolchain >>> And then you run the build: >>> ./make.sh —-target=aarch64 build >>> You can then do this for armv6l in next, too. >>> The emulated build will take a little bit longer due to the emulation. >>> Let me know if this has worked. >>> Best, >>> -Michael >>>> >>>> Kind regards >>>> >>>> Holger >>>> >>>> >>>> >>>> On 08.06.21 18:54, Michael Tremer wrote: >>>>> Hello Holger, >>>>> This patch looks good so far, but the root files are missing. >>>>> Do you know what those are? >>>>> Otherwise this would be mergeable. >>>>> Best, >>>>> -Michael >>>>>> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >>>>>> >>>>>> --- >>>>>> lfs/Config | 8 ++++++++ >>>>>> lfs/go | 9 ++++++--- >>>>>> 2 files changed, 14 insertions(+), 3 deletions(-) >>>>>> >>>>>> diff --git a/lfs/Config b/lfs/Config >>>>>> index 7d98e303b..c8be227a1 100644 >>>>>> --- a/lfs/Config >>>>>> +++ b/lfs/Config >>>>>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>>>>> GOARCH = arm64 >>>>>> endif >>>>>> >>>>>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>>>>> + GOARCH = armv6l >>>>>> +endif >>>>>> + >>>>>> +ifeq "$(BUILD_ARCH)" "i586" >>>>>> + GOARCH = 386 >>>>>> +endif >>>>>> + >>>>>> ############################################################################### >>>>>> # Common Macro Definitions >>>>>> ############################################################################### >>>>>> diff --git a/lfs/go b/lfs/go >>>>>> index 6ebb37080..487ad8486 100644 >>>>>> --- a/lfs/go >>>>>> +++ b/lfs/go >>>>>> @@ -28,10 +28,10 @@ VER = 1.15.4 >>>>>> >>>>>> THISAPP = go-$(VER) >>>>>> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >>>>>> -DL_FROM = $(URL_IPFIRE) >>>>>> +DL_FROM = https://golang.org/dl/ >>>>>> DIR_APP = $(DIR_SRC)/go >>>>>> TARGET = $(DIR_INFO)/$(THISAPP) >>>>>> -SUP_ARCH = x86_64 >>>>>> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >>>>>> >>>>>> ############################################################################### >>>>>> # Top-level Rules >>>>>> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >>>>>> >>>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >>>>>> >>>>>> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>>>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>>>> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >>>>>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >>>>>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >>>>>> >>>>>> install : $(TARGET) >>>>>> >>>>>> -- >>>>>> 2.30.2 >>>>>> >
Hey, > On 24 Jul 2021, at 20:13, Holger Sunke <holger.sunke@posteo.de> wrote: > > Hello, > > I'm using Ubuntu focal. After pulling a newer version of qemu and locally moving up the 'go' package in the make.sh script, I finally got the logs to create rootfiles for aarch64 and armv5tel. > > What exact distro are you using? I could not manage do complete a build for aarch64 nor armv5tel as I ran into segmentation faults. I am using Debian Buster with maybe a couple of backports. I didn’t test bullseye, yet, but all these including Ubuntu should be fine. The segmentation faults can happen and you can just restart the build and it should eventually go through. For the nightly builds with are using native systems on AWS with their Graviton 2 processors. AFAIK there is no “budget” alternative to that. -Michael > > Kind reagards > > Holger > > Am 21.07.21 um 20:15 schrieb Michael Tremer: >> Hello, >> We had this one before on the list. I can’t find it though. >> What distribution are you using? It looks like QEMU is too old. The statx syscall (291) isn’t supported. >> -Michael >>> On 21 Jul 2021, at 18:55, Holger Sunke <holger.sunke@posteo.de> wrote: >>> >>> Hello Michael, >>> >>> I think this should generally work, but currently I'm stuck with strange issues like these: >>> >>> Jul 21 17:51:53: Building glibc glibc-2.32.tar.xz checksum OK >>> + cd /usr/src/lfs >>> + make -f glibc LFS_BASEDIR=/usr/src install >>> ====================================== Installing glibc-2.32 ... >>> Install started; saving file list to /usr/src/lsalr ... >>> cd /usr/src/glibc-2.32 && patch -Np1 < /usr/src/src/patches/glibc-localedef-no-archive.patch >>> patching file localedata/Makefile >>> Hunk #1 succeeded at 440 with fuzz 1 (offset 217 lines). >>> cd /usr/src/glibc-build && \ >>> CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC -fstack-clash-protection -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Wno-error=maybe-uninitialized -fno-asynchronous-unwind-tables" \ >>> /usr/src/glibc-2.32/configure --build=aarch64-unknown-linux-gnu --prefix=/usr --libexecdir=/usr/lib/glibc --enable-stack-protector=strong --disable-profile --enable-kernel=4.14.0 --enable-add-ons --without-selinux --enable-experimental-malloc --enable-bind-now --disable-crypt >>> qemu: Unsupported syscall: 291 >>> /tools_aarch64/bin/ls: cannot access '.': Function not implemented >>> configure: error: working directory cannot be determined >>> make: *** [glibc:114: /usr/src/log/glibc-2.32] Error 2 >>> >>> ERROR: Building glibc [ FAIL ] >>> Check /home/holger/development/ipfire/ipfire-2.x/log/_build.base.log for errors if applicable [ FAIL ] >>> >>> >>> I tried building in schroot using Ubuntu bionic and focal. >>> >>> Did you already encounter these errors? >>> >>> Kind regards >>> Holger >>> >>> >>> Am 19.07.21 um 13:11 schrieb Michael Tremer: >>>> Hello Holger, >>>>> On 15 Jul 2021, at 20:32, Holger Sunke <holger.sunke@posteo.de> wrote: >>>>> >>>>> I guess I have to build ipfire for each different arch to get the log files as source for the root files. >>>> Yes, that would be the easiest way. For most packages this is not requires as the list of installed files is identical but compilers and other architecture-specific package tends to require this extra work. >>>>> How do you build ipfire for all the archs? Do you use some kind of VMs? >>>> You can do either that or use qemu-user-static. This will emulate the other architecture for you instead. >>>> So you would install qemu-user-static (https://packages.debian.org/buster/qemu-user-static) or whatever the equivalent is in our your distribution of choice and then run these commands: >>>> Erase the old build: >>>> ./make.sh clean >>>> Download a toolchain for the target architecture: >>>> ./make.sh —-target=aarch64 gettoolchain >>>> And then you run the build: >>>> ./make.sh —-target=aarch64 build >>>> You can then do this for armv6l in next, too. >>>> The emulated build will take a little bit longer due to the emulation. >>>> Let me know if this has worked. >>>> Best, >>>> -Michael >>>>> >>>>> Kind regards >>>>> >>>>> Holger >>>>> >>>>> >>>>> >>>>> On 08.06.21 18:54, Michael Tremer wrote: >>>>>> Hello Holger, >>>>>> This patch looks good so far, but the root files are missing. >>>>>> Do you know what those are? >>>>>> Otherwise this would be mergeable. >>>>>> Best, >>>>>> -Michael >>>>>>> On 6 Jun 2021, at 18:48, Holger Sunke <holger.sunke@posteo.de> wrote: >>>>>>> >>>>>>> --- >>>>>>> lfs/Config | 8 ++++++++ >>>>>>> lfs/go | 9 ++++++--- >>>>>>> 2 files changed, 14 insertions(+), 3 deletions(-) >>>>>>> >>>>>>> diff --git a/lfs/Config b/lfs/Config >>>>>>> index 7d98e303b..c8be227a1 100644 >>>>>>> --- a/lfs/Config >>>>>>> +++ b/lfs/Config >>>>>>> @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" >>>>>>> GOARCH = arm64 >>>>>>> endif >>>>>>> >>>>>>> +ifeq "$(BUILD_ARCH)" "armv5tel" >>>>>>> + GOARCH = armv6l >>>>>>> +endif >>>>>>> + >>>>>>> +ifeq "$(BUILD_ARCH)" "i586" >>>>>>> + GOARCH = 386 >>>>>>> +endif >>>>>>> + >>>>>>> ############################################################################### >>>>>>> # Common Macro Definitions >>>>>>> ############################################################################### >>>>>>> diff --git a/lfs/go b/lfs/go >>>>>>> index 6ebb37080..487ad8486 100644 >>>>>>> --- a/lfs/go >>>>>>> +++ b/lfs/go >>>>>>> @@ -28,10 +28,10 @@ VER = 1.15.4 >>>>>>> >>>>>>> THISAPP = go-$(VER) >>>>>>> DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz >>>>>>> -DL_FROM = $(URL_IPFIRE) >>>>>>> +DL_FROM = https://golang.org/dl/ >>>>>>> DIR_APP = $(DIR_SRC)/go >>>>>>> TARGET = $(DIR_INFO)/$(THISAPP) >>>>>>> -SUP_ARCH = x86_64 >>>>>>> +SUP_ARCH = x86_64 i586 aarch64 armv5tel >>>>>>> >>>>>>> ############################################################################### >>>>>>> # Top-level Rules >>>>>>> @@ -41,7 +41,10 @@ objects = $(DL_FILE) >>>>>>> >>>>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE) >>>>>>> >>>>>>> -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>>>>> +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d >>>>>>> +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c >>>>>>> +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be >>>>>>> +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 >>>>>>> >>>>>>> install : $(TARGET) >>>>>>> >>>>>>> -- >>>>>>> 2.30.2 >>>>>>>
diff --git a/lfs/Config b/lfs/Config index 7d98e303b..c8be227a1 100644 --- a/lfs/Config +++ b/lfs/Config @@ -138,6 +138,14 @@ ifeq "$(BUILD_ARCH)" "aarch64" GOARCH = arm64 endif +ifeq "$(BUILD_ARCH)" "armv5tel" + GOARCH = armv6l +endif + +ifeq "$(BUILD_ARCH)" "i586" + GOARCH = 386 +endif + ############################################################################### # Common Macro Definitions ############################################################################### diff --git a/lfs/go b/lfs/go index 6ebb37080..487ad8486 100644 --- a/lfs/go +++ b/lfs/go @@ -28,10 +28,10 @@ VER = 1.15.4 THISAPP = go-$(VER) DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz -DL_FROM = $(URL_IPFIRE) +DL_FROM = https://golang.org/dl/ DIR_APP = $(DIR_SRC)/go TARGET = $(DIR_INFO)/$(THISAPP) -SUP_ARCH = x86_64 +SUP_ARCH = x86_64 i586 aarch64 armv5tel ############################################################################### # Top-level Rules @@ -41,7 +41,10 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 8e9d11a16f03372c82c5134278a0bd7d +go$(VER).$(GOOS)-amd64.tar.gz_MD5 = 8e9d11a16f03372c82c5134278a0bd7d +go$(VER).$(GOOS)-386.tar.gz_MD5 = 8d1c3539c88710273f61b0c810b7448c +go$(VER).$(GOOS)-arm64.tar.gz_MD5 = b1846fb093f0261707bda44e158bc5be +go$(VER).$(GOOS)-armv6l.tar.gz_MD5 = cf04e0d84de6cbb7d224be1f42a83f02 install : $(TARGET)