From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Wed, 10 Oct 2018 15:22:13 +0200 From: Alexander Dahl Message-ID: <20181010132213.2a7i5qr6taahvhwn@falbala.home.lespocky.de> References: <20181010080519.s7oc5dopoq7tmd55@falbala.home.lespocky.de> <20181010110401.cvcssn6ftc7n5pm6@pengutronix.de> <20181010122148.tbcmbnsa756uiveg@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20181010122148.tbcmbnsa756uiveg@pengutronix.de> Subject: Re: [DistroKit] [ptxdist] Recent DistroKit with ptxdist 2018.10.0 fails to get host-coreutils List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0827641124==" Errors-To: distrokit-bounces@pengutronix.de Sender: "DistroKit" To: Roland Hieber Cc: distrokit@pengutronix.de, ptxdist@pengutronix.de --===============0827641124== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4zffteqpqs2qsvy3" Content-Disposition: inline --4zffteqpqs2qsvy3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hei hei, On Wed, Oct 10, 2018 at 02:21:48PM +0200, Roland Hieber wrote: > On Wed, Oct 10, 2018 at 01:04:01PM +0200, Roland Hieber wrote: > > Ohai, > >=20 > > I set my source download folder to ./src/ and I can reproduce this with > > various other packages as well (kernel, coreutils, systemd, > > networkmanager), and even on PTXdist 2018.01.0=E2=80=A6?! I don't think that is the same problem. I set PTXCONF_SETUP_SRCDIR to /mnt/trash/src first, and to the default ${PTXDIST_WORKSPACE}/src then. The problem is reproducible for packages where you build the host, but not the target package, e.g. FOO=3Dn and HOST_FOO=3Dy. For DistroKit master that is the case for acl, coreutils and maybe more. > > I added some debug echos to ptxdist/rules/post/ptxd_make_world_get.make: > >=20 > > ------------------------------------------------ 8<--------------------- > > --- a/rules/post/ptxd_make_world_get.make > > +++ b/rules/post/ptxd_make_world_get.make > > @@ -15,7 +15,8 @@ > > # > > $(SRCDIR)/%: > > =E2=86=92@$(call targetinfo) > > - =E2=86=92@$(call get, $($@)) > > + =E2=86=92echo target '$$(SRCDIR)/%'; echo params: $@; echo $$($= $@) =3D $($@); set -x; \ > > + =E2=86=92$(call get, $($@)) > > =20 > > ifneq ($(call remove_quotes, $(PTXCONF_PROJECT_DEVPKGDIR)),) > > $(call remove_quotes, $(PTXCONF_PROJECT_DEVPKGDIR))/%-dev.tar.gz: > > ------------------------------------------------ >8--------------------- Nice. Let me show you two example outputs from my side, first is from a usual target only package, second triggers the problem: -------------------------- target: glib-2.56.1.tar.xz -------------------------- echo target '$(SRCDIR)/%'; echo params: /home/alex/src/DistroKit/src/glib-2= =2E56.1.tar.xz; echo $($@) =3D GLIB; set -x; \ ptxd_make_get_mirror=3Dhttp://www.pengutronix.de/software/ptxdist/temporary= -src ptxd_make_get "/home/alex/src/DistroKit/src/glib-2.56.1.tar.xz" "http:= //ftp.gnome.o rg/pub/GNOME/sources/glib/2.56/glib-2.56.1.tar.xz" target $(SRCDIR)/% params: /home/alex/src/DistroKit/src/glib-2.56.1.tar.xz =3D GLIB ----------------------------- target: acl-2.2.52.src.tar.gz ----------------------------- echo target '$(SRCDIR)/%'; echo params: /home/alex/src/DistroKit/src/acl-2.= 2.52.src.tar.gz; echo $($@) =3D ; set -x; \ ptxd_make_get_mirror=3Dhttp://www.pengutronix.de/software/ptxdist/temporary= -src ptxd_make_get "" "" target $(SRCDIR)/% params: /home/alex/src/DistroKit/src/acl-2.2.52.src.tar.gz =3D > > I think that the $($@) expression should result in "NETWORKMANAGER", so > > ptxd_make_get knows about what package to download. As far as I > > understand, this should be a generated rule in > > DistroKit/platform-$name/state/ptxd_dgen_deps.post, but I cannot find it > > there... I'll try a bisect on ptxdist to find out where it first went > > wrong. If I compare the above output, the same happens here. In the second case ACL is missing while in the first case GLIB is there. I could reproduce this on another build host. So to say it clear again: download of a tarball fails, if the host package is selected, but the normal target package is not. If the tarball is already there, build is successful. Greets Alex --=20 /"\ ASCII RIBBON | =C2=BBWith the first link, the chain is forged. The first \ / CAMPAIGN | speech censured, the first thought forbidden, the X AGAINST | first freedom denied, chains us all irrevocably.=C2=AB / \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie) --4zffteqpqs2qsvy3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwo7muQJjlc+Prwj6NK3NAHIhXMYFAlu9/QEACgkQNK3NAHIh XMY3aQ//QWU7XdELuK1qhvRDn1qMV63mcT2C9TGenUXh4uhNDJ7CDubbehoB704x 1a6IeeTIr4n6T0WfK+F3bRlFh2CIBzIBNLjyUXD8sn2mwi9Et72aupIrVDroGGnr /z+qPYdYBFhsj+2hgDw0ovdDSdNAzlBDDWQNojIAawU7syt/ftJ/sVYgkJ5615bK LVz2jXmLg3+dpHXWdX8V4uYrlJWWfjEgUn8di0AoXaab6wcID2k4bTaKB66AFuvs Yfd+CXBDUAQQpG38icBKpUTKIxML3UEi6G4H1bVesp6W4TL4mm3kJWDO+6Q1caxo CsFbC5CcJDIpGay+ETjMVsIa9Cuf0Jjlb6TV/+MagNVHSKc5+bgKiGnkQg7estz0 +7GlXSUKL1cCNmxEfFxFV3xrg+IObCxoRGVApEWBGlNSjbaLWIbauoDmtQiiUTQm gxfKCw1VDcpDdaboREsITJxvuw7s7MpJCz/7AFKfmRhf8z+YnvsggkHBO3DyMZxq sIEz3Nrw7maT3CC+5wbbVareItCJkbVocEt7E+yAp1gj5VzQ4KuqYzgzNA/BYGW/ c9Vl8IhMoWCaZww64OTtffH+vPwDyPT02rq+wLgwkV1TJIujjSUCfd6ZerKeS6As PVVXE+y1rHBFaBhxmxPUvSOXhFeC//CzLh76hxv9I9n849RdYwg= =NhLT -----END PGP SIGNATURE----- --4zffteqpqs2qsvy3-- --===============0827641124== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KRGlzdHJvS2l0 IG1haWxpbmcgbGlzdApEaXN0cm9LaXRAcGVuZ3V0cm9uaXguZGU= --===============0827641124==--