On Mon, Feb 12, 2018 at 01:01:28PM +0500, Andrey Rahmatullin wrote:
> On Sun, Feb 11, 2018 at 06:51:45PM +0100, Andreas Tille wrote:
> > I'm currently mentoring Cédric Lood to package bandage[1].
> > Unfortunately we both failed to get the package building inside
> > a pbuilder chroot while it builds on Cédric's local machine.
> You could show the error...

Sorry, I was a bit to short.

> This is what I get (locally too):
> 
> dh_auto_configure
>         qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 
> -fdebug-prefix-map=/home/wrar/tmp/bandage=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" 
> "QMAKE_CFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/home/wrar/tmp/bandage=. 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 
> -fdebug-prefix-map=/home/wrar/tmp/bandage=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" 
> "QMAKE_CXXFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/home/wrar/tmp/bandage=. 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2" QMAKE_LFLAGS_RELEASE=-Wl,-z,relro 
> QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: PREFIX=/usr
> Usage: /usr/lib/qt5/bin/qmake [mode] [options] [files]
> 
> Doesn't look like something that can be fixed with B-D. If that's the
> whole command it's truncated.

That's the case here as well.  If I do


diff --git a/debian/rules b/debian/rules
index a8d5a44..f71a7aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ include /usr/share/dpkg/default.mk
 # for hardening you might like to uncomment this:
 # export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-export QT_SELECT = qt5
+#export QT_SELECT = qt5
 %:
        dh $@


than it turns to:

   dh_auto_configure
        qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 
-fdebug-prefix-map=/build/bandage-0.8.1=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g 
-O2 -fdebug-prefix-map=/build/bandage-0.8.1=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" 
"QMAKE_CXXFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/build/bandage-0.8.1=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 
-fdebug-prefix-map=/build/bandage-0.8.1=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" 
QMAKE_LFLAGS_RELEASE=-Wl,-z,relro QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: 
PREFIX=/usr
qmake: could not find a Qt installation of ''
dh_auto_configure: qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 
-fdebug-prefix-map=/build/bandage-0.8.1=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g 
-O2 -fdebug-prefix-map=/build/bandage-0.8.1=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" 
"QMAKE_CXXFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/build/bandage-0.8.1=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 
-fdebug-prefix-map=/build/bandage-0.8.1=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" 
QMAKE_LFLAGS_RELEASE=-Wl,-z,relro QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: 
PREFIX=/usr returned exit code 1


I once have "learned a lesson" in previous cases when I had this
incredibly useless message

  qmake: could not find a Qt installation of ''                                 
                                                                                
                               
That

  export QT_SELECT = qt5

helps - but in this case it don't.  I admit I'm totally clueless with
these Qt programs and I keep on wondering what the trick might be to get
the right Build-Depends.

> > [1] https://salsa.debian.org/med-team/bandage
> Also, you haven't pushed the upstream tag.

Thanks - Cédric pushed tags.

Thanks a lot for your patience

      Andreas.

-- 
http://fam-tille.de

Reply via email to