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

Bug#180240: marked as done (qt3-dev-tools: qmake produces bad install rules)



Your message dated Fri, 12 May 2006 10:59:53 -0400
with message-id <200605121059.54230.chrsmrtn@debian.org>
and subject line qt3-dev-tools: qmake produces bad install rules
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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 ---
--- Begin Message ---
As this is deliberate behaviour and has a work-around, closing.

--- End Message ---

Reply to: