Must not create translation tarballs for partner component

Bug #133822 reported by Martin Pitt
6
Affects Status Importance Assigned to Milestone
pkgbinarymangler (Ubuntu)
Fix Released
High
Unassigned
Dapper
Invalid
Undecided
Unassigned
Edgy
Fix Released
High
Martin Pitt
Feisty
Fix Released
High
Martin Pitt
pkgstriptranslations (Ubuntu)
Invalid
Undecided
Unassigned
Dapper
Fix Released
High
Martin Pitt
Edgy
Invalid
Undecided
Unassigned
Feisty
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: pkgbinarymangler

pkgstriptranslations currently creates translation tarballs for packages in the partner section, too. Uploading those does not work, because the translation tarballs go to the 'main' soyuz archive (raw-translations special handling).

Also it is desirable to not alter maintainer fields for partner packages, so pkgmaintainermangler should be silenced for partner packages, too.

Thus, pkgbinarymangler should be inactive for all packages which go to the partner repo. These packages are guaranteed to specify the 'partner' section in debian/control, like

  Section: partner/web

This has recently been fixed in gutsy, but needs to be done for stables as well, since we will soon have partner repos for those, too.

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

Gutsy got fixed yesterday:

 pkgbinarymangler (43) gutsy; urgency=low
 .
   * dpkg-deb: Do not do anything for commercial packages.

Changed in pkgbinarymangler:
importance: Undecided → High
status: New → Fix Released
assignee: nobody → pitti
importance: Undecided → High
assignee: nobody → pitti
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote :

This is the debdiff used for Gutsy. It works for dapper to feisty, too.

It's pretty simple: When debian/control puts a package into Section: commercial/..., it implicitly enables $NO_PKG_MANGLE, which is a proven way to disable any pkgbinarymangler magic.

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

Reproduction recipe:

* Install pkgbinarymangler
* Set "enable=true" in /etc/pkgbinarymangler/striptranslations.conf
* Build a package with "Section: commercial/web" (or a different section, doesn't matter)
* With current package, you'll get a _translations.tar.gz.
* With updated package you will not get a translation tarball, and a debugging note that binary mangling is disabled.

Martin Pitt (pitti)
Changed in pkgbinarymangler:
status: New → Invalid
Changed in pkgstriptranslations:
status: New → Invalid
status: New → Invalid
assignee: nobody → pitti
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote :

debdiff for Feisty, for completeness, and because the gutsy debdiff does not apply automatically. This works cleanly for edgy and dapper, too (except for the changelog, of course).

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

All packages uploaded, but I want to wait for Colin's approval until I actually approve them.

Revision history for this message
Colin Watson (cjwatson) wrote :

Accepted into {dapper,edgy,feisty}-proposed.

Changed in pkgbinarymangler:
status: New → Fix Committed
status: New → Fix Committed
Changed in pkgstriptranslations:
status: New → Fix Committed
Martin Pitt (pitti)
Changed in pkgstriptranslations:
status: New → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

pkgbinarymangler (39.1) feisty-proposed; urgency=low

  * dpkg-deb: Do not do anything for commercial packages. (LP: #133822)

 -- Martin Pitt <email address hidden> Tue, 21 Aug 2007 12:35:31 +0200

Changed in pkgbinarymangler:
status: Fix Committed → Fix Released
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

This is the error I am getting when testing feisty:

INFO: Disabling pkgbinarymangler for commercial packages
WARNING: not running pkgbinarymangler for this package, as requested
dpkg-deb: building package `realplay' in `../realplay_10.0.9-0feisty1_i386.deb'.
 dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
dpkg-genchanges: failure: cannot open upload file ../realplay_10.0.9-0feisty1_i386_translations.tar.gz for reading: No such file or directory
fabbione@feisty-commercial:~/realplay-10.0.9$ echo $?
2

Martin Pitt (pitti)
Changed in pkgbinarymangler:
status: Fix Released → Fix Committed
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

nevermind the last comment. it's all good.. in feisty

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

For the record, above error with realplay comes from the fact that it uses "dh_clean -k" instead of "dh_clean" in debian/rules. That should be fixed, but has nothing to do with this SRU.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Edgy is also good...

Fabio

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

dapper is also good..

Fabio

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

Thanks, Fabio, for the testing. I mark this as verification-done. This can go into -updates on August 28.

Revision history for this message
Colin Watson (cjwatson) wrote :

Copied to {dapper,edgy,feisty}-updates.

Changed in pkgstriptranslations:
status: Fix Committed → Fix Released
Changed in pkgbinarymangler:
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

commercial archive has been renamed and this bug needs to be updated.

Changed in pkgbinarymangler:
status: Fix Released → In Progress
status: Fix Released → In Progress
Changed in pkgstriptranslations:
status: Fix Released → In Progress
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Gutsy debdiff.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :
Changed in pkgbinarymangler:
status: In Progress → Fix Committed
status: In Progress → Fix Committed
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :
Changed in pkgstriptranslations:
status: In Progress → Fix Committed
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :
description: updated
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

feisty tested again on Martin request and it is working as expected.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

edgy tested again on Martin request and it is working as expected.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

dapper tested again on Martin request and it is working as expected.

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

Accepted into {dapper,edgy,feisty}-updates.

Changed in pkgbinarymangler:
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Changed in pkgstriptranslations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.