Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libgeotiff: fix build without C++
@ 2019-02-03 22:35 Fabrice Fontaine
  2019-02-04  9:50 ` Thomas Petazzoni
  2019-02-18 16:08 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-02-03 22:35 UTC (permalink / raw)
  To: buildroot

Do not check for C++ compiler as libgeotiff is written in C otherwise
build will fail on toolchains without a working C++ compiler:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in
`/data/buildroot/buildroot-test/instance-1/output/build/libgeotiff-1.4.2':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

Fixes:
 - http://autobuild.buildroot.org/results/72f1c5c1b8fc337a1cff4b280abe99afd65f945b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...ibgeotiff-configure.ac-do-not-check-for-C.patch | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 package/libgeotiff/0003-libgeotiff-configure.ac-do-not-check-for-C.patch

diff --git a/package/libgeotiff/0003-libgeotiff-configure.ac-do-not-check-for-C.patch b/package/libgeotiff/0003-libgeotiff-configure.ac-do-not-check-for-C.patch
new file mode 100644
index 0000000000..68082dd023
--- /dev/null
+++ b/package/libgeotiff/0003-libgeotiff-configure.ac-do-not-check-for-C.patch
@@ -0,0 +1,65 @@
+From edc9ec69b43c27955ee4f24db2e6808bb1a8974d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 3 Feb 2019 23:20:43 +0100
+Subject: [PATCH] libgeotiff/configure.ac: do not check for C++
+
+Do not check for C++ compiler as libgeotiff is written in C otherwise
+build will fail on toolchains without a working C++ compiler:
+
+checking how to run the C++ preprocessor... /lib/cpp
+configure: error: in `/data/buildroot/buildroot-test/instance-1/output/build/libgeotiff-1.4.2':
+configure: error: C++ preprocessor "/lib/cpp" fails sanity check
+
+Fixes:
+ - http://autobuild.buildroot.org/results/72f1c5c1b8fc337a1cff4b280abe99afd65f945b
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/OSGeo/libgeotiff/pull/9]
+---
+ libgeotiff/configure.ac | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index a334416..4ebbd6f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,8 +25,6 @@ dnl #########################################################################
+ AM_INIT_AUTOMAKE
+ AM_MAINTAINER_MODE
+ AC_PROG_CC
+-AC_PROG_CXX
+-AC_PROG_CXXCPP
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+@@ -46,7 +44,6 @@ dnl #########################################################################
+ m4_define([debug_default],[no])
+ 
+ CFLAGS="$CFLAGS"
+-CXXFLAGS="$CXXFLAGS"
+ 
+ dnl We want to honor the users wishes with regard to linking.
+ LIBS="$LDFLAGS $LIBS"
+@@ -82,11 +79,9 @@ AC_MSG_CHECKING([for debug enabled])
+ 
+ if test "x$enable_debug" = "xyes"; then
+     CFLAGS="$CFLAGS -g -DDEBUG -Wall"
+-    CXXFLAGS="$CXXFLAGS -g -DDEBUG -Wall"
+     AC_MSG_RESULT(yes)
+ else
+     CFLAGS="$CFLAGS -O3 -DNDEBUG"
+-    CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG"
+     AC_MSG_RESULT(no)
+ fi
+ 
+@@ -367,7 +362,6 @@ LOC_MSG()
+ LOC_MSG([  Version..................: ${RELEASE_VERSION}])
+ LOC_MSG([  Installation directory...: ${prefix}])
+ LOC_MSG([  C compiler...............: ${CC} ${CFLAGS}])
+-LOC_MSG([  C++ compiler.............: ${CXX} ${CXXFLAGS}])
+ 
+ LOC_MSG([  Debugging support........: ${enable_debug}])
+ LOC_MSG()
+-- 
+2.14.1
+
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] libgeotiff: fix build without C++
  2019-02-03 22:35 [Buildroot] [PATCH 1/1] libgeotiff: fix build without C++ Fabrice Fontaine
@ 2019-02-04  9:50 ` Thomas Petazzoni
  2019-02-18 16:08 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-02-04  9:50 UTC (permalink / raw)
  To: buildroot

On Sun,  3 Feb 2019 23:35:24 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Do not check for C++ compiler as libgeotiff is written in C otherwise
> build will fail on toolchains without a working C++ compiler:
> 
> checking how to run the C++ preprocessor... /lib/cpp
> configure: error: in
> `/data/buildroot/buildroot-test/instance-1/output/build/libgeotiff-1.4.2':
> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/72f1c5c1b8fc337a1cff4b280abe99afd65f945b
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...ibgeotiff-configure.ac-do-not-check-for-C.patch | 65 ++++++++++++++++++++++
>  1 file changed, 65 insertions(+)
>  create mode 100644 package/libgeotiff/0003-libgeotiff-configure.ac-do-not-check-for-C.patch

Applied to master, thanks. Please use "package/<foo>" as package prefix
for commit titles.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] libgeotiff: fix build without C++
  2019-02-03 22:35 [Buildroot] [PATCH 1/1] libgeotiff: fix build without C++ Fabrice Fontaine
  2019-02-04  9:50 ` Thomas Petazzoni
@ 2019-02-18 16:08 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-02-18 16:08 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Do not check for C++ compiler as libgeotiff is written in C otherwise
 > build will fail on toolchains without a working C++ compiler:

 > checking how to run the C++ preprocessor... /lib/cpp
 > configure: error: in
 > `/data/buildroot/buildroot-test/instance-1/output/build/libgeotiff-1.4.2':
 > configure: error: C++ preprocessor "/lib/cpp" fails sanity check

 > Fixes:
 >  - http://autobuild.buildroot.org/results/72f1c5c1b8fc337a1cff4b280abe99afd65f945b

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2018.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-18 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-03 22:35 [Buildroot] [PATCH 1/1] libgeotiff: fix build without C++ Fabrice Fontaine
2019-02-04  9:50 ` Thomas Petazzoni
2019-02-18 16:08 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox