On Fri, Jul 01, 2016 at 12:13:44PM +0200, Michael Olbrich wrote: > On Fri, Jul 01, 2016 at 10:41:10AM +0200, Ladislav Michl wrote: > > 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 :-/.
Perhaps I should also mention I'm using collections. Previous output was with full collection. Once I delete 'selected_collectionconfig' I get correct output: $ 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 HOST_GETTEXT HOST_GETTEXT 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 HOST_NCURSES HOST_NCURSES (Note: collection selects only tagret packages) > > 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 ptxd_make_world_get.make:19: src/glib-2.48.1.tar.xz := GLIB ptxd_make_world_get.make:19: src/fbterm-1.7.0.tar.gz := FBTERM ptxd_make_world_get.make:19: src/libpng-1.2.54.tar.xz := LIBPNG ptxd_make_world_get.make:19: src/nettle-2.7.1.tar.gz := NETTLE ptxd_make_world_get.make:19: src/xz-5.2.2.tar.bz2 := XZ ptxd_make_world_get.make:19: src/dbus-glib-0.104.tar.gz := DBUS_GLIB ptxd_make_world_get.make:19: src/NetworkManager-1.2.2.tar.xz := NETWORKMANAGER ptxd_make_world_get.make:19: src/libtasn1-4.8.tar.gz := LIBTASN1 ptxd_make_world_get.make:19: src/memtool-2015.12.2.tar.xz := MEMTOOL ptxd_make_world_get.make:19: src/NetworkManager-openvpn-1.2.2.tar.xz := NETWORKMANAGER_OPENVPN ptxd_make_world_get.make:19: src/ModemManager-1.4.14.tar.xz := MODEMMANAGER ptxd_make_world_get.make:19: src/zlib-1.2.8.tar.xz := ZLIB ptxd_make_world_get.make:19: src/htop-2.0.1.tar.gz := HTOP ptxd_make_world_get.make:19: src/libusb-1.0.18.tar.bz2 := LIBUSB ptxd_make_world_get.make:19: src/font-alias-1.0.3.tar.bz2 := XORG_FONT_ALIAS ptxd_make_world_get.make:19: src/atop-1.24.tar.gz := ATOP ptxd_make_world_get.make:19: src/dbus-1.10.8.tar.gz := DBUS ptxd_make_world_get.make:19: src/linux-4.6.tar.xz := KERNEL_HEADER ptxd_make_world_get.make:19: src/libffi-3.2.1.tar.gz := LIBFFI ptxd_make_world_get.make:19: src/u-boot-2016.03.tar.bz2 := U_BOOT ptxd_make_world_get.make:19: src/cairo-1.12.18.tar.xz := CAIRO ptxd_make_world_get.make:19: src/pcre-8.38.tar.bz2 := LIBPCRE ptxd_make_world_get.make:19: src/libcap-2.24.tar.xz := LIBCAP ptxd_make_world_get.make:19: src/pixman-0.34.0.tar.bz2 := PIXMAN ptxd_make_world_get.make:19: src/freetype-2.6.3.tar.bz2 := FREETYPE ptxd_make_world_get.make:19: src/libgudev-230.tar.xz := LIBGUDEV ptxd_make_world_get.make:19: src/kmod-22.tar.xz := LIBKMOD ptxd_make_world_get.make:19: src/mc-4.6.1.tar.gz := MC ptxd_make_world_get.make:19: src/ncurses-5.9.tar.gz := NCURSES ptxd_make_world_get.make:19: src/font-util-1.3.0.tar.bz2 := XORG_FONT_UTIL ptxd_make_world_get.make:19: src/openssh-7.2p2.tar.gz := OPENSSH ptxd_make_world_get.make:19: src/openvpn-2.3.11.tar.xz := OPENVPN ptxd_make_world_get.make:19: src/openssl-1.0.2h.tar.gz := OPENSSL ptxd_make_world_get.make:19: src/libnl-3.2.25.tar.gz := LIBNL3 ptxd_make_world_get.make:19: src/systemd-230.tar.gz := SYSTEMD ptxd_make_world_get.make:19: src/libqmi-1.12.6.tar.xz := LIBQMI ptxd_make_world_get.make:19: src/u-boot-2016.05.tar.bz2 := U_BOOT_TOOLS ptxd_make_world_get.make:19: src/libndp-1.4.tar.gz := LIBNDP ptxd_make_world_get.make:19: src/gnutls-3.3.13.tar.xz := GNUTLS ptxd_make_world_get.make:19: src/libmbim-1.12.2.tar.xz := LIBMBIM ptxd_make_world_get.make:19: src/expat-2.1.1.tar.bz2 := EXPAT ptxd_make_world_get.make:19: src/dejavu-fonts-ttf-2.35.tar.bz2 := XORG_FONT_TTF_DEJAVU ptxd_make_world_get.make:19: src/attr-2.4.47.src.tar.gz := ATTR ptxd_make_world_get.make:19: src/libgpg-error-1.20.tar.bz2 := LIBGPG_ERROR ptxd_make_world_get.make:19: src/gmp-6.0.0a.tar.bz2 := LIBGMP ptxd_make_world_get.make:19: src/less-443.tar.gz := LESS ptxd_make_world_get.make:19: src/ppp-2.4.5.tar.gz := PPP ptxd_make_world_get.make:19: src/linux-4.6.tar.xz := KERNEL ptxd_make_world_get.make:19: src/usb-modeswitch-2.3.0.tar.bz2 := USB_MODESWITCH ptxd_make_world_get.make:19: src/slang-2.3.0.tar.bz2 := SLANG ptxd_make_world_get.make:19: src/tcl8.5.15-src.tar.gz := TCL ptxd_make_world_get.make:19: src/readline-6.2.tar.gz := READLINE ptxd_make_world_get.make:19: src/curl-7.43.0.tar.bz2 := LIBCURL ptxd_make_world_get.make:19: src/usbutils-007.tar.xz := USBUTILS ptxd_make_world_get.make:19: src/alsa-utils-1.1.1.tar.bz2 := ALSA_UTILS ptxd_make_world_get.make:19: src/newt-0.52.18.tar.gz := LIBNEWT ptxd_make_world_get.make:19: src/lzo-2.08.tar.gz := LIBLZO ptxd_make_world_get.make:19: src/popt-1.15.tar.gz := LIBPOPT ptxd_make_world_get.make:19: src/busybox-1.24.2.tar.bz2 := BUSYBOX ptxd_make_world_get.make:19: src/certdata-2015.04.22-1.txt := CA_CERTIFICATES ptxd_make_world_get.make:19: src/alsa-lib-1.0.29.tar.bz2 := ALSA_LIB ptxd_make_world_get.make:19: src/libgcrypt-1.5.3.tar.bz2 := LIBGCRYPT ptxd_make_world_get.make:19: src/util-linux-2.28.tar.xz := UTIL_LINUX_NG ptxd_make_world_get.make:19: src/libarchive-3.1.2.tar.gz := LIBARCHIVE ptxd_make_world_get.make:19: src/mtd-utils-1.5.2.tar.bz2 := MTD_UTILS ptxd_make_world_get.make:19: src/opkg-0.3.0.tar.gz := OPKG ptxd_make_world_get.make:19: src/dialog-1.1-20100428.tgz := DIALOG ptxd_make_world_get.make:19: src/fontconfig-2.11.1.tar.gz := FONTCONFIG ptxd_make_world_get.make:19: src/acl-2.2.52.src.tar.gz := HOST_ACL ptxd_make_world_get.make:19: src/dbus-glib-0.104.tar.gz := HOST_DBUS_GLIB ptxd_make_world_get.make:19: src/opkg-0.3.0.tar.gz := HOST_OPKG ptxd_make_world_get.make:19: src/lzo-2.08.tar.gz := HOST_LIBLZO ptxd_make_world_get.make:19: src/libXfont-1.5.0.tar.bz2 := HOST_XORG_LIB_XFONT ptxd_make_world_get.make:19: src/glib-2.48.1.tar.xz := HOST_GLIB ptxd_make_world_get.make:19: src/m4-1.4.17.tar.xz := HOST_M4 ptxd_make_world_get.make:19: src/util-linux-2.28.tar.xz := HOST_UTIL_LINUX_NG ptxd_make_world_get.make:19: src/confuse-2.7.tar.gz := HOST_LIBCONFUSE ptxd_make_world_get.make:19: src/zlib-1.2.8.tar.xz := HOST_ZLIB ptxd_make_world_get.make:19: src/dbus-1.10.8.tar.gz := HOST_DBUS ptxd_make_world_get.make:19: src/fakeroot_1.20.2.orig.tar.bz2 := HOST_FAKEROOT ptxd_make_world_get.make:19: src/gtk-doc-1.13.tar.bz2 := HOST_GTK_DOC ptxd_make_world_get.make:19: src/freetype-2.6.3.tar.bz2 := HOST_FREETYPE ptxd_make_world_get.make:19: src/u-boot-2016.05.tar.bz2 := HOST_U_BOOT_TOOLS ptxd_make_world_get.make:19: src/figlet-2.2.5.tar.gz := HOST_FIGLET ptxd_make_world_get.make:19: src/libfontenc-1.1.2.tar.bz2 := HOST_XORG_LIB_FONTENC ptxd_make_world_get.make:19: src/bdftopcf-1.0.3.tar.bz2 := HOST_XORG_APP_BDFTOPCF ptxd_make_world_get.make:19: src/font-util-1.3.0.tar.bz2 := HOST_XORG_FONT_UTIL ptxd_make_world_get.make:19: src/mkfontscale-1.1.0.tar.bz2 := HOST_XORG_APP_MKFONTSCALE ptxd_make_world_get.make:19: src/pcre-8.38.tar.bz2 := HOST_LIBPCRE ptxd_make_world_get.make:19: src/openssl-1.0.2h.tar.gz := HOST_OPENSSL ptxd_make_world_get.make:19: src/mkfontdir-1.0.7.tar.bz2 := HOST_XORG_APP_MKFONTDIR ptxd_make_world_get.make:19: src/pkg-config-0.28.tar.gz := HOST_PKG_CONFIG ptxd_make_world_get.make:19: src/systemd-230.tar.gz := HOST_SYSTEMD ptxd_make_world_get.make:19: src/kmod-22.tar.xz := HOST_LIBKMOD ptxd_make_world_get.make:19: src/attr-2.4.47.src.tar.gz := HOST_ATTR ptxd_make_world_get.make:19: src/libffi-3.2.1.tar.gz := HOST_LIBFFI ptxd_make_world_get.make:19: src/libcap-2.24.tar.xz := HOST_LIBCAP ptxd_make_world_get.make:19: src/fontsproto-2.1.3.tar.bz2 := HOST_XORG_PROTO_FONTS ptxd_make_world_get.make:19: src/expat-2.1.1.tar.bz2 := HOST_EXPAT ptxd_make_world_get.make:19: src/gperf-3.0.4.tar.gz := HOST_GPERF ptxd_make_world_get.make:19: src/xtrans-1.3.5.tar.bz2 := HOST_XORG_LIB_XTRANS ptxd_make_world_get.make:19: src/genimage-8.tar.xz := HOST_GENIMAGE ptxd_make_world_get.make:19: src/mtd-utils-1.5.2.tar.bz2 := HOST_MTD_UTILS ptxd_make_world_get.make:19: src/coreutils-8.22.tar.xz := HOST_COREUTILS ptxd_make_world_get.make:19: src/opkg-utils-r4747.tar.gz := HOST_OPKG_UTILS ptxd_make_world_get.make:19: src/libarchive-3.1.2.tar.gz := HOST_LIBARCHIVE ptxd_make_world_get.make:19: src/xproto-7.0.26.tar.bz2 := HOST_XORG_PROTO_X ptxd_make_world_get.make:19: src/unfs3-0.9.22.tar.gz := HOST_UNFS3 ptxd_make_world_get.make:19: src/autoconf-2.69.tar.xz := HOST_AUTOTOOLS_AUTOCONF ptxd_make_world_get.make:19: src/libtool-2.4.2.tar.gz := HOST_AUTOTOOLS_LIBTOOL ptxd_make_world_get.make:19: src/automake-1.14.1.tar.xz := HOST_AUTOTOOLS_AUTOMAKE ptxd_make_world_get.make:19: src/elf-h-compat-0.2.tar.bz2 := HOST_ELF_H_COMPAT ptxd_make_world_get.make:19: src/lndir-1.0.2.tar.bz2 := HOST_LNDIR > 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". xorg-fontsglib fbterm libpng nettle xz base customization dbus-glib os-release networkmanager libtasn1 memtool libblkid networkmanager-openvpn modemmanager rc-once zlib htop libusb xorg-font-alias atop dbus kernel-header libffi u-boot cairo libpcre libcap pixman locales freetype libgudev libkmod mc ncurses xorg-font-util writeloader openssh openvpn openssl initmethod-systemd libnl3 systemd libqmi timezone u-boot-tools libndp gnutls libmbim machine-id expat xorg-font-ttf-dejavu attr validecc libuuid libgpg-error udev libgmp less ppp dtc kernel host-system-perl usb-modeswitch slang libc tcl readline libcurl usbutils alsa-utils libnewt liblzo libpopt busybox rootfs ca-certificates glibc alsa-lib libgcrypt util-linux-ng libarchive mtd-utils opkg gcclibs dialog fontconfig cross-pkg-config-wrapper cross-dummy-strip host-acl host-dbus-glib host-opkg host-liblzo host-xorg-lib-xfont host-glib host-m4 host-util-linux-ng host-libconfuse host-zlib host-dbus host-fakeroot host-gtk-doc host-freetype host-u-boot-tools host-figlet host-xorg-lib-fontenc host-xorg-app-bdftopcf host-xorg-font-util host-xorg-app-mkfontscale host-libpcre host-openssl host-xorg-app-mkfontdir host-pkg-config host-systemd host-libkmod host-attr host-libffi host-libcap host-xorg-proto-fonts host-expat host-gperf host-xorg-lib-xtrans host-libuuid host-genimage host-mtd-utils host-coreutils host-opkg-utils host-libarchive host-xorg-proto-x host-unfs3 host-autotools-autoconf host-autotools-libtool host-autotools-automake host-elf-h-compat host-lndir _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de