DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: distrokit@pengutronix.de, ptxdist@pengutronix.de
Subject: Re: [DistroKit] [ptxdist] Recent DistroKit with ptxdist 2018.10.0 fails to get host-coreutils
Date: Wed, 10 Oct 2018 13:04:01 +0200	[thread overview]
Message-ID: <20181010110401.cvcssn6ftc7n5pm6@pengutronix.de> (raw)
In-Reply-To: <20181010080519.s7oc5dopoq7tmd55@falbala.home.lespocky.de>

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
    =
    + 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.hieber@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 |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

  reply	other threads:[~2018-10-10 11:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10  8:05 [DistroKit] " Alexander Dahl
2018-10-10 11:04 ` Roland Hieber [this message]
2018-10-10 12:21   ` [DistroKit] [ptxdist] " Roland Hieber
2018-10-10 13:22     ` Alexander Dahl
2018-10-11 14:28       ` Roland Hieber
2018-10-11 20:05         ` Roland Hieber
2018-10-12 11:59           ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181010110401.cvcssn6ftc7n5pm6@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox