Bug#541667: kde-style-qtcurve: FTBFS: error: missing terminating character

2009-12-23 Thread Cyril Brulebois
Pino Toscano p...@kde.org (22/12/2009):
 Excellent finding, I have prepared a patch that should make it build
 even with read-only home. Patch (with a bit longer explanation) is
 attached.  Looks working correctly here, feel free to give it a
 test.

Seems to be working fine indeed:
 - HOME=/doesnotexist debuild -B was okay.
 - HOME=/root debuild -B was okay (as normal user, so RO-home).

Thanks.

Mraw,
KiBi.


signature.asc
Description: Digital signature


Bug#541667: kde-style-qtcurve: FTBFS: error: missing terminating character

2009-12-22 Thread Pino Toscano
Hi,

Alle lunedì 7 dicembre 2009, Cyril Brulebois ha scritto:
 I believe I found the issue: config.h's line 6 is about prefix. As can
 
 be seen in a cowbuilder build log:
 | -- Found automoc4: /usr/bin/automoc4
 | ** PREFIX=/usr
 | -- Configuring done
 | -- Generating done
 
 while in a buildd build log:
 | -- Found automoc4: /usr/bin/automoc4
 | ** PREFIX=trying to create local folder /home/buildd: Permission denied
 | /usr
 | -- Configuring done
 | -- Generating done
 
 So I guess it might be the reason why we're then getting .h files that
 are fucked up, leading to a broken build afterwards.
 
 Trying to reproduce it on a porter box where the package otherwise
 
 builds fine, I can indeed trigger this FTBFS:
 | $ HOME=/foobar debuild -eHOME -B

Excellent finding, I have prepared a patch that should make it build even with 
read-only home. Patch (with a bit longer explanation) is attached.
Looks working correctly here, feel free to give it a test.

-- 
Pino Toscano
From: Pino Toscano p...@kde.org
Description: Disable braindead KDE3/4 prefix detection
 The current detection of the KDE 3 and KDE 4 prefixes is done running
 kde-config and kde4-config, resp.
 This can be problematic, as these two could create files in ~/.kde,
 thus breaking when the home of the current user (eg in buildds) is read-only.
 Given the build system sets anyway /usr as prefix of KDE 3 and KDE 4
 if they were not detected, then just let it to.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541667

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,11 @@
 set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL})
 include(CPack)
 
+# Comment the kde3/kde4 prefix detection as a whole as it wants to run
+# kde-config and kde4-config, which in turn can create stuff in ~/.kde.
+# This cannot work on read-only homes.
+# So, the fallback prefixes (/usr for both) will be used.
+if (BRAINDEAD_DETECTION)
 set(OLD_CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
 
 # Try to find kde4-config...
@@ -48,6 +53,7 @@
 ARGS --prefix
 OUTPUT_VARIABLE KDE4PREFIX)
 endif (KDE4_KDECONFIG_EXECUTABLE)
+endif (BRAINDEAD_DETECTION)
 
 if(NOT KDE3PREFIX)
 if(KDE4PREFIX)


signature.asc
Description: This is a digitally signed message part.


Bug#541667: kde-style-qtcurve: FTBFS: error: missing terminating character

2009-12-06 Thread Cyril Brulebois
Kurt Roeckx k...@roeckx.be (15/08/2009):
 Source: kde-style-qtcurve
 Version: 0.65.1-1
 Severity: serious

I believe I found the issue: config.h's line 6 is about prefix. As can
be seen in a cowbuilder build log:
| -- Found automoc4: /usr/bin/automoc4
| ** PREFIX=/usr
| -- Configuring done
| -- Generating done

while in a buildd build log:
| -- Found automoc4: /usr/bin/automoc4
| ** PREFIX=trying to create local folder /home/buildd: Permission denied
| /usr
| -- Configuring done
| -- Generating done

So I guess it might be the reason why we're then getting .h files that
are fucked up, leading to a broken build afterwards.


Trying to reproduce it on a porter box where the package otherwise
builds fine, I can indeed trigger this FTBFS:
| $ HOME=/foobar debuild -eHOME -B

Looking into the config.h file:
| #define KDE3PREFIXtrying to create local folder /foobar: Permission 
denied
| /usr
| #define KDE4PREFIXtrying to create local folder /foobar: Permission 
denied
| /usr

Mraw,
KiBi.


signature.asc
Description: Digital signature


Bug#541667: kde-style-qtcurve: FTBFS: error: missing terminating character

2009-08-15 Thread Kurt Roeckx
Source: kde-style-qtcurve
Version: 0.65.1-1
Severity: serious

Hi,

There was an error while trying to autobuild your package:

 Start Time: 20090815-1243

[...]

 Build-Depends: debhelper (= 7), cmake, pkg-kde-tools, kdelibs5-dev, 
 kdebase-workspace-dev, libx11-dev

[...]

 Toolchain package versions: libc6.1-dev_2.9-24 linux-libc-dev_2.6.30-5 
 g++-4.3_4.3.4-1+b1 gcc-4.3_4.3.4-1+b1 binutils_2.19.51.20090805-1 
 libstdc++6_4.4.1-2 libstdc++6-4.3-dev_4.3.4-1+b1
 

[...]

 [ 20%] Building CXX object 
 config/CMakeFiles/kstyle_qtcurve_config.dir/qtcurveconfig.o
 cd 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config
   /usr/bin/c++   -DMAKE_KSTYLE_QTCURVE_CONFIG_LIB -D_BSD_SOURCE 
 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII 
 -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -g -O2 -Wnon-virtual-dtor 
 -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W 
 -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common 
 -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden 
 -fvisibility-inlines-hidden -DNDEBUG -DQT_NO_DEBUG -fPIC 
 -I/build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config
  
 -I/build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config
  
 -I/build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1
  
 -I/build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir
  
 -I/build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/common
  -I/usr/include/
 KDE -I/usr/include/qt4/KDE -I/usr/include/qt4 -I/usr/include/qt4/phonon 
 -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit 
 -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant 
 -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest 
 -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtScript 
 -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql 
 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner 
 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui 
 -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt 
 -I/usr/share/qt4/mkspecs/default   -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o 
 CMakeFiles/kstyle_qtcurve_config.dir/qtcurveconfig.o -c 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.cpp
 In file included from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/common/common.h:30,
  from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.h:30,
  from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.cpp:21:
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:5:27:
  warning: missing terminating  character
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:6:5:
  warning: missing terminating  character
 In file included from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/common/common.h:30,
  from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.h:30,
  from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.cpp:21:
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:6:
  error: missing terminating  character
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:7:27:
  warning: missing terminating  character
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:8:5:
  warning: missing terminating  character
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:8:
  error: missing terminating  character
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/builddir/config.h:6:
  error: expected unqualified-id before '/' token
 In file included from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.h:30,
  from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.cpp:21:
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/common/common.h:62:
  error: expected constructor, destructor, or type conversion before ';' token
 In file included from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.h:30,
  from 
 /build/buildd-kde-style-qtcurve_0.65.1-1-alpha-XCzBRO/kde-style-qtcurve-0.65.1/config/qtcurveconfig.cpp:21: