Merge lp:~tormodvolden/ubuntu/lucid/pkg-create-dbgsym/doublestrip into lp:pkg-create-dbgsym

Proposed by Tormod Volden
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~tormodvolden/ubuntu/lucid/pkg-create-dbgsym/doublestrip
Merge into: lp:pkg-create-dbgsym
Diff against target: 28 lines (+10/-0)
2 files modified
debian/changelog (+8/-0)
pkg_create_dbgsym (+2/-0)
To merge this branch: bzr merge lp:~tormodvolden/ubuntu/lucid/pkg-create-dbgsym/doublestrip
Reviewer Review Type Date Requested Status
Martin Pitt Needs Fixing
Review via email: mp+23880@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

This looks good, thanks! I'll add a test case first, and then merge this.

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

Ah, unfortunately this check isn't sufficient -- it will still cause a rebuild of the ddeb packages, which breaks their control fields (see failure of the test suite when this is merged). I'll figure this out, don't worry.

review: Needs Fixing
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I think a good test case would be the xserver variant:
dh_strip --debug-package=something-dbg
dh_strip -s --remaining_packages

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I haven't checked but I thought it would / think it should not build ddeb packages if it could not find a file to strip.

Revision history for this message
Martin Pitt (pitti) wrote :

Tormod Volden [2010-04-22 7:48 -0000]:
> I haven't checked but I thought it would / think it should not build
> ddeb packages if it could not find a file to strip.

Right, that's what I'm implementing now.

Revision history for this message
Martin Pitt (pitti) wrote :

Hm, I couldn't get it to work reliably with an approach like this. I now committed a check based on the existence of the ddeb in debian/files, which passes all tests and fixes this bug.

Unmerged revisions

177. By Tormod Volden

add changelog entry

176. By Tormod Volden

do not strip an already stripped file

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-04-20 09:01:45 +0000
3+++ debian/changelog 2010-04-21 20:49:15 +0000
4@@ -1,3 +1,11 @@
5+pkg-create-dbgsym (0.42) lucid; urgency=low
6+
7+ * Do not strip a binary which for any reason is already stripped.
8+ It will make a useless debug file, potentially overwriting
9+ a good one, and also overwrite the debug link. (LP: 562418)
10+
11+ -- Tormod Volden <debian.tormod@gmail.com> Wed, 21 Apr 2010 21:29:51 +0200
12+
13 pkg-create-dbgsym (0.41) lucid; urgency=low
14
15 * tests/dhtest.dbg2: Add a new package dhtest2-extra which we exclude from
16
17=== modified file 'pkg_create_dbgsym'
18--- pkg_create_dbgsym 2010-01-14 15:33:25 +0000
19+++ pkg_create_dbgsym 2010-04-21 20:49:15 +0000
20@@ -73,6 +73,8 @@
21 if [ -n "$blacklist" ]; then
22 if echo "$f" | fgrep -q "$blacklist"; then continue; fi
23 fi
24+ # ignore already stripped files
25+ file "$f" | grep -q "not stripped" || continue
26
27 mkdir -p $dp/usr/lib/debug/`dirname "$f"`
28 objcopy --only-keep-debug "$f" "$dp/usr/lib/debug/$f" || {

Subscribers

People subscribed via source and target branches

to all changes: