mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: Re: [ptxdist] [ANNOUNCE] PTXdist 2012.01.0 released
Date: Tue, 17 Jan 2012 00:44:30 +0100	[thread overview]
Message-ID: <20120116234430.GA29216@pengutronix.de> (raw)
In-Reply-To: <e16ea92a15c1d302c91eb2afc1069a7c@idefix.lespocky.dyndns.org>

Hi,

On Tue, Jan 10, 2012 at 01:36:57PM +0100, Alexander Dahl wrote:
> Am 07.01.2012 23:46, schrieb Michael Olbrich:
> > Robert Schwebel (10):
> >       host-libffi: added
> 
> This seems to make problems over here. After migrating from ptxdist
> 2011.12.0 the related entries in my config are:
> 
>   % grep -i ffi configs/ptxconfig
>   PTXCONF_HOST_LIBFFI=m
>   PTXCONF_LIBFFI=m
> 
> In the menu I see:
> 
>   Selected by: PYGOBJECT [=n] || JAMVM [=n] && JAMVM_USE_LIBFFI [=n] ||
> GLIB [=m]
> 
> GLIB is selected by: MC [=m] (nothing else) and midnight commander
> itself is set to <M> because it is used or not in some collections I
> work with.
> 
> Running `ptxdist go` with mc not set in the collection I get the
> following error:
> 
>   ---------------------------
>   target: libffi-3.0.9.tar.gz
>   ---------------------------
>   
>   
>   error: empty parameter to 'ptxd_make_get'
>   
>   make: ***
> [/home/adahl/mnt/bagend-isys/Downloads/ptxdist_src_archive/libffi-3.0.9.tar.gz]
> Error 1

Ugly. The problem this:host-glib and host-libffi are not in
PTX_PACKAGES_SELECTED. This means that the mapping in
rules/post/ptxd_make_world_get.make is not applied for these packages.
However, PTXCONF_HOST_GLIB and PTXCONF_HOST_LIBFFI are still set to 'm'.
This means in rules/host-glib.make the following will still generate a
dependency:
--------------------------------------------------------
ifdef PTXCONF_HOST_GLIB
$(STATEDIR)/autogen-tools: $(STATEDIR)/host-glib.install.post
endif
--------------------------------------------------------
And with host-glib depending on host-libffi this results the this error...

I think the correct fix is to unset 'PTXCONF_*=m'. This patch should help,
but I'm not sure if there are any other side effects. Maybe we need to
handle this earlier.
Marc: what do you think?
--------------------------------------------------------
diff --git a/rules/other/Toplevel.make b/rules/other/Toplevel.make
index 35c2c27..ac18beb 100644
--- a/rules/other/Toplevel.make
+++ b/rules/other/Toplevel.make
@@ -28,6 +28,7 @@ include $(PTXDIST_PTXCONFIG)
 ifneq ($(wildcard $(PTXDIST_COLLECTIONCONFIG)),)
 include $(PTXDIST_COLLECTIONCONFIG)
 PTX_COLLECTION := y
+$(foreach var,$(filter PTXCONF_%,$(.VARIABLES)),$(if $(filter-out m,$($(var))),,$(eval $(var):=)))
 endif
 
 # ----------------------------------------------------------------------------
--------------------------------------------------------

-- 
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

  parent reply	other threads:[~2012-01-16 23:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-07 22:46 Michael Olbrich
2012-01-10 12:36 ` Alexander Dahl
2012-01-12 19:47   ` Michael Olbrich
2012-01-13  8:36     ` Alexander Dahl
2012-01-13  8:37     ` Alexander Dahl
2012-01-16 23:44   ` Michael Olbrich [this message]
2012-01-19 14:54   ` Alexander Dahl
2012-01-19 21:59     ` Michael Olbrich
2012-01-20  9:24       ` Alexander Dahl

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=20120116234430.GA29216@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=mkl@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