From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [BUG] error: empty parameter to 'ptxd_make_get'
Date: Fri, 1 Jul 2016 12:13:44 +0200 [thread overview]
Message-ID: <20160701101344.GL18320@pengutronix.de> (raw)
In-Reply-To: <20160701084110.GA1215@localhost.localdomain>
On Fri, Jul 01, 2016 at 10:41:10AM +0200, Ladislav Michl wrote:
> On Thu, Jun 30, 2016 at 04:04:20PM +0200, Michael Olbrich wrote:
> > I can't reproduce this here. Can you please create a file like this:
> >
> > $ cat rules/post/zzz.make
> > foo:
> > echo $(PTXCONF_HOST_GETTEXT)
> > echo $(HOST_GETTEXT_SOURCE)
> > echo $($(HOST_GETTEXT_SOURCE))
> >
> > And then call:
> > $ ptxdist make foo
> >
> > What do you get?
>
> I extended it a bit:
> $ cat rules/post/zzz.make
> foo:
> echo $(PTXCONF_HOST_GETTEXT)
> echo $(HOST_GETTEXT_SOURCE)
> echo $($(HOST_GETTEXT_SOURCE))
> echo $(PTXCONF_HOST_ACL)
> echo $(HOST_ACL_SOURCE)
> echo $($(HOST_ACL_SOURCE))
> echo $(PTXCONF_HOST_NCURSES)
> echo $(HOST_NCURSES_SOURCE)
> echo $($(HOST_NCURSES_SOURCE))
>
> $ grep -e GETTEXT -e ACL -e NCURSES < configs/ptxconfig
> PTXCONF_HOST_ACL=y
> PTXCONF_HOST_GETTEXT=m
> PTXCONF_HOST_NCURSES=m
> PTXCONF_NCURSES=m
> (output edited)
looks correct so far.
> $ ptxdist --force make foo
> echo m
> m
> echo /home/ladis/src/peoplemetr/SimEarTools/dist/src/gettext-0.19.1.tar.xz
> /home/ladis/src/peoplemetr/SimEarTools/dist/src/gettext-0.19.1.tar.xz
> echo
>
You should get 'HOST_GETTEXT' here :-/.
> echo y
> y
> echo /home/ladis/src/peoplemetr/SimEarTools/dist/src/acl-2.2.52.src.tar.gz
> /home/ladis/src/peoplemetr/SimEarTools/dist/src/acl-2.2.52.src.tar.gz
> echo HOST_ACL
> HOST_ACL
> echo m
> m
> echo /home/ladis/src/peoplemetr/SimEarTools/dist/src/ncurses-5.9.tar.gz
> /home/ladis/src/peoplemetr/SimEarTools/dist/src/ncurses-5.9.tar.gz
> echo NCURSES
> NCURSES
This is strange. With ncurses and host-ncurses selected, I would have
expected HOST_NCURSES here.
Can you make this change:
diff --git a/rules/post/ptxd_make_world_get.make b/rules/post/ptxd_make_world_get.make
index 142d672f74c3..6405263fad6b 100644
--- a/rules/post/ptxd_make_world_get.make
+++ b/rules/post/ptxd_make_world_get.make
@@ -14,7 +14,7 @@
# $(<PKG>_SOURCE) := <PKG>
#
define pkg_source
-$(if $($(1)_SOURCE),$(eval $($(1)_SOURCE) := $(1)),)
+$(if $($(1)_SOURCE),$(eval $(warning $($(1)_SOURCE) := $(1))),)
endef
$(foreach pkg, $(PTX_PACKAGES_SELECTED), $(call pkg_source,$(PTX_MAP_TO_PACKAGE_$(pkg))))
... and then run 'ptxdist make foo' again? It will break things, so the
last echo for all 3 cases will print nothing but you should get a list of
warnings. Send that list please.
And the output of "ptxdist print PTX_PACKAGES_SELECTED".
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2016-07-01 10:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-24 5:35 Ladislav Michl
2016-06-30 14:04 ` Michael Olbrich
2016-07-01 8:41 ` Ladislav Michl
2016-07-01 10:13 ` Michael Olbrich [this message]
2016-07-01 12:26 ` Ladislav Michl
2016-07-01 13:24 ` Michael Olbrich
2016-07-09 22:31 ` Ladislav Michl
2018-10-12 13:44 nigel.hathaway
2018-10-12 15:01 ` Roland Hieber
2018-10-12 16:08 ` nigel.hathaway
2018-10-16 8:39 ` 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=20160701101344.GL18320@pengutronix.de \
--to=m.olbrich@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