--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: qt3-dev-tools: qmake produces bad install rules
- From: Jan Niehusmann <jan@debian.org>
- Date: Sat, 8 Feb 2003 13:35:15 +0100
- Message-id: <20030208123515.GA8502@gondor.com>
Package: qt3-dev-tools
Version: 3:3.1.1-2
Severity: normal
While building the psi package, I noticed the follwing bad behaviour:
Depending on the location of the source directory, qmake sometimes
creates a Makefile with bad install rules. To illustrate the problem, I
stripped down the psi.pro file:
-------------------- snip --------------------
# Configuration
CONFIG += qt thread
# Executable name
TARGET = psi
target.path=/usr/bin
INSTALLS = target
-------------------- snip --------------------
If I put this in /tmp and run
QMAKESPEC=linux-g++ qmake psi.pro
I get the follwing:
install_target:
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/bin/
$(DEL_FILE) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
-$(COPY) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
-strip "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
But if I run the same command with psi.pro somewhere below /usr (for
example /usr/src/...), qmake tries to use relative paths, with bad
results:
install_target:
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)../../bin/ || $(MKDIR) $(INSTALL_ROOT)../../bin/
$(DEL_FILE) "$(INSTALL_ROOT)../../bin/$(QMAKE_TARGET)"
-$(COPY) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)../../bin/$(QMAKE_TARGET)"
-strip "$(INSTALL_ROOT)../../bin/$(QMAKE_TARGET)"
This is crap if I want to use the INSTALL_ROOT variable.
Jan
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux sirith 2.4.21-pre2 #1 Sun Jan 5 14:45:05 CET 2003 i686
Locale: LANG=C, LC_CTYPE=de_DE@euro
Versions of packages qt3-dev-tools depends on:
ii libc6 2.3.1-11 GNU C Library: Shared libraries an
ii libfreetype6 2.1.3-9 FreeType 2 font engine, shared lib
ii libgcc1 1:3.2.2-1 GCC support library
ii libpng12-0 1.2.5-10 PNG library - runtime
ii libqt3c102-mt 3:3.1.1-2 Qt GUI Library (Threaded runtime v
ii libstdc++5 1:3.2.2-1 The GNU Standard C++ Library v3
ii libxft2 2.1-7 advanced font drawing library for
ii xlibmesa3-gl [libgl1] 4.2.1-5 Mesa 3D graphics library [XFree86]
ii xlibs 4.2.1-5 X Window System client libraries
ii zlib1g 1:1.1.4-9 compression library - runtime
-- no debconf information
--- End Message ---