Public bug reported:

With the PF environment variable you should be able to build packages
with a different prefix than the standard "usr". However, with gcc-4.7
dpkg-buildpackage fails. Without the PF variable the build succeeds.

This is the command I'm using to build the packages.

$ DEB_BUILD_OPTIONS=nocheck PF='usr/local/ossf/gcc-$(GCC_VERSION)' dpkg-
buildpackage -rfakeroot -uc -us

The last couple of lines are:

mv debian/tmp/usr/local/ossf/gcc-4.7.3/lib32/libstdc++.a 
debian/tmp/usr/local/ossf/gcc-4.7.3/lib32/libsupc++.a 
debian/tmp/usr/local/ossf/gcc-4.7.3/lib/gcc/x86_64-linux-gnu/4.7/32/
rm -rf debian/lib32stdc++6-4.7-dev
dh_installdirs -plib32stdc++6-4.7-dev 
usr/local/ossf/gcc-4.7.3/lib/gcc/x86_64-linux-gnu/4.7/32
DH_COMPAT=2 dh_movefiles -plib32stdc++6-4.7-dev 
usr/local/ossf/gcc-4.7.3/lib/gcc/x86_64-linux-gnu/4.7/32/libstdc++.a 
usr/local/ossf/gcc-4.7.3/lib/gcc/x86_64-linux-gnu/4.7/32/libsupc++.a 
usr/local/ossf/gcc-4.7.3/include/x86_64-linux-gnu/c++/4.7/32
dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in use)
dh_movefiles: 
debian/tmp/usr/local/ossf/gcc-4.7.3/include/x86_64-linux-gnu/c++/4.7/32 not 
found (supposed to put it in lib32stdc++6-4.7-dev)
make[1]: *** [stamps/08-binary-stamp-lib32stdcxx-dev] Error 1
make[1]: Leaving directory `/loc/ossf-gcc/gcc-4.7-4.7.3'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

I'm guessing that there is a missing $(PF) somewhere(!) in the rules.

** Affects: gcc-4.7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1248522

Title:
  Buildpackage fails when using PF environment variable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1248522/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to