Public bug reported:

== PROBLEM ==

I recompiled apache2 with debug symbols and -linsturment-functions as
follows:

$ export DEB_BUILD_OPTIONS="debug nostrip"
$ export DEB_CFLAGS_APPEND="-finstrument-functions"
$ fakeroot apt-get source -b apache2

The creation of the deb files failed (this is part of the complete log):

[...]
make[1]: Entering directory `/src/apache2-2.2.22'
dh_strip --dbg-package=apache2-dbg -Napache2-dbg -Xusr/lib/apache2/mpm
set -e \
        if [ "Ubuntu" != "Ubuntu" ] && [ -n "" ] ; then \
                for i in worker prefork event itk; do \
                        MPM=usr/lib/apache2/mpm-$i/apache2 ;\
                        objcopy --only-keep-debug debian/build-tree/$i/apache2 \
                                debian/apache2-dbg/usr/lib/debug/$MPM-mpm-$i ;\
                        chmod 644 debian/apache2-dbg/usr/lib/debug/$MPM-mpm-$i 
;\
                        strip --remove-section=.comment --remove-section=.note 
--strip-unneeded \
                        debian/apache2.2-bin/$MPM ;\
                        objcopy 
--add-gnu-debuglink=debian/apache2-dbg/usr/lib/debug/$MPM-mpm-$i \
                                debian/apache2.2-bin/$MPM ;\
                        done ;\
        fi
make[1]: *** [override_dh_strip] Error 1
make[1]: Leaving directory `/src/apache2-2.2.22'
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Build command 'cd apache2-2.2.22 && dpkg-buildpackage -b -uc' failed.
NOTICE: 'apache2' packaging is maintained in the 'Bzr' version control system 
at:
http://code.launchpad.net/ubuntu/+source/apache2
Please use:
bzr branch http://code.launchpad.net/ubuntu/+source/apache2
to retrieve the latest (possibly unreleased) updates to the package.
Skipping already downloaded file 'apache2_2.2.22-1ubuntu1.4.dsc'
Skipping already downloaded file 'apache2_2.2.22.orig.tar.gz'
Skipping already downloaded file 'apache2_2.2.22-1ubuntu1.4.debian.tar.gz'
Need to get 0 B of source archives.
E: Child process failed


== FIX ==

By changing the debian/rules file line  277 from: 
277:   set -e \

to:
277:   set -e ;\

the problem is fixed.

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: nostrip

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in Ubuntu.
https://bugs.launchpad.net/bugs/1256721

Title:
  recompiling with nostrip fails due to a error in overwrite_dh_strip

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1256721/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to