On Wed, Oct 10, 2018 at 01:04:01PM +0200, Roland Hieber wrote: > Ohai, > > 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…?! > > I added some debug echos to ptxdist/rules/post/ptxd_make_world_get.make: > > ------------------------------------------------ 8<--------------------- > --- a/rules/post/ptxd_make_world_get.make > +++ b/rules/post/ptxd_make_world_get.make > @@ -15,7 +15,8 @@ > # > $(SRCDIR)/%: > →@$(call targetinfo) > - →@$(call get, $($@)) > + →echo target '$$(SRCDIR)/%'; echo params: $@; echo $$($$@) = $($@); > set -x; \ > + →$(call get, $($@)) > > ifneq ($(call remove_quotes, $(PTXCONF_PROJECT_DEVPKGDIR)),) > $(call remove_quotes, $(PTXCONF_PROJECT_DEVPKGDIR))/%-dev.tar.gz: > ------------------------------------------------ >8--------------------- > > With this, I get the following output: > > $ ptxdist get networkmanager > > ----------------------------------- > target: NetworkManager-1.8.4.tar.xz > ----------------------------------- > > echo target '$(SRCDIR)/%'; echo params: src/NetworkManager-1.8.4.tar.xz; > echo $($@) = ; set -x; \ > > ptxd_make_get_mirror=http://www.pengutronix.de/software/ptxdist/temporary-src > ptxd_make_get "" "" > target $(SRCDIR)/% > params: src/NetworkManager-1.8.4.tar.xz
Ah, there is the crux in the matter: I set PTXCONF_SETUP_SRCDIR=./src, but the ./ is missing here, because make internally transforms the name. Everything works fine if I set the source directory to /tmp/src. - Roland > = > + > ptxd_make_get_mirror=http://www.pengutronix.de/software/ptxdist/temporary-src > + ptxd_make_get '' '' > + local -a argv > + local ptxmirror_url > + local path= > + shift > + local -a orig_argv > + orig_argv=("${@}") > + '[' -z '' ']' > + echo > + echo 'error: empty parameter to '\''ptxd_make_get'\''' > + echo > + exit 1 > > error: empty parameter to 'ptxd_make_get' > > /ptx/work/dude/WORK_B/rhi/ptxdist/rules/post/ptxd_make_world_get.make:17: > recipe for target 'src/NetworkManager-1.8.4.tar.xz' failed > make: *** [src/NetworkManager-1.8.4.tar.xz] Error 1 > > > 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. > > - Roland > > > On Wed, Oct 10, 2018 at 10:05:20AM +0200, Alexander Dahl wrote: > > Hei hei, > > > > while I could build current ptxdist-2018.10.0 based DistroKit on one > > host, I have problems building the very same BSP (DistroKit @ > > DistroKit-2018.03.0-30-g78f0dbf) on another, quite similar host > > (Debian GNU/Linux 9 (stretch), amd64). There seems to be a problem > > with the host-coreutils package (selected by systemd). Note: the > > coreutils-package itself is > > not selected. See: > > > > ----------------------------- > > target: coreutils-8.29.tar.xz > > ----------------------------- > > > > > > error: empty parameter to 'ptxd_make_get' > > > > make: *** [/mnt/trash/src/coreutils-8.29.tar.xz] Error 1 > > > > /usr/local/lib/ptxdist-2018.10.0/rules/post/ptxd_make_world_get.make:17: > > recipe for target '/mnt/trash/src/coreutils-8.29.tar.xz' failed > > > > Calling ptxdist with -v gives no more output. How can I debug this? > > > > The host, where I could build DistroKit has coreutils-8.29.tar.xz > > already downloaded, the host where it fails has not. > > > > Greets > > Alex > > > > -- > > /"\ ASCII RIBBON | »With 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.« > > / \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie) > > > > > _______________________________________________ > > ptxdist mailing list > > ptxdist@pengutronix.de > > > -- > Roland Hieber | r.hie...@pengutronix.de | > Pengutronix e.K. | https://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- Roland Hieber | r.hie...@pengutronix.de | Pengutronix e.K. | https://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de