By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2485 - Build issue: tqmake converts absolute path to relative path (FTBFS in TQCA)
Summary: Build issue: tqmake converts absolute path to relative path (FTBFS in TQCA)
Status: RESOLVED WONTFIX
Alias: None
Product: TDE
Classification: Unclassified
Component: non-core programs (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2015-07-24 13:39 CDT by Francois Andriot
Modified: 2018-08-03 22:14 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Andriot 2015-07-24 13:39:30 CDT
Hello, this is a problem that is only visible in particular RPM package build environment.
In my case, it is Centos 5 distribution used under Open Build Service.

The RPM package build process occurs under directory "/usr/src/redhat/build/<package name>/", e.g. "/usr/src/redhat/build/tqca-14.0.1/" in my example.

The "./configure" script for this package invokes a "tqmake" command to generate a Makefile from the "qca.pro" file.

I simply run command:
  ./configure  --prefix=/usr  --qtdir=/usr --debug

Expected result: the various "install" targets in Makefile should refer to "/usr" directory, as specified on the command line.

Actual result: the "install" targets refer to "../../../.." directory, which is actually the relative path from "/usr/src/redhat/build/tqca-14.0.1" to "/usr".

E.g, when I expect to have something in Makefile like:
  $(INSTALL_FILE) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib/$(TARGET)"
I have instead:
  $(INSTALL_FILE) "$(TARGET)" "$(INSTALL_ROOT)../../../../lib/$(TARGET)"


Then, when I run the commands:
  make
  make install INSTALL_ROOT="/usr/src/redhat/BUILDROOT/tqca-14.0.1"

the "install" target fails because the target directory is invalid.

This does NOT occur when the build directory is located anywhere outside "/usr" folder, which happens on all other distributions.

I'm not sure if that absolute-to-relative path conversion in tqmake is normal or not. But it causes FTBFS in this particular case.
Comment 1 Michele Calgaro 2018-08-03 10:49:24 CDT
Francois, what is the status of this bug?
Comment 2 Francois Andriot 2018-08-03 12:57:39 CDT
Hello, the CentOS 5 distribution is now obsolete, so this problem does not need fixing.
Comment 3 Michele Calgaro 2018-08-03 22:14:07 CDT
Thanks