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

Summary: Build issue: tqmake converts absolute path to relative path (FTBFS in TQCA)
Product: TDE Reporter: Francois Andriot <albator78>
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED WONTFIX    
Severity: normal CC: albator78, bugwatch, michele.calgaro
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:

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