[ptxdist] Parser/pgen error backporting Python3.5/Pyserial3 to PTXdist 2013.03
Hello, i'm trying to backport Python3.5 and Pyserial3 to PTXdist 2013.03. I've copied the following .in and .make files from PTXdist 2015.09 to my own rules directory: * host-python3 * python3 * pyserial3 Host-python3 builds successfully (for ARM Cortex A8, OSELAS 2012.12.1), but python3 fails with the following error: Parser/pgen ./Grammar/Grammar Include/graminit.h Python/graminit.c Parser/pgen: 1: Parser/pgen: Syntax error: word unexpected (expecting ")") if test `uname -s` = Darwin; then \ cp python-config.py python-config; \ fi make[1]: *** [Include/graminit.h] Error 2 Does anybody know what is going wrong? Best regards Börje -- _ Ing. Börje Sewing, B.Sc. who Ingenieurgesellschaft mbH Schwertfegerstr. 27 23556 Lübeck Germany Tel.: +49-(0)451-31781-036 Fax: +49-(0)451-31781-399 e-mail: boerje.sew...@who-ing.de http://www.who-ing.de Registergericht: Amtsgericht Lübeck, HRB 3738 Geschäftsführer: Dipl.-Ing.(FH) Henning Woock, Dipl.-Ing. Detlef Thon, Dipl.-Ing.(FH) Andreas Banz Important Note This email and any attachment hereto are confidential and may contain trade secrets or may be otherwise protected from disclosure. If you have received it in error you are in notice of this fact. Please notify us immediately by reply email and then delete this email and any attachment from your system. Please understand that you are not allowed to copy this email or any attachment hereto or disclose its contents to any other person. Thank you. In case the attachments of this email contain development results, these will always represent an intermediate development stage. Verified and released development results will be marked separately. Wichtiger Hinweis Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen dieser Umstand hiermit bekannt. Bitte benachrichtigen Sie uns in diesem Fall umgehend durch Ruecksendung der E-Mail und loeschen Sie diese E-Mail einschließlich etwaiger Anlagen von Ihrem System. Diese E-Mail und ihre Anlagen duerfen weiterhin nicht kopiert oder an Dritte weitergegeben werden. Vielen Dank. Sollten im Anhang dieser Email Entwicklungsergebnisse enthalten sein, so handelt es sich dabei grundsätzlich um Entwicklungsstände. Verifizierte und freigegebene Entwicklungsstände sind gesondert und entsprechend gekennzeichnet. Please consider the environment before printing this e-mail The contents of this e-mail and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this e-mail is received in error, please immediately notify the sender and delete the e-mail and attached documents. Please note that neither the sender nor the sender's company accept any responsibility for viruses and it is your responsibility to scan or otherwise check this e-mail and any attachments. -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH] mtd-utils: version bump 1.5.1 -> 1.5.2
Signed-off-by: Ladislav Michl --- diff --git a/patches/mtd-utils-1.5.1/0001-make-ubifs-optional.patch b/patches/mtd-utils-1.5.2/0001-make-ubifs-optional.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0001-make-ubifs-optional.patch rename to patches/mtd-utils-1.5.2/0001-make-ubifs-optional.patch diff --git a/patches/mtd-utils-1.5.1/0002-Make-liblzo-optional-for-ubifs-tools.patch b/patches/mtd-utils-1.5.2/0002-Make-liblzo-optional-for-ubifs-tools.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0002-Make-liblzo-optional-for-ubifs-tools.patch rename to patches/mtd-utils-1.5.2/0002-Make-liblzo-optional-for-ubifs-tools.patch diff --git a/patches/mtd-utils-1.5.1/0003-mkfs.ubifs-change-add_directory-argument-to-existing.patch b/patches/mtd-utils-1.5.2/0003-mkfs.ubifs-change-add_directory-argument-to-existing.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0003-mkfs.ubifs-change-add_directory-argument-to-existing.patch rename to patches/mtd-utils-1.5.2/0003-mkfs.ubifs-change-add_directory-argument-to-existing.patch diff --git a/patches/mtd-utils-1.5.1/0004-mkfs.ubifs-use-xmalloc-xzalloc-for-allocating-memory.patch b/patches/mtd-utils-1.5.2/0004-mkfs.ubifs-use-xmalloc-xzalloc-for-allocating-memory.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0004-mkfs.ubifs-use-xmalloc-xzalloc-for-allocating-memory.patch rename to patches/mtd-utils-1.5.2/0004-mkfs.ubifs-use-xmalloc-xzalloc-for-allocating-memory.patch diff --git a/patches/mtd-utils-1.5.1/0005-mkfs.ubifs-simplify-make_path-with-xasprintf.patch b/patches/mtd-utils-1.5.2/0005-mkfs.ubifs-simplify-make_path-with-xasprintf.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0005-mkfs.ubifs-simplify-make_path-with-xasprintf.patch rename to patches/mtd-utils-1.5.2/0005-mkfs.ubifs-simplify-make_path-with-xasprintf.patch diff --git a/patches/mtd-utils-1.5.1/0006-mkfs.ubifs-Add-extended-attribute-support.patch b/patches/mtd-utils-1.5.2/0006-mkfs.ubifs-Add-extended-attribute-support.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0006-mkfs.ubifs-Add-extended-attribute-support.patch rename to patches/mtd-utils-1.5.2/0006-mkfs.ubifs-Add-extended-attribute-support.patch diff --git a/patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch b/patches/mtd-utils-1.5.2/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch similarity index 100% rename from patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch rename to patches/mtd-utils-1.5.2/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch diff --git a/patches/mtd-utils-1.5.1/series b/patches/mtd-utils-1.5.2/series similarity index 100% rename from patches/mtd-utils-1.5.1/series rename to patches/mtd-utils-1.5.2/series diff --git a/rules/mtd-utils.make b/rules/mtd-utils.make index 83611c9..2a68abb 100644 --- a/rules/mtd-utils.make +++ b/rules/mtd-utils.make @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_MTD_UTILS) += mtd-utils # # Paths and names # -MTD_UTILS_VERSION := 1.5.1 -MTD_UTILS_MD5 := 4ad1f758d49615efe14edb107eddac5c +MTD_UTILS_VERSION := 1.5.2 +MTD_UTILS_MD5 := 596bc7b20a6d4fb86d63fc9b8af674d6 MTD_UTILS := mtd-utils-$(MTD_UTILS_VERSION) MTD_UTILS_SUFFIX := tar.bz2 MTD_UTILS_URL := ftp://ftp.infradead.org/pub/mtd-utils/$(MTD_UTILS).$(MTD_UTILS_SUFFIX) -- 2.1.4 -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH] alsa: version bump 1.0.24 -> 1.0.29
Signed-off-by: Ladislav Michl --- b/rules/alsa-lib.make |5 - b/rules/alsa-utils.make |4 - patches/alsa-lib-1.0.24.1/0001-ctlparse-Respect-softfloat-configure-option.patch | 35 -- patches/alsa-lib-1.0.24.1/series |1 4 files changed, 4 insertions(+), 41 deletions(-) diff --git a/patches/alsa-lib-1.0.24.1/0001-ctlparse-Respect-softfloat-configure-option.patch b/patches/alsa-lib-1.0.24.1/0001-ctlparse-Respect-softfloat-configure-option.patch deleted file mode 100644 index fcc98e7..000 --- a/patches/alsa-lib-1.0.24.1/0001-ctlparse-Respect-softfloat-configure-option.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 1720d30ad82ebb8b5f52fc08c6c610e51203fa89 Mon Sep 17 00:00:00 2001 -From: Alexander Stein -Date: Thu, 19 May 2011 15:16:36 +0200 -Subject: [PATCH] ctlparse: Respect softfloat configure option - -If we want softlfoat we can't use ceil which uses libm. - -Signed-off-by: Alexander Stein -Signed-off-by: Takashi Iwai - src/control/ctlparse.c |9 + - 1 files changed, 9 insertions(+), 0 deletions(-) - -diff --git a/src/control/ctlparse.c b/src/control/ctlparse.c -index a929816..a16f96a 100644 a/src/control/ctlparse.c -+++ b/src/control/ctlparse.c -@@ -33,8 +33,17 @@ - - /* Function to convert from percentage to volume. val = percentage */ - -+#ifdef HAVE_SOFT_FLOAT -+static inline long int convert_prange1(long val, long min, long max) -+{ -+ long temp = val * (max - min); -+ return temp / 100 + min + ((temp % 100) == 0 ? 0 : 1); -+} -+#else -+ - #define convert_prange1(val, min, max) \ - ceil((val) * ((max) - (min)) * 0.01 + (min)) -+#endif - - #define check_range(val, min, max) \ - ((val < min) ? (min) : ((val > max) ? (max) : (val))) diff --git a/patches/alsa-lib-1.0.24.1/series b/patches/alsa-lib-1.0.24.1/series deleted file mode 100644 index fc771e0..000 --- a/patches/alsa-lib-1.0.24.1/series +++ /dev/null @@ -1 +0,0 @@ -0001-ctlparse-Respect-softfloat-configure-option.patch diff --git a/rules/alsa-lib.make b/rules/alsa-lib.make index e949274..c53ad41 100644 --- a/rules/alsa-lib.make +++ b/rules/alsa-lib.make @@ -20,8 +20,8 @@ PACKAGES-$(PTXCONF_ALSA_LIB) += alsa-lib ALSA_LIB_SUFFIX:= tar.bz2 ifdef PTXCONF_ALSA_LIB_FULL -ALSA_LIB_VERSION := 1.0.24.1 -ALSA_LIB_MD5 := 7cc05f25e1d5b65da8fb3fdcd540f226 +ALSA_LIB_VERSION := 1.0.29 +ALSA_LIB_MD5 := de67e0eca72474d6b1121037dafe1024 ALSA_LIB := alsa-lib-$(ALSA_LIB_VERSION) ALSA_LIB_URL := \ http://dl.ambiweb.de/mirrors/ftp.alsa-project.org/lib/$(ALSA_LIB).$(ALSA_LIB_SUFFIX) \ @@ -51,7 +51,6 @@ ALSA_LIB_ENV := $(CROSS_ENV) # ALSA_LIB_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ - --enable-static \ --enable-shared \ --enable-fast-install \ --enable-libtool-lock \ diff --git a/rules/alsa-utils.make b/rules/alsa-utils.make index 4b06ab0..a0429f2 100644 --- a/rules/alsa-utils.make +++ b/rules/alsa-utils.make @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_ALSA_UTILS) += alsa-utils # # Paths and names # -ALSA_UTILS_VERSION := 1.0.24.2 -ALSA_UTILS_MD5 := 8238cd57cb301d1c36bcf0ecb59ce6b2 +ALSA_UTILS_VERSION := 1.0.29 +ALSA_UTILS_MD5 := 6b289bf874c4c9a63f4b3973093dd404 ALSA_UTILS := alsa-utils-$(ALSA_UTILS_VERSION) ALSA_UTILS_SUFFIX := tar.bz2 ALSA_UTILS_URL := \ -- 2.1.4 -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Check for specific libc version
On Mon, Sep 28, 2015 at 12:29:02PM +0200, Michael Olbrich wrote: > On Tue, Aug 18, 2015 at 12:30:41PM +0200, Ladislav Michl wrote: > > Hi there! > > > > > > PTXCONF_GLIBC_VERSION is used for check for specific toolchain. However > > when left > > blank, compilation fails with: > > --- > > target: glibc.targetinstall > > --- > > > > ptxdist: error: ptxd_make_xpkg_init: please define _VERSION > > ptxdist/rules/glibc.make:30: recipe for target 'glibc.targetinstall' failed > > > > shouldn't we get libc version from toolchain in this case? > > No. Reproducibility is one of the main goals of PTXdist. What we should > actually do is check if PTXCONF_GLIBC_VERSION matches the actual glibc > version, like we do for gcc. Agree, but we are already selecting toolchains, which gives a clue about glibc used. For gcclibs code reads: ifeq ($(shell which $(CROSS_CC) 2>/dev/null),) GCCLIBS_VERSION := unknown else GCCLIBS_VERSION := $(shell $(CROSS_CC) -dumpversion) endif and GCC version is verified earlier in check_compiler(). But leaving GLIBC_VERSION blank does not make PTXdist complain. Everything is built and it is targetinstall which fails. That a bit unexpected to me. I would expect a) glibc version picked from toolchain or b) ptxdist bailing out early when glibc version is not specified. But you already voted for b). Also using the real glibc version in package name instead of some random string makes more sense. > However, I'm not sure, if there is a simple test for that. I see a > libc-.so in my toolchains, but I\m not sure if that's always > the case. usr/bin/ldd from sysroot holds answer as well, also strings | grep "version [0-9]" could work. ladis -- ptxdist mailing list ptxdist@pengutronix.de