* [ptxdist] (no subject) @ 2012-10-15 9:30 Alexander Dahl 2012-10-15 9:30 ` [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 Alexander Dahl ` (2 more replies) 0 siblings, 3 replies; 34+ messages in thread From: Alexander Dahl @ 2012-10-15 9:30 UTC (permalink / raw) To: ptxdist Hei hei, second version of those patches, incorporating suggested changes. Greets Alex -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 2012-10-15 9:30 [ptxdist] (no subject) Alexander Dahl @ 2012-10-15 9:30 ` Alexander Dahl 2012-10-15 11:04 ` Michael Olbrich 2012-10-15 9:30 ` [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Alexander Dahl 2012-10-15 10:15 ` [ptxdist] (no subject) Alexander Dahl 2 siblings, 1 reply; 34+ messages in thread From: Alexander Dahl @ 2012-10-15 9:30 UTC (permalink / raw) To: ptxdist Signed-off-by: Alexander Dahl <post@lespocky.de> --- ...ld-documentation-generator-tools-with-CC_.patch | 99 -------------------- ...DFLAGS-when-building-the-documentation-ge.patch | 30 ------ patches/gnuplot-4.4.3/autogen.sh | 1 - patches/gnuplot-4.4.3/series | 5 - ...ld-documentation-generator-tools-with-CC_.patch | 27 ++++++ ...DFLAGS-when-building-the-documentation-ge.patch | 30 ++++++ patches/gnuplot-4.6.1/autogen.sh | 1 + patches/gnuplot-4.6.1/series | 5 + rules/gnuplot.make | 12 +- 9 files changed, 69 insertions(+), 141 deletions(-) delete mode 100644 patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch delete mode 100644 patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch delete mode 120000 patches/gnuplot-4.4.3/autogen.sh delete mode 100644 patches/gnuplot-4.4.3/series create mode 100644 patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch create mode 100644 patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch create mode 120000 patches/gnuplot-4.6.1/autogen.sh create mode 100644 patches/gnuplot-4.6.1/series diff --git a/patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch b/patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch deleted file mode 100644 index cbc130b..0000000 --- a/patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch +++ /dev/null @@ -1,99 +0,0 @@ -From: Robert Schwebel <r.schwebel@pengutronix.de> -Date: Wed, 12 Oct 2011 15:29:54 +0200 -Subject: [PATCH] gnuplot: build documentation generator tools with - CC_FOR_BUILD - -When cross compiling gnuplot, it tries to build the documentation -generation tools in docs/ with the cross compiler, not with -CC_FOR_BUILD. - -Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> ---- -# 20091222 rsc: https://sourceforge.net/tracker/?func=detail&aid=2918992&group_id=2055&atid=302055 - - configure.in | 42 ++++++++++++++++++++++++++++++++++++++++++ - docs/Makefile.in | 4 ++-- - 2 files changed, 44 insertions(+), 2 deletions(-) - -diff --git a/configure.in b/configure.in -index 655217b..c6278d2 100755 ---- a/configure.in -+++ b/configure.in -@@ -10,6 +10,8 @@ AC_PREREQ(2.58) - AM_CONFIG_HEADER(config.h:config.hin) - AM_INIT_AUTOMAKE(1.7.9) - -+AM_MAINTAINER_MODE -+ - VERSION_MAJOR="`cat $srcdir/VERSION`" - PATCHLEVEL="`cat $srcdir/PATCHLEVEL`" - -@@ -26,6 +28,46 @@ AC_C_INLINE - AC_C_STRINGIZE - AC_PROG_LN_S - -+ -+if test "${build}" != "${host}" -+then -+ CC=${CC-${host_alias}-gcc} -+ CFLAGS=${CFLAGS-"-g -O2"} -+ CXX=${CXX-${host_alias}-c++} -+ CXXFLAGS=${CXXFLAGS-"-g -O2"} -+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc} -+else -+ CC_FOR_BUILD="\$(CC)" -+ AC_PROG_CC -+ -+ # We must set the default linker to the linker used by gcc for the correct -+ # operation of libtool. If LD is not defined and we are using gcc, try to -+ # set the LD default to the ld used by gcc. -+ if test -z "$LD" -+ then -+ if test "$GCC" = yes -+ then -+ case $build in -+ *-*-mingw*) -+ gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; -+ *) -+ gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; -+ esac -+ case $gcc_prog_ld in -+ # Accept absolute paths. -+ [[\\/]* | [A-Za-z]:[\\/]*)] -+ LD="$gcc_prog_ld" ;; -+ esac -+ fi -+ fi -+ -+ CXX=${CXX-"c++"} -+ CFLAGS=${CFLAGS-"-g -O2"} -+ CXXFLAGS=${CXXFLAGS-"-g -O2"} -+fi -+AC_SUBST(CC_FOR_BUILD) -+ -+ - dnl Various programs - dnl X/Emacs for building lisp packages and creating .texi version of docs - # If set to t, that means we are running in a shell under Emacs. -diff --git a/docs/Makefile.in b/docs/Makefile.in -index 51ebe6b..591d818 100644 ---- a/docs/Makefile.in -+++ b/docs/Makefile.in -@@ -70,7 +70,7 @@ POST_UNINSTALL = : - - INFO_DEPS = $(srcdir)/gnuplot.info - --CC = @CC@ -+CC = @CC_FOR_BUILD@ - CPP = @CPP@ - DEFS = @DEFS@ - DEFAULT_INCLUDES = -I. -I$(srcdir) -I.. -I$(top_builddir) -@@ -79,7 +79,7 @@ CFLAGS = @CFLAGS@ - GIHDIR = @GIHDIR@ - INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/term - LDFLAGS = @LDFLAGS@ --LIBS = @LIBS@ -+LIBS = - - COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - CCLD = $(CC) diff --git a/patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch b/patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch deleted file mode 100644 index 968eaf8..0000000 --- a/patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch +++ /dev/null @@ -1,30 +0,0 @@ -From: Bernhard Walle <bernhard@bwalle.de> -Date: Sun, 22 Jan 2012 00:03:59 +0100 -Subject: [PATCH] Don't use LDFLAGS when building the documentation generator - -The documentation generator is a tool running on the build machine. -Therefore the LDFLAGS computed for the cross compiler may not work, such -as the "-Wl,-rpath-link" flag which is not understood by the Darwin -linker. - -The doc2gih is simple and doesn't require an external library. So we -don't also need special LDFLAGS. Omit them. - -Signed-off-by: Bernhard Walle <bernhard@bwalle.de> ---- - docs/Makefile.in | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/docs/Makefile.in b/docs/Makefile.in -index 591d818..0e2ef8f 100644 ---- a/docs/Makefile.in -+++ b/docs/Makefile.in -@@ -83,7 +83,7 @@ LIBS = - - COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - CCLD = $(CC) --LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ -+LINK = $(CCLD) $(CFLAGS) -o $@ - - .c.o: - $(COMPILE) -c $< diff --git a/patches/gnuplot-4.4.3/autogen.sh b/patches/gnuplot-4.4.3/autogen.sh deleted file mode 120000 index 9f8a4cb..0000000 --- a/patches/gnuplot-4.4.3/autogen.sh +++ /dev/null @@ -1 +0,0 @@ -../autogen.sh \ No newline at end of file diff --git a/patches/gnuplot-4.4.3/series b/patches/gnuplot-4.4.3/series deleted file mode 100644 index 585745c..0000000 --- a/patches/gnuplot-4.4.3/series +++ /dev/null @@ -1,5 +0,0 @@ -# generated by git-ptx-patches -#tag:base --start-number 1 -0001-gnuplot-build-documentation-generator-tools-with-CC_.patch -0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch -# ffd95c4575ca3e3194e093f925705906 - git-ptx-patches magic diff --git a/patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch b/patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch new file mode 100644 index 0000000..3fe716f --- /dev/null +++ b/patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch @@ -0,0 +1,27 @@ +From: Robert Schwebel <r.schwebel@pengutronix.de> +Date: Wed, 12 Oct 2011 15:29:54 +0200 +Subject: [PATCH] gnuplot: build documentation generator tools with + CC_FOR_BUILD + +When cross compiling gnuplot, it tries to build the documentation +generation tools in docs/ with the cross compiler, not with +CC_FOR_BUILD. + +Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> +--- + docs/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/Makefile.in b/docs/Makefile.in +index 0560553..1280806 100644 +--- a/docs/Makefile.in ++++ b/docs/Makefile.in +@@ -81,7 +81,7 @@ CFLAGS = @CFLAGS@ + GIHDIR = @GIHDIR@ + INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/term + LDFLAGS = @LDFLAGS@ +-LIBS = @LIBS@ ++LIBS = + + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) + CCLD = $(CC) diff --git a/patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch b/patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch new file mode 100644 index 0000000..e153eea --- /dev/null +++ b/patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch @@ -0,0 +1,30 @@ +From: Bernhard Walle <bernhard@bwalle.de> +Date: Sun, 22 Jan 2012 00:03:59 +0100 +Subject: [PATCH] Don't use LDFLAGS when building the documentation generator + +The documentation generator is a tool running on the build machine. +Therefore the LDFLAGS computed for the cross compiler may not work, such +as the "-Wl,-rpath-link" flag which is not understood by the Darwin +linker. + +The doc2gih is simple and doesn't require an external library. So we +don't also need special LDFLAGS. Omit them. + +Signed-off-by: Bernhard Walle <bernhard@bwalle.de> +--- + docs/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/Makefile.in b/docs/Makefile.in +index 1280806..a7741e1 100644 +--- a/docs/Makefile.in ++++ b/docs/Makefile.in +@@ -85,7 +85,7 @@ LIBS = + + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) + CCLD = $(CC) +-LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ ++LINK = $(CCLD) $(CFLAGS) -o $@ + + .c.o: + $(COMPILE) -c $< diff --git a/patches/gnuplot-4.6.1/autogen.sh b/patches/gnuplot-4.6.1/autogen.sh new file mode 120000 index 0000000..9f8a4cb --- /dev/null +++ b/patches/gnuplot-4.6.1/autogen.sh @@ -0,0 +1 @@ +../autogen.sh \ No newline at end of file diff --git a/patches/gnuplot-4.6.1/series b/patches/gnuplot-4.6.1/series new file mode 100644 index 0000000..585745c --- /dev/null +++ b/patches/gnuplot-4.6.1/series @@ -0,0 +1,5 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-gnuplot-build-documentation-generator-tools-with-CC_.patch +0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch +# ffd95c4575ca3e3194e093f925705906 - git-ptx-patches magic diff --git a/rules/gnuplot.make b/rules/gnuplot.make index 0142e7c..2159933 100644 --- a/rules/gnuplot.make +++ b/rules/gnuplot.make @@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_GNUPLOT) += gnuplot # # Paths and names # -GNUPLOT_VERSION := 4.4.3 -GNUPLOT_MD5 := 639603752996f4923bc02c895fa03b45 +GNUPLOT_VERSION := 4.6.1 +GNUPLOT_MD5 := 4c9a06461f402482c30cf94e267eb877 GNUPLOT := gnuplot-$(GNUPLOT_VERSION) GNUPLOT_SUFFIX := tar.gz GNUPLOT_URL := $(call ptx/mirror, SF, gnuplot/$(GNUPLOT).$(GNUPLOT_SUFFIX)) @@ -101,19 +101,19 @@ $(STATEDIR)/gnuplot.targetinstall: @$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/bin/gnuplot) ifdef PTXCONF_GNUPLOT_HELP - @$(call install_copy, gnuplot, 0, 0, 0644, -, /usr/share/gnuplot/4.4/gnuplot.gih) + @$(call install_copy, gnuplot, 0, 0, 0644, -, /usr/share/gnuplot/4.6/gnuplot.gih) endif ifdef PTXCONF_GNUPLOT_POSTSCRIPT - @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.4/PostScript) + @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.6/PostScript) endif ifdef PTXCONF_GNUPLOT_JS - @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.4/js) + @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.6/js) endif ifdef PTXCONF_GNUPLOT_X - @$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/libexec/gnuplot/4.4/gnuplot_x11) + @$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/libexec/gnuplot/4.6/gnuplot_x11) endif @$(call install_finish, gnuplot) -- 1.7.2.5 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 2012-10-15 9:30 ` [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 Alexander Dahl @ 2012-10-15 11:04 ` Michael Olbrich 0 siblings, 0 replies; 34+ messages in thread From: Michael Olbrich @ 2012-10-15 11:04 UTC (permalink / raw) To: ptxdist On Mon, Oct 15, 2012 at 11:30:29AM +0200, Alexander Dahl wrote: > > Signed-off-by: Alexander Dahl <post@lespocky.de> > --- > ...ld-documentation-generator-tools-with-CC_.patch | 99 -------------------- > ...DFLAGS-when-building-the-documentation-ge.patch | 30 ------ > patches/gnuplot-4.4.3/autogen.sh | 1 - > patches/gnuplot-4.4.3/series | 5 - > ...ld-documentation-generator-tools-with-CC_.patch | 27 ++++++ > ...DFLAGS-when-building-the-documentation-ge.patch | 30 ++++++ > patches/gnuplot-4.6.1/autogen.sh | 1 + > patches/gnuplot-4.6.1/series | 5 + > rules/gnuplot.make | 12 +- > 9 files changed, 69 insertions(+), 141 deletions(-) > delete mode 100644 patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > delete mode 100644 patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > delete mode 120000 patches/gnuplot-4.4.3/autogen.sh > delete mode 100644 patches/gnuplot-4.4.3/series > create mode 100644 patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > create mode 100644 patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > create mode 120000 patches/gnuplot-4.6.1/autogen.sh > create mode 100644 patches/gnuplot-4.6.1/series > > diff --git a/patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch b/patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > deleted file mode 100644 > index cbc130b..0000000 > --- a/patches/gnuplot-4.4.3/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > +++ /dev/null > @@ -1,99 +0,0 @@ > -From: Robert Schwebel <r.schwebel@pengutronix.de> > -Date: Wed, 12 Oct 2011 15:29:54 +0200 > -Subject: [PATCH] gnuplot: build documentation generator tools with > - CC_FOR_BUILD > - > -When cross compiling gnuplot, it tries to build the documentation > -generation tools in docs/ with the cross compiler, not with > -CC_FOR_BUILD. > - > -Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> > ---- > -# 20091222 rsc: https://sourceforge.net/tracker/?func=detail&aid=2918992&group_id=2055&atid=302055 > - > - configure.in | 42 ++++++++++++++++++++++++++++++++++++++++++ > - docs/Makefile.in | 4 ++-- > - 2 files changed, 44 insertions(+), 2 deletions(-) > - > -diff --git a/configure.in b/configure.in > -index 655217b..c6278d2 100755 > ---- a/configure.in > -+++ b/configure.in > -@@ -10,6 +10,8 @@ AC_PREREQ(2.58) > - AM_CONFIG_HEADER(config.h:config.hin) > - AM_INIT_AUTOMAKE(1.7.9) > - > -+AM_MAINTAINER_MODE > -+ > - VERSION_MAJOR="`cat $srcdir/VERSION`" > - PATCHLEVEL="`cat $srcdir/PATCHLEVEL`" > - > -@@ -26,6 +28,46 @@ AC_C_INLINE > - AC_C_STRINGIZE > - AC_PROG_LN_S > - > -+ > -+if test "${build}" != "${host}" > -+then > -+ CC=${CC-${host_alias}-gcc} > -+ CFLAGS=${CFLAGS-"-g -O2"} > -+ CXX=${CXX-${host_alias}-c++} > -+ CXXFLAGS=${CXXFLAGS-"-g -O2"} > -+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc} > -+else > -+ CC_FOR_BUILD="\$(CC)" > -+ AC_PROG_CC > -+ > -+ # We must set the default linker to the linker used by gcc for the correct > -+ # operation of libtool. If LD is not defined and we are using gcc, try to > -+ # set the LD default to the ld used by gcc. > -+ if test -z "$LD" > -+ then > -+ if test "$GCC" = yes > -+ then > -+ case $build in > -+ *-*-mingw*) > -+ gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; > -+ *) > -+ gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; > -+ esac > -+ case $gcc_prog_ld in > -+ # Accept absolute paths. > -+ [[\\/]* | [A-Za-z]:[\\/]*)] > -+ LD="$gcc_prog_ld" ;; > -+ esac > -+ fi > -+ fi > -+ > -+ CXX=${CXX-"c++"} > -+ CFLAGS=${CFLAGS-"-g -O2"} > -+ CXXFLAGS=${CXXFLAGS-"-g -O2"} > -+fi > -+AC_SUBST(CC_FOR_BUILD) > -+ > -+ > - dnl Various programs > - dnl X/Emacs for building lisp packages and creating .texi version of docs > - # If set to t, that means we are running in a shell under Emacs. > -diff --git a/docs/Makefile.in b/docs/Makefile.in > -index 51ebe6b..591d818 100644 > ---- a/docs/Makefile.in > -+++ b/docs/Makefile.in > -@@ -70,7 +70,7 @@ POST_UNINSTALL = : > - > - INFO_DEPS = $(srcdir)/gnuplot.info > - > --CC = @CC@ > -+CC = @CC_FOR_BUILD@ > - CPP = @CPP@ > - DEFS = @DEFS@ > - DEFAULT_INCLUDES = -I. -I$(srcdir) -I.. -I$(top_builddir) > -@@ -79,7 +79,7 @@ CFLAGS = @CFLAGS@ > - GIHDIR = @GIHDIR@ > - INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/term > - LDFLAGS = @LDFLAGS@ > --LIBS = @LIBS@ > -+LIBS = > - > - COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) > - CCLD = $(CC) > diff --git a/patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch b/patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > deleted file mode 100644 > index 968eaf8..0000000 > --- a/patches/gnuplot-4.4.3/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > +++ /dev/null > @@ -1,30 +0,0 @@ > -From: Bernhard Walle <bernhard@bwalle.de> > -Date: Sun, 22 Jan 2012 00:03:59 +0100 > -Subject: [PATCH] Don't use LDFLAGS when building the documentation generator > - > -The documentation generator is a tool running on the build machine. > -Therefore the LDFLAGS computed for the cross compiler may not work, such > -as the "-Wl,-rpath-link" flag which is not understood by the Darwin > -linker. > - > -The doc2gih is simple and doesn't require an external library. So we > -don't also need special LDFLAGS. Omit them. > - > -Signed-off-by: Bernhard Walle <bernhard@bwalle.de> > ---- > - docs/Makefile.in | 2 +- > - 1 files changed, 1 insertions(+), 1 deletions(-) > - > -diff --git a/docs/Makefile.in b/docs/Makefile.in > -index 591d818..0e2ef8f 100644 > ---- a/docs/Makefile.in > -+++ b/docs/Makefile.in > -@@ -83,7 +83,7 @@ LIBS = > - > - COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) > - CCLD = $(CC) > --LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ > -+LINK = $(CCLD) $(CFLAGS) -o $@ > - > - .c.o: > - $(COMPILE) -c $< > diff --git a/patches/gnuplot-4.4.3/autogen.sh b/patches/gnuplot-4.4.3/autogen.sh > deleted file mode 120000 > index 9f8a4cb..0000000 > --- a/patches/gnuplot-4.4.3/autogen.sh > +++ /dev/null > @@ -1 +0,0 @@ > -../autogen.sh > \ No newline at end of file > diff --git a/patches/gnuplot-4.4.3/series b/patches/gnuplot-4.4.3/series > deleted file mode 100644 > index 585745c..0000000 > --- a/patches/gnuplot-4.4.3/series > +++ /dev/null > @@ -1,5 +0,0 @@ > -# generated by git-ptx-patches > -#tag:base --start-number 1 > -0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > -0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > -# ffd95c4575ca3e3194e093f925705906 - git-ptx-patches magic > diff --git a/patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch b/patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > new file mode 100644 > index 0000000..3fe716f > --- /dev/null > +++ b/patches/gnuplot-4.6.1/0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > @@ -0,0 +1,27 @@ > +From: Robert Schwebel <r.schwebel@pengutronix.de> > +Date: Wed, 12 Oct 2011 15:29:54 +0200 > +Subject: [PATCH] gnuplot: build documentation generator tools with > + CC_FOR_BUILD > + > +When cross compiling gnuplot, it tries to build the documentation > +generation tools in docs/ with the cross compiler, not with > +CC_FOR_BUILD. please fix the comment. That's not what the patch does anymore. Michael > + > +Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> > +--- > + docs/Makefile.in | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/docs/Makefile.in b/docs/Makefile.in > +index 0560553..1280806 100644 > +--- a/docs/Makefile.in > ++++ b/docs/Makefile.in > +@@ -81,7 +81,7 @@ CFLAGS = @CFLAGS@ > + GIHDIR = @GIHDIR@ > + INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/term > + LDFLAGS = @LDFLAGS@ > +-LIBS = @LIBS@ > ++LIBS = > + > + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) > + CCLD = $(CC) > diff --git a/patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch b/patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > new file mode 100644 > index 0000000..e153eea > --- /dev/null > +++ b/patches/gnuplot-4.6.1/0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > @@ -0,0 +1,30 @@ > +From: Bernhard Walle <bernhard@bwalle.de> > +Date: Sun, 22 Jan 2012 00:03:59 +0100 > +Subject: [PATCH] Don't use LDFLAGS when building the documentation generator > + > +The documentation generator is a tool running on the build machine. > +Therefore the LDFLAGS computed for the cross compiler may not work, such > +as the "-Wl,-rpath-link" flag which is not understood by the Darwin > +linker. > + > +The doc2gih is simple and doesn't require an external library. So we > +don't also need special LDFLAGS. Omit them. > + > +Signed-off-by: Bernhard Walle <bernhard@bwalle.de> > +--- > + docs/Makefile.in | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/docs/Makefile.in b/docs/Makefile.in > +index 1280806..a7741e1 100644 > +--- a/docs/Makefile.in > ++++ b/docs/Makefile.in > +@@ -85,7 +85,7 @@ LIBS = > + > + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) > + CCLD = $(CC) > +-LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ > ++LINK = $(CCLD) $(CFLAGS) -o $@ > + > + .c.o: > + $(COMPILE) -c $< > diff --git a/patches/gnuplot-4.6.1/autogen.sh b/patches/gnuplot-4.6.1/autogen.sh > new file mode 120000 > index 0000000..9f8a4cb > --- /dev/null > +++ b/patches/gnuplot-4.6.1/autogen.sh > @@ -0,0 +1 @@ > +../autogen.sh > \ No newline at end of file > diff --git a/patches/gnuplot-4.6.1/series b/patches/gnuplot-4.6.1/series > new file mode 100644 > index 0000000..585745c > --- /dev/null > +++ b/patches/gnuplot-4.6.1/series > @@ -0,0 +1,5 @@ > +# generated by git-ptx-patches > +#tag:base --start-number 1 > +0001-gnuplot-build-documentation-generator-tools-with-CC_.patch > +0002-Don-t-use-LDFLAGS-when-building-the-documentation-ge.patch > +# ffd95c4575ca3e3194e093f925705906 - git-ptx-patches magic > diff --git a/rules/gnuplot.make b/rules/gnuplot.make > index 0142e7c..2159933 100644 > --- a/rules/gnuplot.make > +++ b/rules/gnuplot.make > @@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_GNUPLOT) += gnuplot > # > # Paths and names > # > -GNUPLOT_VERSION := 4.4.3 > -GNUPLOT_MD5 := 639603752996f4923bc02c895fa03b45 > +GNUPLOT_VERSION := 4.6.1 > +GNUPLOT_MD5 := 4c9a06461f402482c30cf94e267eb877 > GNUPLOT := gnuplot-$(GNUPLOT_VERSION) > GNUPLOT_SUFFIX := tar.gz > GNUPLOT_URL := $(call ptx/mirror, SF, gnuplot/$(GNUPLOT).$(GNUPLOT_SUFFIX)) > @@ -101,19 +101,19 @@ $(STATEDIR)/gnuplot.targetinstall: > @$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/bin/gnuplot) > > ifdef PTXCONF_GNUPLOT_HELP > - @$(call install_copy, gnuplot, 0, 0, 0644, -, /usr/share/gnuplot/4.4/gnuplot.gih) > + @$(call install_copy, gnuplot, 0, 0, 0644, -, /usr/share/gnuplot/4.6/gnuplot.gih) > endif > > ifdef PTXCONF_GNUPLOT_POSTSCRIPT > - @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.4/PostScript) > + @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.6/PostScript) > endif > > ifdef PTXCONF_GNUPLOT_JS > - @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.4/js) > + @$(call install_tree, gnuplot, 0, 0, -, /usr/share/gnuplot/4.6/js) > endif > > ifdef PTXCONF_GNUPLOT_X > - @$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/libexec/gnuplot/4.4/gnuplot_x11) > + @$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/libexec/gnuplot/4.6/gnuplot_x11) > endif > > @$(call install_finish, gnuplot) > -- > 1.7.2.5 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version 2012-10-15 9:30 [ptxdist] (no subject) Alexander Dahl 2012-10-15 9:30 ` [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 Alexander Dahl @ 2012-10-15 9:30 ` Alexander Dahl 2012-10-15 11:07 ` Michael Olbrich 2012-10-15 10:15 ` [ptxdist] (no subject) Alexander Dahl 2 siblings, 1 reply; 34+ messages in thread From: Alexander Dahl @ 2012-10-15 9:30 UTC (permalink / raw) To: ptxdist Signed-off-by: Alexander Dahl <post@lespocky.de> --- rules/gnuplot.in | 49 ++++++++++++++++++++++++++++--------------------- rules/gnuplot.make | 21 ++------------------- 2 files changed, 30 insertions(+), 40 deletions(-) diff --git a/rules/gnuplot.in b/rules/gnuplot.in index f25f2c1..c5bd109 100644 --- a/rules/gnuplot.in +++ b/rules/gnuplot.in @@ -6,8 +6,11 @@ menuconfig GNUPLOT select GCCLIBS_CXX select GCCLIBS_GCC_S select ZLIB - select LIBPNG if GNUPLOT_PNG select XORG_LIB_XT if GNUPLOT_X + select LIBGD if GNUPLOT_GD + select LIBGD_PNG if GNUPLOT_GD_PNG + select LIBGD_JPEG if GNUPLOT_GD_JPEG + select LIBGD_FREETYPE if GNUPLOT_GD_TTF help A command-line driven interactive plotting program for making 2D and 3D graphs from data and functions. @@ -49,30 +52,34 @@ config GNUPLOT_X help Enable the graphical X11 user interface of GNUplot -config GNUPLOT_PLOT +menuconfig GNUPLOT_GD bool - prompt "use Unix plot library" - depends on BROKEN + prompt "GD support " help - If you link this program with the Unix plot library - (rather outdated) it will be able to generate Unix - plot output. + Use the GD library. GD is an open source code library for the + dynamic creation of images. You get support for png and jpeg if + you select this. Note: setting options in the submenu leads to + compiling libgd with the very features. -config GNUPLOT_PNG - bool - prompt "PNG support" - help - Include support for PNG (Portable Network Graphics) - graphics format +if GNUPLOT_GD + config GNUPLOT_GD_PNG + bool + prompt "PNG support" + help + Add dependency to compile libgd with PNG support. -config GNUPLOT_GD - bool - prompt "GD support" - depends on BROKEN - help - Use the GD library. - GD is an open source code library for the dynamic - creation of images. + config GNUPLOT_GD_JPEG + bool + prompt "JPEG support" + help + Add dependency to compile libgd with PNG support. + + config GNUPLOT_GD_TTF + bool + prompt "TTF support" + help + Add dependency to compile libgd with TTF support. +endif config GNUPLOT_PDF bool diff --git a/rules/gnuplot.make b/rules/gnuplot.make index 2159933..699c35a 100644 --- a/rules/gnuplot.make +++ b/rules/gnuplot.make @@ -31,29 +31,14 @@ GNUPLOT_DIR := $(BUILDDIR)/$(GNUPLOT) GNUPLOT_PATH := PATH=$(CROSS_PATH) GNUPLOT_ENV := $(CROSS_ENV) - -# -# autoconf -# -# 4.2.4: --disable-datastrings is broken -# --disable-binary-data-file is broken -# -GNUPLOT_AUTOCONF = \ +GNUPLOT_CONF_TOOL := autoconf +GNUPLOT_CONF_OPT = \ $(CROSS_AUTOCONF_USR) \ --disable-history-file \ --disable-x11-mbfonts \ - --enable-binary-data-file \ - --disable-with-image \ - --disable-binary-x11-polygon \ --disable-thin-splines \ - --enable-datastrings \ - --disable-histograms \ --disable-objects \ - --disable-stringvariables \ --disable-macros \ - --disable-iris \ - --disable-mgr \ - --disable-rgip \ --disable-h3d-quadtree \ --disable-h3d-gridbox \ --disable-wxwidgets \ @@ -71,8 +56,6 @@ GNUPLOT_AUTOCONF = \ --without-lua \ --$(call ptx/endis, PTXCONF_GNUPLOT_X)-mouse \ --$(call ptx/wwo, PTXCONF_GNUPLOT_X)-x \ - --$(call ptx/wwo, PTXCONF_GNUPLOT_PLOT)-plot \ - --$(call ptx/wwo, PTXCONF_GNUPLOT_PNG)-png \ --$(call ptx/wwo, PTXCONF_GNUPLOT_GD)-gd \ --$(call ptx/wwo, PTXCONF_GNUPLOT_PDF)-pdf -- 1.7.2.5 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version 2012-10-15 9:30 ` [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Alexander Dahl @ 2012-10-15 11:07 ` Michael Olbrich 2012-10-15 12:35 ` Michael Olbrich 0 siblings, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2012-10-15 11:07 UTC (permalink / raw) To: ptxdist On Mon, Oct 15, 2012 at 11:30:30AM +0200, Alexander Dahl wrote: > > Signed-off-by: Alexander Dahl <post@lespocky.de> > --- > rules/gnuplot.in | 49 ++++++++++++++++++++++++++++--------------------- > rules/gnuplot.make | 21 ++------------------- > 2 files changed, 30 insertions(+), 40 deletions(-) > > diff --git a/rules/gnuplot.in b/rules/gnuplot.in > index f25f2c1..c5bd109 100644 > --- a/rules/gnuplot.in > +++ b/rules/gnuplot.in > @@ -6,8 +6,11 @@ menuconfig GNUPLOT > select GCCLIBS_CXX > select GCCLIBS_GCC_S > select ZLIB > - select LIBPNG if GNUPLOT_PNG > select XORG_LIB_XT if GNUPLOT_X > + select LIBGD if GNUPLOT_GD > + select LIBGD_PNG if GNUPLOT_GD_PNG > + select LIBGD_JPEG if GNUPLOT_GD_JPEG > + select LIBGD_FREETYPE if GNUPLOT_GD_TTF > help > A command-line driven interactive plotting program for > making 2D and 3D graphs from data and functions. > @@ -49,30 +52,34 @@ config GNUPLOT_X > help > Enable the graphical X11 user interface of GNUplot > > -config GNUPLOT_PLOT > +menuconfig GNUPLOT_GD > bool > - prompt "use Unix plot library" > - depends on BROKEN > + prompt "GD support " > help > - If you link this program with the Unix plot library > - (rather outdated) it will be able to generate Unix > - plot output. > + Use the GD library. GD is an open source code library for the > + dynamic creation of images. You get support for png and jpeg if > + you select this. Note: setting options in the submenu leads to > + compiling libgd with the very features. > > -config GNUPLOT_PNG > - bool > - prompt "PNG support" > - help > - Include support for PNG (Portable Network Graphics) > - graphics format > +if GNUPLOT_GD > + config GNUPLOT_GD_PNG > + bool > + prompt "PNG support" > + help > + Add dependency to compile libgd with PNG support. > > -config GNUPLOT_GD > - bool > - prompt "GD support" > - depends on BROKEN > - help > - Use the GD library. > - GD is an open source code library for the dynamic > - creation of images. > + config GNUPLOT_GD_JPEG > + bool > + prompt "JPEG support" > + help > + Add dependency to compile libgd with PNG support. > + > + config GNUPLOT_GD_TTF > + bool > + prompt "TTF support" > + help > + Add dependency to compile libgd with TTF support. > +endif > > config GNUPLOT_PDF > bool > diff --git a/rules/gnuplot.make b/rules/gnuplot.make > index 2159933..699c35a 100644 > --- a/rules/gnuplot.make > +++ b/rules/gnuplot.make > @@ -31,29 +31,14 @@ GNUPLOT_DIR := $(BUILDDIR)/$(GNUPLOT) > > GNUPLOT_PATH := PATH=$(CROSS_PATH) You need to make sure png/jpg/ttf support is not automatically enabled: GNUPLOT_ENV := \ $(CROSS_ENV) \ ac_cv_lib_gd_gdImagePng=$(call ptx/ifdef, PTXCONF_GNUPLOT_GD_PNG) And similar for ac_cv_lib_gd_gdImageStringTTF and ac_cv_lib_gd_gdImageJpeg And probably add ac_cv_lib_gd_gdImageGif=no as long as there is no option for it. Michael > - > -# > -# autoconf > -# > -# 4.2.4: --disable-datastrings is broken > -# --disable-binary-data-file is broken > -# > -GNUPLOT_AUTOCONF = \ > +GNUPLOT_CONF_TOOL := autoconf > +GNUPLOT_CONF_OPT = \ > $(CROSS_AUTOCONF_USR) \ > --disable-history-file \ > --disable-x11-mbfonts \ > - --enable-binary-data-file \ > - --disable-with-image \ > - --disable-binary-x11-polygon \ > --disable-thin-splines \ > - --enable-datastrings \ > - --disable-histograms \ > --disable-objects \ > - --disable-stringvariables \ > --disable-macros \ > - --disable-iris \ > - --disable-mgr \ > - --disable-rgip \ > --disable-h3d-quadtree \ > --disable-h3d-gridbox \ > --disable-wxwidgets \ > @@ -71,8 +56,6 @@ GNUPLOT_AUTOCONF = \ > --without-lua \ > --$(call ptx/endis, PTXCONF_GNUPLOT_X)-mouse \ > --$(call ptx/wwo, PTXCONF_GNUPLOT_X)-x \ > - --$(call ptx/wwo, PTXCONF_GNUPLOT_PLOT)-plot \ > - --$(call ptx/wwo, PTXCONF_GNUPLOT_PNG)-png \ > --$(call ptx/wwo, PTXCONF_GNUPLOT_GD)-gd \ > --$(call ptx/wwo, PTXCONF_GNUPLOT_PDF)-pdf > > -- > 1.7.2.5 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version 2012-10-15 11:07 ` Michael Olbrich @ 2012-10-15 12:35 ` Michael Olbrich 0 siblings, 0 replies; 34+ messages in thread From: Michael Olbrich @ 2012-10-15 12:35 UTC (permalink / raw) To: ptxdist On Mon, Oct 15, 2012 at 01:07:17PM +0200, Michael Olbrich wrote: > On Mon, Oct 15, 2012 at 11:30:30AM +0200, Alexander Dahl wrote: > > > > Signed-off-by: Alexander Dahl <post@lespocky.de> > > --- > > rules/gnuplot.in | 49 ++++++++++++++++++++++++++++--------------------- > > rules/gnuplot.make | 21 ++------------------- > > 2 files changed, 30 insertions(+), 40 deletions(-) > > > > diff --git a/rules/gnuplot.in b/rules/gnuplot.in > > index f25f2c1..c5bd109 100644 > > --- a/rules/gnuplot.in > > +++ b/rules/gnuplot.in > > @@ -6,8 +6,11 @@ menuconfig GNUPLOT > > select GCCLIBS_CXX > > select GCCLIBS_GCC_S > > select ZLIB > > - select LIBPNG if GNUPLOT_PNG > > select XORG_LIB_XT if GNUPLOT_X > > + select LIBGD if GNUPLOT_GD > > + select LIBGD_PNG if GNUPLOT_GD_PNG > > + select LIBGD_JPEG if GNUPLOT_GD_JPEG > > + select LIBGD_FREETYPE if GNUPLOT_GD_TTF > > help > > A command-line driven interactive plotting program for > > making 2D and 3D graphs from data and functions. > > @@ -49,30 +52,34 @@ config GNUPLOT_X > > help > > Enable the graphical X11 user interface of GNUplot > > > > -config GNUPLOT_PLOT > > +menuconfig GNUPLOT_GD > > bool > > - prompt "use Unix plot library" > > - depends on BROKEN > > + prompt "GD support " > > help > > - If you link this program with the Unix plot library > > - (rather outdated) it will be able to generate Unix > > - plot output. > > + Use the GD library. GD is an open source code library for the > > + dynamic creation of images. You get support for png and jpeg if > > + you select this. Note: setting options in the submenu leads to > > + compiling libgd with the very features. > > > > -config GNUPLOT_PNG > > - bool > > - prompt "PNG support" > > - help > > - Include support for PNG (Portable Network Graphics) > > - graphics format > > +if GNUPLOT_GD > > + config GNUPLOT_GD_PNG > > + bool > > + prompt "PNG support" > > + help > > + Add dependency to compile libgd with PNG support. > > > > -config GNUPLOT_GD > > - bool > > - prompt "GD support" > > - depends on BROKEN > > - help > > - Use the GD library. > > - GD is an open source code library for the dynamic > > - creation of images. > > + config GNUPLOT_GD_JPEG > > + bool > > + prompt "JPEG support" > > + help > > + Add dependency to compile libgd with PNG support. > > + > > + config GNUPLOT_GD_TTF > > + bool > > + prompt "TTF support" > > + help > > + Add dependency to compile libgd with TTF support. > > +endif > > > > config GNUPLOT_PDF > > bool > > diff --git a/rules/gnuplot.make b/rules/gnuplot.make > > index 2159933..699c35a 100644 > > --- a/rules/gnuplot.make > > +++ b/rules/gnuplot.make > > @@ -31,29 +31,14 @@ GNUPLOT_DIR := $(BUILDDIR)/$(GNUPLOT) > > > > GNUPLOT_PATH := PATH=$(CROSS_PATH) > > You need to make sure png/jpg/ttf support is not automatically enabled: > > GNUPLOT_ENV := \ > $(CROSS_ENV) \ > ac_cv_lib_gd_gdImagePng=$(call ptx/ifdef, PTXCONF_GNUPLOT_GD_PNG) This should be: ac_cv_lib_gd_gdImagePng=$(call ptx/ifdef, PTXCONF_GNUPLOT_GD_PNG,yes,no) Michael > > - > > -# > > -# autoconf > > -# > > -# 4.2.4: --disable-datastrings is broken > > -# --disable-binary-data-file is broken > > -# > > -GNUPLOT_AUTOCONF = \ > > +GNUPLOT_CONF_TOOL := autoconf > > +GNUPLOT_CONF_OPT = \ > > $(CROSS_AUTOCONF_USR) \ > > --disable-history-file \ > > --disable-x11-mbfonts \ > > - --enable-binary-data-file \ > > - --disable-with-image \ > > - --disable-binary-x11-polygon \ > > --disable-thin-splines \ > > - --enable-datastrings \ > > - --disable-histograms \ > > --disable-objects \ > > - --disable-stringvariables \ > > --disable-macros \ > > - --disable-iris \ > > - --disable-mgr \ > > - --disable-rgip \ > > --disable-h3d-quadtree \ > > --disable-h3d-gridbox \ > > --disable-wxwidgets \ > > @@ -71,8 +56,6 @@ GNUPLOT_AUTOCONF = \ > > --without-lua \ > > --$(call ptx/endis, PTXCONF_GNUPLOT_X)-mouse \ > > --$(call ptx/wwo, PTXCONF_GNUPLOT_X)-x \ > > - --$(call ptx/wwo, PTXCONF_GNUPLOT_PLOT)-plot \ > > - --$(call ptx/wwo, PTXCONF_GNUPLOT_PNG)-png \ > > --$(call ptx/wwo, PTXCONF_GNUPLOT_GD)-gd \ > > --$(call ptx/wwo, PTXCONF_GNUPLOT_PDF)-pdf > > > > -- > > 1.7.2.5 > > > > > > -- > > ptxdist mailing list > > ptxdist@pengutronix.de > > > > -- > 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 > -- 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2012-10-15 9:30 [ptxdist] (no subject) Alexander Dahl 2012-10-15 9:30 ` [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 Alexander Dahl 2012-10-15 9:30 ` [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Alexander Dahl @ 2012-10-15 10:15 ` Alexander Dahl 2 siblings, 0 replies; 34+ messages in thread From: Alexander Dahl @ 2012-10-15 10:15 UTC (permalink / raw) To: ptxdist Am 2012-10-15 11:30, schrieb Alexander Dahl: > second version of those patches, incorporating suggested changes. Sorry for leaving the subject empty, I blame my nose sneezing the whole day. ;-) A -- »With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie) *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 *** -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] (no subject) @ 2021-01-24 10:36 flix.ptxdist 0 siblings, 0 replies; 34+ messages in thread From: flix.ptxdist @ 2021-01-24 10:36 UTC (permalink / raw) To: ptxdist The patch adds an option the libxml2 rules which allows to install the xmllint tool to the target. The tool can be used i.e. for validating or formatting XML files. _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] [PATCH 1/2] rules: polkit: Fix incorrect installation path @ 2018-12-11 7:41 Michael Olbrich 2018-12-17 8:26 ` [ptxdist] (no subject) Dold, Wolfram 0 siblings, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2018-12-11 7:41 UTC (permalink / raw) To: ptxdist On Mon, Dec 10, 2018 at 02:18:07PM +0000, Dold, Wolfram wrote: > Installing 'org.freedesktop.PolicyKit1.conf' to directory > '/etc/dbus-1/system.d/' fails. > The correct installation directory is '/usr/share/dbus-1/system.d/'. > --- > rules/polkit.make | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/rules/polkit.make b/rules/polkit.make > index 4505e0e78..6e7b3eb0a 100644 > --- a/rules/polkit.make > +++ b/rules/polkit.make > @@ -60,7 +60,7 @@ $(STATEDIR)/polkit.targetinstall: > > # dbus > @$(call install_copy, polkit, 0, 0, 0644, -, \ > - /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf) > + /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf) This does not work. 'make install' needs to install the file to the correct location as well. I think debian has a patch for this. Michael > @$(call install_copy, polkit, 0, 0, 0644, -, \ > /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service) > > -- > 2.17.1 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] (no subject) 2018-12-11 7:41 [ptxdist] [PATCH 1/2] rules: polkit: Fix incorrect installation path Michael Olbrich @ 2018-12-17 8:26 ` Dold, Wolfram 0 siblings, 0 replies; 34+ messages in thread From: Dold, Wolfram @ 2018-12-17 8:26 UTC (permalink / raw) To: ptxdist On Mon, Dec 10, 2018 at 02:18:07PM +0000, Dold, Wolfram wrote: > > Installing 'org.freedesktop.PolicyKit1.conf' to directory > > '/etc/dbus-1/system.d/' fails. > > The correct installation directory is '/usr/share/dbus-1/system.d/'. > > --- > > rules/polkit.make | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/rules/polkit.make b/rules/polkit.make > > index 4505e0e78..6e7b3eb0a 100644 > > --- a/rules/polkit.make > > +++ b/rules/polkit.make > > @@ -60,7 +60,7 @@ $(STATEDIR)/polkit.targetinstall: > > > > # dbus > > @$(call install_copy, polkit, 0, 0, 0644, -, \ > > - /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf) > > + /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf) > > This does not work. 'make install' needs to install the file to the correct > location as well. I think debian has a patch for this. > While searching for the patch I found out that ubuntu is still actively maintaining the version polkit 105. So I thought it was worth using all Ubuntu patches in ptxdist as well. Wolfram _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
[parent not found: <829880836.3299556.1488275043753.ref@mail.yahoo.com>]
* [ptxdist] (no subject) [not found] <829880836.3299556.1488275043753.ref@mail.yahoo.com> @ 2017-02-28 9:44 ` fredy zavis 2017-02-28 10:23 ` Juergen Borleis 0 siblings, 1 reply; 34+ messages in thread From: fredy zavis @ 2017-02-28 9:44 UTC (permalink / raw) To: ptxdist [-- Attachment #1.1: Type: text/plain, Size: 15 bytes --] unsubscribe [-- Attachment #1.2: Type: text/html, Size: 462 bytes --] [-- Attachment #2: Type: text/plain, Size: 91 bytes --] _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2017-02-28 9:44 ` fredy zavis @ 2017-02-28 10:23 ` Juergen Borleis 0 siblings, 0 replies; 34+ messages in thread From: Juergen Borleis @ 2017-02-28 10:23 UTC (permalink / raw) To: fredy zavis; +Cc: ptxdist On Tuesday 28 February 2017 10:44:03 fredy zavis wrote: > unsubscribe Done. -- Pengutronix e.K. | Juergen Borleis | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] (no subject) @ 2015-03-26 13:11 carsten.schlote 2015-04-02 16:22 ` Michael Olbrich 0 siblings, 1 reply; 34+ messages in thread From: carsten.schlote @ 2015-03-26 13:11 UTC (permalink / raw) To: ptxdist I updated the proftpd and stunnel packages to newer version. Carsten [PATCH 1/2] proftpd: Bumped version to 1.3.5 [PATCH 2/2] stunnel: Version bump to 5.02 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-03-26 13:11 carsten.schlote @ 2015-04-02 16:22 ` Michael Olbrich 0 siblings, 0 replies; 34+ messages in thread From: Michael Olbrich @ 2015-04-02 16:22 UTC (permalink / raw) To: ptxdist On Thu, Mar 26, 2015 at 02:11:43PM +0100, carsten.schlote@gmx.net wrote: > I updated the proftpd and stunnel packages to newer version. Thanks, both applied. Michael > Carsten > > [PATCH 1/2] proftpd: Bumped version to 1.3.5 > [PATCH 2/2] stunnel: Version bump to 5.02 > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] (no subject) @ 2015-02-21 23:07 Rüdiger, Christoph 2015-02-21 23:11 ` Jon Ringle 2015-02-22 9:38 ` Michael Olbrich 0 siblings, 2 replies; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-21 23:07 UTC (permalink / raw) To: ptxdist Hello, I'm trying to use ptxdist on a Mac OS X system to get rid of the Linux VM just for compiling things. Here is the thing I stumbled upon because I don't get the intention and therefore struggle to find a patch. The git commit 0dc57566bc5a25d2b086de333844a3c00addf0e4 from 2012-12-13 changed the body of the ptxd_make_log() function in scripts/libptxdist.sh from this implementation -ptxd_make_log() { - # - # fd3 == stdout to logfile - # fd4 == stderr to logfile - # fd5 == clean stdout - # fd6 == clean stderr - # - { - export PTXDIST_FD_STDOUT=5 - export PTXDIST_FD_STDERR=6 - export PTXDIST_FD_LOGFILE=7 - { - if [ -z "${PTXDIST_QUIET}" ]; then - ptxd_make "${@}" 4>&- | - # make's stdout on fd0 - tee -a "${PTX_LOGFILE}" 2>&4 4>&- 5>&- 6>&- - check_pipe_status || return - else - exec 4>&- - ptxd_make "${@}" 1>> "${PTX_LOGFILE}" - fi - } 2>&1 1>&3 3>&- 7>> "${PTX_LOGFILE}" | - # make's stderr on fd0 - tee -a "${PTX_LOGFILE}" 1>&2 3>&- 4>&- 5>&- 6>&- - check_pipe_status || return - } 3>&1 4>&2 5>&1 6>&2 -} to this implementation +ptxd_make_log() {( + # stdout only + exec {PTXDIST_FD_STDOUT}>&1 + # stderr only + exec {PTXDIST_FD_STDERR}>&2 + # logfile only + exec 9>> "${PTX_LOGFILE}" + export PTXDIST_FD_STDOUT + export PTXDIST_FD_STDERR + export PTXDIST_FD_LOGFILE=9 + + if [ -z "${PTXDIST_QUIET}" ]; then + # stdout and logfile + exec {logout}> >(tee -a "${PTX_LOGFILE}") + else + # logfile only + exec {logout}>> "${PTX_LOGFILE}" + fi + # stderr and logfile + exec {logerr}> >(tee -a "${PTX_LOGFILE}" >&2) + + ptxd_make "${@}" 1>&${logout} 2>&${logerr} +)} Now, my bash is complaining at the first exec command: > exec: {PTXDIST_FD_STDOUT}: not found To me, it looks fully understandable, because {PTXDIST_FD_STDOUT} is an ill-formed brace expansion and is therefore ignored. But why is the Linux (Ubuntu 12.04) not complaining about? What is the intention of this brace usage here? However, an > echo a{b,c,d}e expands on both machines to "abe ace ade" and an > echo {logout} gets ignored on both machines. Output is just "{logout}". Best regards, Christoph -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Str. 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-21 23:07 Rüdiger, Christoph @ 2015-02-21 23:11 ` Jon Ringle 2015-02-21 23:29 ` Rüdiger, Christoph 2015-02-22 9:38 ` Michael Olbrich 1 sibling, 1 reply; 34+ messages in thread From: Jon Ringle @ 2015-02-21 23:11 UTC (permalink / raw) To: ptxdist [-- Attachment #1.1: Type: text/plain, Size: 1904 bytes --] On Sat, Feb 21, 2015 at 6:07 PM, Rüdiger, Christoph < Christoph.Ruediger@thyssenkrupp.com> wrote: > Hello, > > I'm trying to use ptxdist on a Mac OS X system to get rid of the Linux VM > just for compiling things. Here is the thing I stumbled upon because I > don't get the intention and therefore struggle to find a patch. > > The git commit 0dc57566bc5a25d2b086de333844a3c00addf0e4 from 2012-12-13 > changed the body of the ptxd_make_log() function in scripts/libptxdist.sh > from this implementation > > -ptxd_make_log() { > - # > - # fd3 == stdout to logfile > - # fd4 == stderr to logfile > - # fd5 == clean stdout > - # fd6 == clean stderr > - # > - { > - export PTXDIST_FD_STDOUT=5 > - export PTXDIST_FD_STDERR=6 > - export PTXDIST_FD_LOGFILE=7 > - { > - if [ -z "${PTXDIST_QUIET}" ]; then > - ptxd_make "${@}" 4>&- | > - # make's stdout on fd0 > - tee -a "${PTX_LOGFILE}" 2>&4 4>&- 5>&- 6>&- > - check_pipe_status || return > - else > - exec 4>&- > - ptxd_make "${@}" 1>> "${PTX_LOGFILE}" > - fi > - } 2>&1 1>&3 3>&- 7>> "${PTX_LOGFILE}" | > - # make's stderr on fd0 > - tee -a "${PTX_LOGFILE}" 1>&2 3>&- 4>&- 5>&- 6>&- > - check_pipe_status || return > - } 3>&1 4>&2 5>&1 6>&2 > -} > > to this implementation > > +ptxd_make_log() {( > + # stdout only > + exec {PTXDIST_FD_STDOUT}>&1 > + # stderr only > + exec {PTXDIST_FD_STDERR}>&2 > missing $ try: exec ${PTXDIST_FD_STDOUT}>&1 exec ${PTXDIST_FD_STDERR}>&2 [-- Attachment #1.2: Type: text/html, Size: 2901 bytes --] [-- Attachment #2: Type: text/plain, Size: 48 bytes --] -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-21 23:11 ` Jon Ringle @ 2015-02-21 23:29 ` Rüdiger, Christoph 2015-02-21 23:43 ` Rüdiger, Christoph 0 siblings, 1 reply; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-21 23:29 UTC (permalink / raw) To: ptxdist > +ptxd_make_log() {( > + # stdout only > + exec {PTXDIST_FD_STDOUT}>&1 > + # stderr only > + exec {PTXDIST_FD_STDERR}>&2 > > > missing $ > try: > exec ${PTXDIST_FD_STDOUT}>&1 > exec ${PTXDIST_FD_STDERR}>&2 That was my first impression as well. A simple typing error. But why is it running in GNU bash but not in Apple's bash? Best regards, Christoph -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Str. 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-21 23:29 ` Rüdiger, Christoph @ 2015-02-21 23:43 ` Rüdiger, Christoph 0 siblings, 0 replies; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-21 23:43 UTC (permalink / raw) To: ptxdist Am 22.02.15 um 00:29 schrieb Rüdiger, Christoph:>> +ptxd_make_log() {( >> + # stdout only >> + exec {PTXDIST_FD_STDOUT}>&1 >> + # stderr only >> + exec {PTXDIST_FD_STDERR}>&2 >> >> >> missing $ >> try: >> exec ${PTXDIST_FD_STDOUT}>&1 >> exec ${PTXDIST_FD_STDERR}>&2 > > > That was my first impression as well. A simple typing error. But why is it running in GNU bash but not in Apple's bash? I'm not quite sure, if this is clear or not, but the simple dollar sign is not the fix. If adding the dollar sign to convert the brace expansions to parameter expansions, the next error is in the last line of the function: > ${logout}: ambiguous redirect So I'm still searching for explanations on why there are brace expansions and why the work in Ubuntu's bash, but not in Apple's bash. Best regards, Christoph P.S.: Sorry for the double post. It's late. Maybe too late. -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Str. 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-21 23:07 Rüdiger, Christoph 2015-02-21 23:11 ` Jon Ringle @ 2015-02-22 9:38 ` Michael Olbrich 2015-02-22 19:17 ` Christoph Rüdiger 1 sibling, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2015-02-22 9:38 UTC (permalink / raw) To: ptxdist On Sat, Feb 21, 2015 at 11:07:55PM +0000, Rüdiger, Christoph wrote: > I'm trying to use ptxdist on a Mac OS X system to get rid of the Linux VM > just for compiling things. Here is the thing I stumbled upon because I > don't get the intention and therefore struggle to find a patch. > > The git commit 0dc57566bc5a25d2b086de333844a3c00addf0e4 from 2012-12-13 > changed the body of the ptxd_make_log() function in scripts/libptxdist.sh > from this implementation > > -ptxd_make_log() { > - # > - # fd3 == stdout to logfile > - # fd4 == stderr to logfile > - # fd5 == clean stdout > - # fd6 == clean stderr > - # > - { > - export PTXDIST_FD_STDOUT=5 > - export PTXDIST_FD_STDERR=6 > - export PTXDIST_FD_LOGFILE=7 > - { > - if [ -z "${PTXDIST_QUIET}" ]; then > - ptxd_make "${@}" 4>&- | > - # make's stdout on fd0 > - tee -a "${PTX_LOGFILE}" 2>&4 4>&- 5>&- 6>&- > - check_pipe_status || return > - else > - exec 4>&- > - ptxd_make "${@}" 1>> "${PTX_LOGFILE}" > - fi > - } 2>&1 1>&3 3>&- 7>> "${PTX_LOGFILE}" | > - # make's stderr on fd0 > - tee -a "${PTX_LOGFILE}" 1>&2 3>&- 4>&- 5>&- 6>&- > - check_pipe_status || return > - } 3>&1 4>&2 5>&1 6>&2 > -} > > to this implementation > > +ptxd_make_log() {( > + # stdout only > + exec {PTXDIST_FD_STDOUT}>&1 > + # stderr only > + exec {PTXDIST_FD_STDERR}>&2 > + # logfile only > + exec 9>> "${PTX_LOGFILE}" > + export PTXDIST_FD_STDOUT > + export PTXDIST_FD_STDERR > + export PTXDIST_FD_LOGFILE=9 > + > + if [ -z "${PTXDIST_QUIET}" ]; then > + # stdout and logfile > + exec {logout}> >(tee -a "${PTX_LOGFILE}") > + else > + # logfile only > + exec {logout}>> "${PTX_LOGFILE}" > + fi > + # stderr and logfile > + exec {logerr}> >(tee -a "${PTX_LOGFILE}" >&2) > + > + ptxd_make "${@}" 1>&${logout} 2>&${logerr} > +)} > > > Now, my bash is complaining at the first exec command: > > > exec: {PTXDIST_FD_STDOUT}: not found > > > To me, it looks fully understandable, because {PTXDIST_FD_STDOUT} is an > ill-formed brace expansion and is therefore ignored. But why is the Linux > (Ubuntu 12.04) not complaining about? > > What is the intention of this brace usage here? It's valid bash syntax. A bit of history here: The standard for sh shells says, that the file descriptors up to 9 can be used inside the shell scripts. So that's what we used originally: With "5>&1" we create a file descriptor that we can later use to write to stdout when the normal stdout is redirected to the log file. However this solution as a problem: oder scripts can use the same file descriptor numbers and the output is send to the wrong place. This happened e.g. with configure scripts. So we changed it to: "exec {PTXDIST_FD_STDOUT}>&1". This is valid in bash and means that a new file descriptor is opened (with a currently unused number >= 10) and anything written to it is send to stdout. The file descriptor number is stored in the specified variable (PTXDIST_FD_STDOUT). I don't know why the bash in Max OS X cannot handle this. Maybe it's too old? What version are you using? Maybe something like this works: exec 7>&1 exec 8>&1 export PTXDIST_FD_STDOUT=7 export PTXDIST_FD_STDERR=8 Regards, 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-22 9:38 ` Michael Olbrich @ 2015-02-22 19:17 ` Christoph Rüdiger 2015-02-22 23:38 ` Anders Montonen 0 siblings, 1 reply; 34+ messages in thread From: Christoph Rüdiger @ 2015-02-22 19:17 UTC (permalink / raw) To: ptxdist [-- Attachment #1.1: Type: text/plain, Size: 3318 bytes --] Am 22.02.15 um 10:38 schrieb Michael Olbrich: >> What is the intention of this brace usage here? > > It's valid bash syntax. A bit of history here: > The standard for sh shells says, that the file descriptors up to 9 can be > used inside the shell scripts. So that's what we used originally: With > "5>&1" we create a file descriptor that we can later use to write to stdout > when the normal stdout is redirected to the log file. > However this solution as a problem: oder scripts can use the same file > descriptor numbers and the output is send to the wrong place. This happened > e.g. with configure scripts. So we changed it to: > "exec {PTXDIST_FD_STDOUT}>&1". This is valid in bash and means that a new > file descriptor is opened (with a currently unused number >= 10) and > anything written to it is send to stdout. The file descriptor number is > stored in the specified variable (PTXDIST_FD_STDOUT). Thank you very much for the explanation. I've never heard or read about this feature before. > I don't know why the bash in Max OS X cannot handle this. Maybe it's too > old? What version are you using? Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist for my day-to-day work. That's why I didn't took the version numbers into account. But I was wrong: Ubuntu 10.04.4: bash 4.1.5(1)-release OS X 10.9.5: bash 3.2.53(1)-release Just for completeness: The redirection feature with the optional left hand {var} notation was introduced in bash 4.1-alpha (see http://git.savannah.gnu.org/cgit/bash.git/tree/CHANGES#n1550). bash 4.1 was released on 31 Dec. 2009. :-) > Maybe something like this works: > exec 7>&1 > exec 8>&1 > export PTXDIST_FD_STDOUT=7 > export PTXDIST_FD_STDERR=8 I've installed a recent bash 4.3.33 via homebrew instead. But this is only part of the fix, because the ptxdist' scripts have a hardcoded shebang to /bin/bash. Additionally I needed to replace the Apple bash: # mv /bin/bash /bin/bash.apple # ln -s /usr/local/bin/bash /bin/bash Here is also a potential fix for the configure script to check for a proper bash version. I've never worked with autoconf, so please check the patch carefully. diff -urd a/configure.ac b/configure.ac --- a/configure.ac 2013-12-18 10:48:42.000000000 +0100 +++ b/configure.ac 2015-02-22 19:16:21.000000000 +0100 @@ -101,9 +101,9 @@ # though the result /could/ be available to us directly as $BASH_VERSION we # don't want to use, or trust it, incase the user is specifying a different # bash executable. -if `$BASH -c '[[ "$BASH_VERSION" \< "2.04" ]]'` ; then +if `$BASH -c '[[ "$BASH_VERSION" \< "4.1" ]]'` ; then AC_MSG_ERROR([ -$PACKAGE_NAME requires at least version 2.04 of bash, you can download a current +$PACKAGE_NAME requires at least version 4.1 of bash, you can download a current version of bash from ftp.gnu.org ]) fi This problem seems to be solved now. I'm now facing the problem, that host-zlib is not getting compiled with the compiler setup in ptxdist setup. But this is part of another story coming soon. Best regards, Christoph -- Christoph Rüdiger Am Horber Wald 19 73765 Neuhausen phone: +49 - 7158 - 12 84 670 [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 882 bytes --] [-- Attachment #2: Type: text/plain, Size: 48 bytes --] -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-22 19:17 ` Christoph Rüdiger @ 2015-02-22 23:38 ` Anders Montonen 2015-02-23 8:33 ` Michael Olbrich 0 siblings, 1 reply; 34+ messages in thread From: Anders Montonen @ 2015-02-22 23:38 UTC (permalink / raw) To: ptxdist > On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth-aachen.de> wrote: > Am 22.02.15 um 10:38 schrieb Michael Olbrich: > >> I don't know why the bash in Max OS X cannot handle this. Maybe it's too >> old? What version are you using? > Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer > than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist > for my day-to-day work. That's why I didn't took the version numbers > into account. But I was wrong: > > Ubuntu 10.04.4: bash 4.1.5(1)-release > OS X 10.9.5: bash 3.2.53(1)-release As you might have guessed, Bash 3.2 was the last version to be released under the GPLv2 license, and Apple will not distribute any software covered by GPLv3. -a -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-22 23:38 ` Anders Montonen @ 2015-02-23 8:33 ` Michael Olbrich 2015-02-23 9:13 ` Rüdiger, Christoph 0 siblings, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2015-02-23 8:33 UTC (permalink / raw) To: ptxdist On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: > > > On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth-aachen.de> wrote: > > Am 22.02.15 um 10:38 schrieb Michael Olbrich: > > > >> I don't know why the bash in Max OS X cannot handle this. Maybe it's too > >> old? What version are you using? > > Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer > > than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist > > for my day-to-day work. That's why I didn't took the version numbers > > into account. But I was wrong: > > > > Ubuntu 10.04.4: bash 4.1.5(1)-release > > OS X 10.9.5: bash 3.2.53(1)-release > > As you might have guessed, Bash 3.2 was the last version to be released under > the GPLv2 license, and Apple will not distribute any software covered by > GPLv3. So you'll be stuck with the old version. Let's see if we can stay compatible. Christoph: does the exec with explicit fd numbers work? And what's the output of "set | grep BASH_VERSINFO" for the old bash? 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-23 8:33 ` Michael Olbrich @ 2015-02-23 9:13 ` Rüdiger, Christoph 2015-02-23 11:24 ` Michael Olbrich 0 siblings, 1 reply; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-23 9:13 UTC (permalink / raw) To: ptxdist > -----Ursprüngliche Nachricht----- > Von: ptxdist-bounces@pengutronix.de [mailto:ptxdist- > bounces@pengutronix.de] Im Auftrag von Michael Olbrich > Gesendet: Montag, 23. Februar 2015 09:33 > An: ptxdist@pengutronix.de > Betreff: Re: [ptxdist] (no subject) > > On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: > > > > > On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth- > aachen.de> wrote: > > > Am 22.02.15 um 10:38 schrieb Michael Olbrich: > > > > > >> I don't know why the bash in Max OS X cannot handle this. Maybe it's > too > > >> old? What version are you using? > > > Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer > > > than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist > > > for my day-to-day work. That's why I didn't took the version numbers > > > into account. But I was wrong: > > > > > > Ubuntu 10.04.4: bash 4.1.5(1)-release > > > OS X 10.9.5: bash 3.2.53(1)-release > > > > As you might have guessed, Bash 3.2 was the last version to be released > under > > the GPLv2 license, and Apple will not distribute any software covered by > > GPLv3. > > So you'll be stuck with the old version. Let's see if we can stay > compatible. You need to install a lot of GNU tools from exteranl sources (homebrew, MacPorts, Fink), so I do not see any problem in including bash into this list. My bigger problem is now, that there is no GNU linker available on OS X, so you need to use the LLVM linker which does not understand the -Wl,--as-needed flag. I need to dig deeper to understand since when GNU gcc set this flag by default and what the drawback is, if we remove this flag from the PTXDIST_HOST_LDFLAGS. > Christoph: does the exec with explicit fd numbers work? The exec with explicit fd numbers worked in a quick test on the command line. > And what's the > output of "set | grep BASH_VERSINFO" for the old bash? I do not have access to the Mac right now. You will receive an answer later this day. Best regards, Christoph -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Straße 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-23 9:13 ` Rüdiger, Christoph @ 2015-02-23 11:24 ` Michael Olbrich 2015-02-24 21:28 ` Rüdiger, Christoph 0 siblings, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2015-02-23 11:24 UTC (permalink / raw) To: ptxdist On Mon, Feb 23, 2015 at 09:13:56AM +0000, Rüdiger, Christoph wrote: > > On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: > > > > > > > On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth- > > aachen.de> wrote: > > > > Am 22.02.15 um 10:38 schrieb Michael Olbrich: > > > > > > > >> I don't know why the bash in Max OS X cannot handle this. Maybe it's > > too > > > >> old? What version are you using? > > > > Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer > > > > than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist > > > > for my day-to-day work. That's why I didn't took the version numbers > > > > into account. But I was wrong: > > > > > > > > Ubuntu 10.04.4: bash 4.1.5(1)-release > > > > OS X 10.9.5: bash 3.2.53(1)-release > > > > > > As you might have guessed, Bash 3.2 was the last version to be released > > under > > > the GPLv2 license, and Apple will not distribute any software covered by > > > GPLv3. > > > > So you'll be stuck with the old version. Let's see if we can stay > > compatible. > > You need to install a lot of GNU tools from exteranl sources (homebrew, > MacPorts, Fink), so I do not see any problem in including bash into this > list. My bigger problem is now, that there is no GNU linker available on OS > X, so you need to use the LLVM linker which does not understand the > -Wl,--as-needed flag. I need to dig deeper to understand since when GNU gcc > set this flag by default and what the drawback is, if we remove this flag > from the PTXDIST_HOST_LDFLAGS. Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist should only add it for target packages if PTXCONF_TARGET_LINKER_AS_NEEDED is set. If you start ptxdist with '-v' then all calls to the compiler and linker are logged. Look for lines starting with 'wrapper:' in the logfile. 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-23 11:24 ` Michael Olbrich @ 2015-02-24 21:28 ` Rüdiger, Christoph 2015-02-26 12:23 ` Michael Olbrich 0 siblings, 1 reply; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-24 21:28 UTC (permalink / raw) To: ptxdist Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at 09:13:56AM +0000, Rüdiger, Christoph wrote: >>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: >>>> >>>>> On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth- >>> aachen.de> wrote: >>>>> Am 22.02.15 um 10:38 schrieb Michael Olbrich: >>>>> >>>>>> I don't know why the bash in Max OS X cannot handle this. Maybe it's >>> too >>>>>> old? What version are you using? >>>>> Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer >>>>> than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist >>>>> for my day-to-day work. That's why I didn't took the version numbers >>>>> into account. But I was wrong: >>>>> >>>>> Ubuntu 10.04.4: bash 4.1.5(1)-release >>>>> OS X 10.9.5: bash 3.2.53(1)-release >>>> >>>> As you might have guessed, Bash 3.2 was the last version to be released >>> under >>>> the GPLv2 license, and Apple will not distribute any software covered by >>>> GPLv3. >>> >>> So you'll be stuck with the old version. Let's see if we can stay >>> compatible. >> >> You need to install a lot of GNU tools from exteranl sources (homebrew, >> MacPorts, Fink), so I do not see any problem in including bash into this >> list. My bigger problem is now, that there is no GNU linker available on OS >> X, so you need to use the LLVM linker which does not understand the >> -Wl,--as-needed flag. I need to dig deeper to understand since when GNU gcc >> set this flag by default and what the drawback is, if we remove this flag >> from the PTXDIST_HOST_LDFLAGS. > > Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist should > only add it for target packages if PTXCONF_TARGET_LINKER_AS_NEEDED is set. You are right. I just cross-read an article and got the information wrong. According to the GNU ld man page [1], --as-needed affects the DT_NEEDED flag only of dynamic libraries given _after_ --as-needed. As ptxdist sets it as the very last flag (see below), it is a useless flag. > If you start ptxdist with '-v' then all calls to the compiler and linker > are logged. Look for lines starting with 'wrapper:' in the logfile. wrapper: gcc -isystem /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -o minigzip minigzip.o -L. libz.a -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages -Wl,--as-needed wrapper: gcc -isystem /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -o example example.o -L. libz.a -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages -Wl,--as-needed And here is the missing BASH_VERSINFO of Apple's bash: $ set | grep BASH_VERSINFO BASH_VERSINFO=([0]="3" [1]="2" [2]="53" [3]="1" [4]="release" [5]="x86_64-apple-darwin13") Best regards, Christoph [1] http://linux.die.net/man/1/ld -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Straße 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-24 21:28 ` Rüdiger, Christoph @ 2015-02-26 12:23 ` Michael Olbrich 2015-02-27 8:48 ` Rüdiger, Christoph 0 siblings, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2015-02-26 12:23 UTC (permalink / raw) To: ptxdist On Tue, Feb 24, 2015 at 09:28:29PM +0000, Rüdiger, Christoph wrote: > Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at 09:13:56AM +0000, Rüdiger, Christoph wrote: > >>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: > >>>> > >>>>> On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth- > >>> aachen.de> wrote: > >>>>> Am 22.02.15 um 10:38 schrieb Michael Olbrich: > >>>>> > >>>>>> I don't know why the bash in Max OS X cannot handle this. Maybe it's > >>> too > >>>>>> old? What version are you using? > >>>>> Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer > >>>>> than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist > >>>>> for my day-to-day work. That's why I didn't took the version numbers > >>>>> into account. But I was wrong: > >>>>> > >>>>> Ubuntu 10.04.4: bash 4.1.5(1)-release > >>>>> OS X 10.9.5: bash 3.2.53(1)-release > >>>> > >>>> As you might have guessed, Bash 3.2 was the last version to be released > >>> under > >>>> the GPLv2 license, and Apple will not distribute any software covered by > >>>> GPLv3. > >>> > >>> So you'll be stuck with the old version. Let's see if we can stay > >>> compatible. > >> > >> You need to install a lot of GNU tools from exteranl sources (homebrew, > >> MacPorts, Fink), so I do not see any problem in including bash into this > >> list. My bigger problem is now, that there is no GNU linker available on OS > >> X, so you need to use the LLVM linker which does not understand the > >> -Wl,--as-needed flag. I need to dig deeper to understand since when GNU gcc > >> set this flag by default and what the drawback is, if we remove this flag > >> from the PTXDIST_HOST_LDFLAGS. > > > > Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist should > > only add it for target packages if PTXCONF_TARGET_LINKER_AS_NEEDED is set. > > You are right. I just cross-read an article and got the information wrong. > According to the GNU ld man page [1], --as-needed affects the DT_NEEDED flag > only of dynamic libraries given _after_ --as-needed. As ptxdist sets it as > the very last flag (see below), it is a useless flag. Which ptxdist version are you using? At least for target packages we set it in the right place. For me it looks like this: [...] wrapper: /usr/bin/icecc arm-v7a-linux-gnueabihf-gcc -Wl,--as-needed -isystem [...]/platform-arm-hf/sysroot-target/include -isystem [...]/platform-arm-hf/sysroot-target/usr/include -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a -L[...]/platform-arm-hf/sysroot-target/lib -L[...]/platform-arm-hf/sysroot-target/usr/lib -Wl,-rpath-link -Wl,[...]/platform-arm-hf/sysroot-target/lib -Wl,-rpath-link -Wl,[...]/platform-arm-hf/sysroot-target/usr/lib [...] The wrapper script adds it before the other options. > > If you start ptxdist with '-v' then all calls to the compiler and linker > > are logged. Look for lines starting with 'wrapper:' in the logfile. > > > wrapper: gcc -isystem /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -o minigzip minigzip.o -L. libz.a -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages -Wl,--as-needed I'm not sure where the "-Wl,--as-needed" is comming from. The only thing that is added at the end of the command-line is PTXDIST_HOST_LDFLAGS and that's just the -L / -Wl,-rpath stuff. > And here is the missing BASH_VERSINFO of Apple's bash: > $ set | grep BASH_VERSINFO > BASH_VERSINFO=([0]="3" [1]="2" [2]="53" [3]="1" [4]="release" [5]="x86_64-apple-darwin13") So we could check for the version. 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-26 12:23 ` Michael Olbrich @ 2015-02-27 8:48 ` Rüdiger, Christoph 2015-02-27 9:06 ` Michael Olbrich 2015-02-27 9:23 ` Juergen Borleis 0 siblings, 2 replies; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-27 8:48 UTC (permalink / raw) To: ptxdist Am 26.02.15 um 13:23 schrieb Michael Olbrich:> On Tue, Feb 24, 2015 at 09:28:29PM +0000, Rüdiger, Christoph wrote: >> Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at 09:13:56AM +0000, Rüdiger, Christoph wrote: >>>>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: >>>>>> >>>>>>> On 22 Feb 2015, at 21:17, Christoph Rüdiger <christoph.ruediger@rwth- >>>>> aachen.de> wrote: >>>>>>> Am 22.02.15 um 10:38 schrieb Michael Olbrich: >>>>>>> >>>>>>>> I don't know why the bash in Max OS X cannot handle this. Maybe it's >>>>> too >>>>>>>> old? What version are you using? >>>>>>> Your assumption is right. My OS X is 10.9.5 (Mavericks) and way newer >>>>>>> than the Ubuntu 10.04.4 which is the oldest system where I use ptxdist >>>>>>> for my day-to-day work. That's why I didn't took the version numbers >>>>>>> into account. But I was wrong: >>>>>>> >>>>>>> Ubuntu 10.04.4: bash 4.1.5(1)-release >>>>>>> OS X 10.9.5: bash 3.2.53(1)-release >>>>>> >>>>>> As you might have guessed, Bash 3.2 was the last version to be released >>>>> under >>>>>> the GPLv2 license, and Apple will not distribute any software covered by >>>>>> GPLv3. >>>>> >>>>> So you'll be stuck with the old version. Let's see if we can stay >>>>> compatible. >>>> >>>> You need to install a lot of GNU tools from exteranl sources (homebrew, >>>> MacPorts, Fink), so I do not see any problem in including bash into this >>>> list. My bigger problem is now, that there is no GNU linker available on OS >>>> X, so you need to use the LLVM linker which does not understand the >>>> -Wl,--as-needed flag. I need to dig deeper to understand since when GNU gcc >>>> set this flag by default and what the drawback is, if we remove this flag >>>> from the PTXDIST_HOST_LDFLAGS. >>> >>> Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist should >>> only add it for target packages if PTXCONF_TARGET_LINKER_AS_NEEDED is set. >> >> You are right. I just cross-read an article and got the information wrong. >> According to the GNU ld man page [1], --as-needed affects the DT_NEEDED flag >> only of dynamic libraries given _after_ --as-needed. As ptxdist sets it as >> the very last flag (see below), it is a useless flag. > > Which ptxdist version are you using? For this project, I need to stick with ptxdist-2013.12.0 for building OSELAS toolchain 2013.12.2. > At least for target packages we set it > in the right place. For me it looks like this: > [...] > wrapper: /usr/bin/icecc arm-v7a-linux-gnueabihf-gcc -Wl,--as-needed -isystem [...]/platform-arm-hf/sysroot-target/include -isystem [...]/platform-arm-hf/sysroot-target/usr/include -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a -L[...]/platform-arm-hf/sysroot-target/lib -L[...]/platform-arm-hf/sysroot-target/usr/lib -Wl,-rpath-link -Wl,[...]/platform-arm-hf/sysroot-target/lib -Wl,-rpath-link -Wl,[...]/platform-arm-hf/sysroot-target/usr/lib > [...] > > The wrapper script adds it before the other options. > >>> If you start ptxdist with '-v' then all calls to the compiler and linker >>> are logged. Look for lines starting with 'wrapper:' in the logfile. >> >> >> wrapper: gcc -isystem /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -o minigzip minigzip.o -L. libz.a -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages -Wl,--as-needed > > I'm not sure where the "-Wl,--as-needed" is comming from. The only thing > that is added at the end of the command-line is PTXDIST_HOST_LDFLAGS and > that's just the -L / -Wl,-rpath stuff. I've performed a simple grep and stripped out the wrapper and exec lines from the logfiles. This grep searched in the installed ptxdist, the ptxdist sources and the OSELAS sources, as I'm not quite sure, if it is coming from ptxdist or OSELAS toolchain project. But I tend to blame ptxdist ;-) Remember: The compilation of host-zlib within the OSELAS toolchain project fails. $ grep -r -- '-Wl,--as-needed' * lib/ptxdist-2013.12.0/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later with lib/ptxdist-2013.12.0/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS="-Wl,--as-needed $LDFLAGS" lib/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed lib/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/binutils-2.24/ld/testsuite/ld-plugin/lto.exp: "-flto -fuse-linker-plugin -Wl,--as-needed" "-flto" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/binutils-2.24/ld/testsuite/ld-plugin/lto.exp: "-O2 -flto -fuse-linker-plugin -Wl,--as-needed tmpdir/pr13201.o -lm" "" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/gcc-linaro-4.8-2013.11/libgfortran/acinclude.m4: dnl Check whether -Wl,--as-needed is supported src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/gcc-linaro-4.8-2013.11/libgfortran/acinclude.m4: LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-cross/gcc-linaro-4.8-2013.11/libgfortran/configure: LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed" src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/.pc/0100-add-install-lib-all-target.patch/Makerules: -Wl,--as-needed $(build-module-objlist) -Wl,--no-as-needed \ src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/Makeconfig:as-needed := -Wl,--as-needed src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/Makeconfig:libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/build-target/glibc-2.18/Makerules: -Wl,--as-needed $(build-module-objlist) -Wl,--no-as-needed \ src/OSELAS.Toolchain-2013.12.2/rules/pre/toolchain.make:PTXDIST_HOST_LDFLAGS += -Wl,--as-needed src/a/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later with src/a/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS="-Wl,--as-needed $LDFLAGS" src/a/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/a/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/b/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later with src/b/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS="-Wl,--as-needed $LDFLAGS" src/b/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/b/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/ptxdist-2013.12.0/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later with src/ptxdist-2013.12.0/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS="-Wl,--as-needed $LDFLAGS" src/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/ptxdist-2013.12.0/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/ptxdist-2013.12.0.orig/patches/cppunit-1.12.1/0002-libcppunit-needs-ldl-dlopen-dlclose-etc.patch:Without this building with -Wl,--as-needed fails later with src/ptxdist-2013.12.0.orig/patches/eggdbus-0.6/0003-update-autotoolization.patch: LDFLAGS="-Wl,--as-needed $LDFLAGS" src/ptxdist-2013.12.0.orig/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed src/ptxdist-2013.12.0.orig/patches/lshw-B.02.14/0001-fix-cross-compilation.patch: LDFLAGS+= -Wl,--as-needed >> And here is the missing BASH_VERSINFO of Apple's bash: >> $ set | grep BASH_VERSINFO >> BASH_VERSINFO=([0]="3" [1]="2" [2]="53" [3]="1" [4]="release" [5]="x86_64-apple-darwin13") > > So we could check for the version. Regards, Christoph -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Straße 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-27 8:48 ` Rüdiger, Christoph @ 2015-02-27 9:06 ` Michael Olbrich 2015-02-27 9:24 ` Rüdiger, Christoph 2015-02-27 9:23 ` Juergen Borleis 1 sibling, 1 reply; 34+ messages in thread From: Michael Olbrich @ 2015-02-27 9:06 UTC (permalink / raw) To: ptxdist On Fri, Feb 27, 2015 at 08:48:42AM +0000, Rüdiger, Christoph wrote: > Am 26.02.15 um 13:23 schrieb Michael Olbrich:> On Tue, Feb 24, 2015 at 09:28:29PM +0000, Rüdiger, Christoph wrote: > >> Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at 09:13:56AM +0000, Rüdiger, Christoph wrote: > >>>>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen wrote: > >>>> You need to install a lot of GNU tools from exteranl sources (homebrew, > >>>> MacPorts, Fink), so I do not see any problem in including bash into this > >>>> list. My bigger problem is now, that there is no GNU linker available on OS > >>>> X, so you need to use the LLVM linker which does not understand the > >>>> -Wl,--as-needed flag. I need to dig deeper to understand since when GNU gcc > >>>> set this flag by default and what the drawback is, if we remove this flag > >>>> from the PTXDIST_HOST_LDFLAGS. > >>> > >>> Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist should > >>> only add it for target packages if PTXCONF_TARGET_LINKER_AS_NEEDED is set. > >> > >> You are right. I just cross-read an article and got the information wrong. > >> According to the GNU ld man page [1], --as-needed affects the DT_NEEDED flag > >> only of dynamic libraries given _after_ --as-needed. As ptxdist sets it as > >> the very last flag (see below), it is a useless flag. > > > > Which ptxdist version are you using? > > For this project, I need to stick with ptxdist-2013.12.0 for building OSELAS toolchain 2013.12.2. > > > At least for target packages we set it > > in the right place. For me it looks like this: > > [...] > > wrapper: /usr/bin/icecc arm-v7a-linux-gnueabihf-gcc -Wl,--as-needed -isystem [...]/platform-arm-hf/sysroot-target/include -isystem [...]/platform-arm-hf/sysroot-target/usr/include -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a -L[...]/platform-arm-hf/sysroot-target/lib -L[...]/platform-arm-hf/sysroot-target/usr/lib -Wl,-rpath-link -Wl,[...]/platform-arm-hf/sysroot-target/lib -Wl,-rpath-link -Wl,[...]/platform-arm-hf/sysroot-target/usr/lib > > [...] > > > > The wrapper script adds it before the other options. > > > >>> If you start ptxdist with '-v' then all calls to the compiler and linker > >>> are logged. Look for lines starting with 'wrapper:' in the logfile. > >> > >> > >> wrapper: gcc -isystem /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -o minigzip minigzip.o -L. libz.a -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm-cortexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages -Wl,--as-needed > > > > I'm not sure where the "-Wl,--as-needed" is comming from. The only thing > > that is added at the end of the command-line is PTXDIST_HOST_LDFLAGS and > > that's just the -L / -Wl,-rpath stuff. > > I've performed a simple grep and stripped out the wrapper and exec lines from the logfiles. This grep searched in the installed ptxdist, the ptxdist sources and the OSELAS sources, as I'm not quite sure, if it is coming from ptxdist or OSELAS toolchain project. But I tend to blame ptxdist ;-) > > Remember: The compilation of host-zlib within the OSELAS toolchain project fails. > > $ grep -r -- '-Wl,--as-needed' * [...] > src/OSELAS.Toolchain-2013.12.2/rules/pre/toolchain.make:PTXDIST_HOST_LDFLAGS += -Wl,--as-needed [...] Here is the source of your problem. I originally added this because it some really unnecessary dependencies for something in the toolchain. Maybe we can only add it for the GNU ld? I'm not quite sure how to test for this, because we need to check the linker called by the host compiler which may not be 'ld'. 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-27 9:06 ` Michael Olbrich @ 2015-02-27 9:24 ` Rüdiger, Christoph 2015-02-27 10:32 ` Juergen Borleis 2015-02-27 15:36 ` Michael Olbrich 0 siblings, 2 replies; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-27 9:24 UTC (permalink / raw) To: ptxdist > -----Original Message----- > From: ptxdist-bounces@pengutronix.de [mailto:ptxdist- > bounces@pengutronix.de] On Behalf Of Michael Olbrich > Sent: Friday, February 27, 2015 10:07 AM > To: ptxdist@pengutronix.de > Subject: Re: [ptxdist] (no subject) > > On Fri, Feb 27, 2015 at 08:48:42AM +0000, Rüdiger, Christoph wrote: > > Am 26.02.15 um 13:23 schrieb Michael Olbrich:> On Tue, Feb 24, 2015 at > 09:28:29PM +0000, Rüdiger, Christoph wrote: > > >> Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at > 09:13:56AM +0000, Rüdiger, Christoph wrote: > > >>>>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen > wrote: > > >>>> You need to install a lot of GNU tools from exteranl sources > > >>>> (homebrew, MacPorts, Fink), so I do not see any problem in > > >>>> including bash into this list. My bigger problem is now, that > > >>>> there is no GNU linker available on OS X, so you need to use the > > >>>> LLVM linker which does not understand the -Wl,--as-needed flag. I > > >>>> need to dig deeper to understand since when GNU gcc set this flag > > >>>> by default and what the drawback is, if we remove this flag from the > PTXDIST_HOST_LDFLAGS. > > >>> > > >>> Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist > > >>> should only add it for target packages if > PTXCONF_TARGET_LINKER_AS_NEEDED is set. > > >> > > >> You are right. I just cross-read an article and got the information wrong. > > >> According to the GNU ld man page [1], --as-needed affects the > > >> DT_NEEDED flag only of dynamic libraries given _after_ --as-needed. > > >> As ptxdist sets it as the very last flag (see below), it is a useless flag. > > > > > > Which ptxdist version are you using? > > > > For this project, I need to stick with ptxdist-2013.12.0 for building OSELAS > toolchain 2013.12.2. > > > > > At least for target packages we set it in the right place. For me it > > > looks like this: > > > [...] > > > wrapper: /usr/bin/icecc arm-v7a-linux-gnueabihf-gcc -Wl,--as-needed > > > -isystem [...]/platform-arm-hf/sysroot-target/include -isystem > > > [...]/platform-arm-hf/sysroot-target/usr/include -O3 > > > -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. > > > libz.a -L[...]/platform-arm-hf/sysroot-target/lib > > > -L[...]/platform-arm-hf/sysroot-target/usr/lib -Wl,-rpath-link > > > -Wl,[...]/platform-arm-hf/sysroot-target/lib -Wl,-rpath-link > > > -Wl,[...]/platform-arm-hf/sysroot-target/usr/lib > > > [...] > > > > > > The wrapper script adds it before the other options. > > > > > >>> If you start ptxdist with '-v' then all calls to the compiler and > > >>> linker are logged. Look for lines starting with 'wrapper:' in the logfile. > > >> > > >> > > >> wrapper: gcc -isystem > > >> /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm- > cortex > > >> a8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-s > > >> anitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR > > >> -DNO_vsnprintf -o minigzip minigzip.o -L. libz.a > > >> -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm- > cort > > >> exa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12 > > >> -sanitized/sysroot-host/lib -Wl,-rpath > > >> -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm- > co > > >> rtexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3. > > >> 12-sanitized/sysroot-host/lib -Wl,-rpath > > >> -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpa > > >> th/when/using/dev/packages -Wl,--as-needed > > > > > > I'm not sure where the "-Wl,--as-needed" is comming from. The only > > > thing that is added at the end of the command-line is > > > PTXDIST_HOST_LDFLAGS and that's just the -L / -Wl,-rpath stuff. > > > > I've performed a simple grep and stripped out the wrapper and exec > > lines from the logfiles. This grep searched in the installed ptxdist, > > the ptxdist sources and the OSELAS sources, as I'm not quite sure, if > > it is coming from ptxdist or OSELAS toolchain project. But I tend to > > blame ptxdist ;-) > > > > Remember: The compilation of host-zlib within the OSELAS toolchain > project fails. > > > > $ grep -r -- '-Wl,--as-needed' * > [...] > > src/OSELAS.Toolchain- > 2013.12.2/rules/pre/toolchain.make:PTXDIST_HOST_LDFLAGS > += -Wl,--as-needed > [...] > > Here is the source of your problem. I originally added this because it some > really unnecessary dependencies for something in the toolchain. > > Maybe we can only add it for the GNU ld? I'm not quite sure how to test for > this, because we need to check the linker called by the host compiler which > may not be 'ld'. The LLVM linker is also called 'ld'. We need to check for the version string, which contains either "LLVM" or "GNU". If somebody can point me to a few places where to add this check, I can write something in the beginning of next week. Btw.: Does somebody know a good autoconf howto? In the past years I've tried to avoid using it as best as I can, but this seems to require some autoconf knowledge ;-) Best regards, Christoph -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Straße 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-27 9:24 ` Rüdiger, Christoph @ 2015-02-27 10:32 ` Juergen Borleis 2015-02-27 15:36 ` Michael Olbrich 1 sibling, 0 replies; 34+ messages in thread From: Juergen Borleis @ 2015-02-27 10:32 UTC (permalink / raw) To: ptxdist; +Cc: Rüdiger, Christoph Hi Christoph, On Friday 27 February 2015 10:24:20 Rüdiger, Christoph wrote: > [...] > Btw.: Does somebody know a good autoconf howto? In the past years I've > tried to avoid using it as best as I can, but this seems to require some > autoconf knowledge ;-) Perhaps this one can help you: http://www.gentoo.org/doc/en/articles/autotools-practices.xml This one is also nice: https://autotools.io/libtool/index.html Regards, Juergen -- Pengutronix e.K. | Juergen Borleis | Industrial Linux Solutions | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-27 9:24 ` Rüdiger, Christoph 2015-02-27 10:32 ` Juergen Borleis @ 2015-02-27 15:36 ` Michael Olbrich 1 sibling, 0 replies; 34+ messages in thread From: Michael Olbrich @ 2015-02-27 15:36 UTC (permalink / raw) To: ptxdist On Fri, Feb 27, 2015 at 09:24:20AM +0000, Rüdiger, Christoph wrote: > > On Fri, Feb 27, 2015 at 08:48:42AM +0000, Rüdiger, Christoph wrote: > > > Am 26.02.15 um 13:23 schrieb Michael Olbrich:> On Tue, Feb 24, 2015 at > > 09:28:29PM +0000, Rüdiger, Christoph wrote: > > > >> Am 23.02.15 um 12:24 schrieb Michael Olbrich:> On Mon, Feb 23, 2015 at > > 09:13:56AM +0000, Rüdiger, Christoph wrote: > > > >>>>> On Mon, Feb 23, 2015 at 01:38:40AM +0200, Anders Montonen > > wrote: > > > >>>> You need to install a lot of GNU tools from exteranl sources > > > >>>> (homebrew, MacPorts, Fink), so I do not see any problem in > > > >>>> including bash into this list. My bigger problem is now, that > > > >>>> there is no GNU linker available on OS X, so you need to use the > > > >>>> LLVM linker which does not understand the -Wl,--as-needed flag. I > > > >>>> need to dig deeper to understand since when GNU gcc set this flag > > > >>>> by default and what the drawback is, if we remove this flag from the > > PTXDIST_HOST_LDFLAGS. > > > >>> > > > >>> Hmm, "-Wl,--as-needed" should not be added implicitly and ptxdist > > > >>> should only add it for target packages if > > PTXCONF_TARGET_LINKER_AS_NEEDED is set. > > > >> > > > >> You are right. I just cross-read an article and got the information wrong. > > > >> According to the GNU ld man page [1], --as-needed affects the > > > >> DT_NEEDED flag only of dynamic libraries given _after_ --as-needed. > > > >> As ptxdist sets it as the very last flag (see below), it is a useless flag. > > > > > > > > Which ptxdist version are you using? > > > > > > For this project, I need to stick with ptxdist-2013.12.0 for building OSELAS > > toolchain 2013.12.2. > > > > > > > At least for target packages we set it in the right place. For me it > > > > looks like this: > > > > [...] > > > > wrapper: /usr/bin/icecc arm-v7a-linux-gnueabihf-gcc -Wl,--as-needed > > > > -isystem [...]/platform-arm-hf/sysroot-target/include -isystem > > > > [...]/platform-arm-hf/sysroot-target/usr/include -O3 > > > > -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. > > > > libz.a -L[...]/platform-arm-hf/sysroot-target/lib > > > > -L[...]/platform-arm-hf/sysroot-target/usr/lib -Wl,-rpath-link > > > > -Wl,[...]/platform-arm-hf/sysroot-target/lib -Wl,-rpath-link > > > > -Wl,[...]/platform-arm-hf/sysroot-target/usr/lib > > > > [...] > > > > > > > > The wrapper script adds it before the other options. > > > > > > > >>> If you start ptxdist with '-v' then all calls to the compiler and > > > >>> linker are logged. Look for lines starting with 'wrapper:' in the logfile. > > > >> > > > >> > > > >> wrapper: gcc -isystem > > > >> /Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm- > > cortex > > > >> a8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-s > > > >> anitized/sysroot-host/include -O3 -DNO_FSEEKO -DNO_STRERROR > > > >> -DNO_vsnprintf -o minigzip minigzip.o -L. libz.a > > > >> -L/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm- > > cort > > > >> exa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12 > > > >> -sanitized/sysroot-host/lib -Wl,-rpath > > > >> -Wl,/Volumes/BlueBox/src/OSELAS.Toolchain-2013.12.2/platform-arm- > > co > > > >> rtexa8-linux-gnueabihf-gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3. > > > >> 12-sanitized/sysroot-host/lib -Wl,-rpath > > > >> -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpa > > > >> th/when/using/dev/packages -Wl,--as-needed > > > > > > > > I'm not sure where the "-Wl,--as-needed" is comming from. The only > > > > thing that is added at the end of the command-line is > > > > PTXDIST_HOST_LDFLAGS and that's just the -L / -Wl,-rpath stuff. > > > > > > I've performed a simple grep and stripped out the wrapper and exec > > > lines from the logfiles. This grep searched in the installed ptxdist, > > > the ptxdist sources and the OSELAS sources, as I'm not quite sure, if > > > it is coming from ptxdist or OSELAS toolchain project. But I tend to > > > blame ptxdist ;-) > > > > > > Remember: The compilation of host-zlib within the OSELAS toolchain > > project fails. > > > > > > $ grep -r -- '-Wl,--as-needed' * > > [...] > > > src/OSELAS.Toolchain- > > 2013.12.2/rules/pre/toolchain.make:PTXDIST_HOST_LDFLAGS > > += -Wl,--as-needed > > [...] > > > > Here is the source of your problem. I originally added this because it some > > really unnecessary dependencies for something in the toolchain. > > > > Maybe we can only add it for the GNU ld? I'm not quite sure how to test for > > this, because we need to check the linker called by the host compiler which > > may not be 'ld'. > > The LLVM linker is also called 'ld'. We need to check for the version string, > which contains either "LLVM" or "GNU". If somebody can point me to a few > places where to add this check, I can write something in the beginning of > next week. But it might not be the 'ld' in $PATH. So probably something like this is necessary: `gcc -print-prog-name=ld` -v | grep -q GNU 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 ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-27 8:48 ` Rüdiger, Christoph 2015-02-27 9:06 ` Michael Olbrich @ 2015-02-27 9:23 ` Juergen Borleis 2015-02-27 9:31 ` Rüdiger, Christoph 1 sibling, 1 reply; 34+ messages in thread From: Juergen Borleis @ 2015-02-27 9:23 UTC (permalink / raw) To: ptxdist; +Cc: Rüdiger, Christoph Hi Christoph, On Friday 27 February 2015 09:48:42 Rüdiger, Christoph wrote: > [...] > > Which ptxdist version are you using? > > For this project, I need to stick with ptxdist-2013.12.0 for building > OSELAS toolchain 2013.12.2. The used PTXdist version to build the toolchain is *independent* from the PTXdist version you can use for your BSP project. And all PTXdist versions can co-exist on your host filesystem. Regards, Juergen -- Pengutronix e.K. | Juergen Borleis | Industrial Linux Solutions | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [ptxdist] (no subject) 2015-02-27 9:23 ` Juergen Borleis @ 2015-02-27 9:31 ` Rüdiger, Christoph 0 siblings, 0 replies; 34+ messages in thread From: Rüdiger, Christoph @ 2015-02-27 9:31 UTC (permalink / raw) To: Juergen Borleis, ptxdist > -----Original Message----- > From: Juergen Borleis [mailto:jbe@pengutronix.de] > Sent: Friday, February 27, 2015 10:24 AM > To: ptxdist@pengutronix.de > Cc: Rüdiger, Christoph > Subject: Re: [ptxdist] (no subject) > > Hi Christoph, > > On Friday 27 February 2015 09:48:42 Rüdiger, Christoph wrote: > > [...] > > > Which ptxdist version are you using? > > > > For this project, I need to stick with ptxdist-2013.12.0 for building > > OSELAS toolchain 2013.12.2. > > The used PTXdist version to build the toolchain is *independent* from the > PTXdist version you can use for your BSP project. > And all PTXdist versions can co-exist on your host filesystem. I know this fact. We are currently using different ptxdist versions up to ptxdist-2014.08.0 for the different BSP projects. Best regards, Christoph -- ThyssenKrupp Elevator Innovation GmbH PDC Neuhausen TKEI Elevator Control Bernhaeuser Straße 45 73765 Neuhausen, Germany Phone +49 7158 12-2615 christoph.ruediger@thyssenkrupp.com Company domicile: Essen Commercial register: Essen HRB 20 839 Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
* [ptxdist] (no subject) @ 2012-04-26 19:41 Ali Beddah 0 siblings, 0 replies; 34+ messages in thread From: Ali Beddah @ 2012-04-26 19:41 UTC (permalink / raw) To: ptxdist [-- Attachment #1.1: Type: text/plain, Size: 1 bytes --] [-- Attachment #1.2: Type: text/html, Size: 26 bytes --] [-- Attachment #2: Type: text/plain, Size: 48 bytes --] -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
[parent not found: <WC20111103170332.35000F@rsi-elektrotechnik.dedd a simple QML demo application [V2]>]
* [ptxdist] (no subject) [not found] <WC20111103170332.35000F@rsi-elektrotechnik.dedd a simple QML demo application [V2]> @ 2011-11-04 7:48 ` Josef Holzmayr 0 siblings, 0 replies; 34+ messages in thread From: Josef Holzmayr @ 2011-11-04 7:48 UTC (permalink / raw) To: ptxdist, jbe [-- Attachment #1: Type: text/plain, Size: 693 bytes --] No functional changes, just some smaller "beautifications": - Package brings own init scripts for sysv and systemd now - install_tree is used instead of find + install_copy - some dependencies have been added, expecially QT4_DECLARATIVE - squashed into one commit -- _____________________________________________________________ R-S-I Elektrotechnik GmbH & Co. KG Woelkestrasse 11 D-85301 Schweitenkirchen Fon: +49 8444 9204-0 Fax: +49 8444 9204-50 www.rsi-elektrotechnik.de _____________________________________________________________ Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363 Gesch�ftsf�hrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg USt-IdNr.: DE 128592548 [-- Attachment #2: Type: text/plain, Size: 48 bytes --] -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 34+ messages in thread
end of thread, other threads:[~2021-01-24 10:37 UTC | newest] Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-10-15 9:30 [ptxdist] (no subject) Alexander Dahl 2012-10-15 9:30 ` [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 Alexander Dahl 2012-10-15 11:04 ` Michael Olbrich 2012-10-15 9:30 ` [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Alexander Dahl 2012-10-15 11:07 ` Michael Olbrich 2012-10-15 12:35 ` Michael Olbrich 2012-10-15 10:15 ` [ptxdist] (no subject) Alexander Dahl -- strict thread matches above, loose matches on Subject: below -- 2021-01-24 10:36 flix.ptxdist 2018-12-11 7:41 [ptxdist] [PATCH 1/2] rules: polkit: Fix incorrect installation path Michael Olbrich 2018-12-17 8:26 ` [ptxdist] (no subject) Dold, Wolfram [not found] <829880836.3299556.1488275043753.ref@mail.yahoo.com> 2017-02-28 9:44 ` fredy zavis 2017-02-28 10:23 ` Juergen Borleis 2015-03-26 13:11 carsten.schlote 2015-04-02 16:22 ` Michael Olbrich 2015-02-21 23:07 Rüdiger, Christoph 2015-02-21 23:11 ` Jon Ringle 2015-02-21 23:29 ` Rüdiger, Christoph 2015-02-21 23:43 ` Rüdiger, Christoph 2015-02-22 9:38 ` Michael Olbrich 2015-02-22 19:17 ` Christoph Rüdiger 2015-02-22 23:38 ` Anders Montonen 2015-02-23 8:33 ` Michael Olbrich 2015-02-23 9:13 ` Rüdiger, Christoph 2015-02-23 11:24 ` Michael Olbrich 2015-02-24 21:28 ` Rüdiger, Christoph 2015-02-26 12:23 ` Michael Olbrich 2015-02-27 8:48 ` Rüdiger, Christoph 2015-02-27 9:06 ` Michael Olbrich 2015-02-27 9:24 ` Rüdiger, Christoph 2015-02-27 10:32 ` Juergen Borleis 2015-02-27 15:36 ` Michael Olbrich 2015-02-27 9:23 ` Juergen Borleis 2015-02-27 9:31 ` Rüdiger, Christoph 2012-04-26 19:41 Ali Beddah [not found] <WC20111103170332.35000F@rsi-elektrotechnik.dedd a simple QML demo application [V2]> 2011-11-04 7:48 ` Josef Holzmayr
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox