[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#815247: kicad: FTBFS on kfreebsd, hurd: common/single_top.cpp:70:26: error: 'LIB_ENV_VAR' was not declared in this scope

tags 815247 + patch
user debian-bsd@lists.debian.org
usertags 815247 + kfreebsd


Andreas Beckmann wrote:
> kicad FTBFS on hurd-i386 and kfreebsd-i386, kfreebsd-amd64:
> [...]
> /«BUILDDIR»/kicad-4.0.2+dfsg1/common/single_top.cpp:70:26: error: 'LIB_ENV_VAR' was not declared in this scope
>      wxString    ld_path( LIB_ENV_VAR );

The attached patch could have been another way to fix this.

After that, I get to another error:
| -- Check for installed Python Interpreter -- found
| Traceback (most recent call last):
|   File "<string>", line 1, in <module>
| ImportError: No module named distutils.sysconfig
| CMake Error at CMakeLists.txt:637 (message):
|   Error occurred while attempting to find the Python site library path.

It could be that some dependency on my system is outdated but I don't
know what exactly.  Maybe it won't be a problem on the buildds with
up-to-date sid.

Complicating this, the error was silently ignored until it fails later

| cd build; export DESTDIR=/«BUILDDIR»/kicad-4.0.2+dfsg1/debian/tmp; make
| install
| make[2]: Entering directory '/«BUILDDIR»/kicad-4.0.2+dfsg1/build'
| make[2]: *** No rule to make target 'install'.  Stop.

The build system also enables -j4 in places without asking, and uses
"tee" which causes some buffering of stdout and creates its own buildlog
which isn't really needed.

Steven Chamberlain
Subject: support GNU libc platforms other than linux
From: Steven Chamberlain <steven@pyro.eu.org>
Date: Sun, 21 Feb 2016 15:47:37 +0000

LD_LIBRARY_PATH is used on all GNU libc platforms, not just Linux, but
GNU/kFreeBSD and GNU/Hurd also.

--- a/include/kiway.h
+++ b/include/kiway.h
@@ -114,7 +114,7 @@
 // be mangled.
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__)
  #define LIB_ENV_VAR    wxT( "LD_LIBRARY_PATH" )
 #elif defined(__WXMAC__)
  #define LIB_ENV_VAR    wxT( "DYLD_LIBRARY_PATH" )

Attachment: signature.asc
Description: Digital signature

Reply to: