med-xpi-pack breaks INPUT directory

Bug #452422 reported by UNera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mozilla-devscripts
Fix Released
Undecided
Saša Bodiroža
mozilla-devscripts (Debian)
Fix Released
Unknown

Bug Description

It is a copy of bugreport from debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551065

If we have easy unpacked (unzipped) xpi which contains jar-file, the
command
 med-xpi-pack unpacked-dir.xpi creating.xpi

will unpack and delete jars in INPUT directory. So input data will be
broken.

Related branches

Saša Bodiroža (jazzva)
Changed in mozilla-devscripts:
assignee: nobody → Saša Bodiroža (jazzva)
status: New → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

debian bug is 551065 .... its marked as grave.

Revision history for this message
Saša Bodiroža (jazzva) wrote : Re: [Bug 452422] Re: med-xpi-pack breaks INPUT directory

On Wed, Oct 21, 2009 at 10:28 AM, Alexander Sack <email address hidden> wrote:
> debian bug is 551065 .... its marked as grave.

I'll submit a fix later this day and ask for your review. The idea I
had in mind is to keep a list of created jars and then to unpack and
remove only them. Sorry for the delay.

--
Best regards,
Saša Bodiroža

Changed in mozilla-devscripts (Debian):
status: Unknown → Confirmed
Revision history for this message
UNera (unera) wrote :

Additional infos:

If there is a package which is built without m-d, which has structure
like an unzipped xpi and added directory debian/, then if we could
rebuild it with m-d, then all jars would be unpacked too.
So we are forced to make repackaging orig.tar.gz.

For exampe package http://packages.qa.debian.org/i/itsalltext.html
has many jars in its build tree.

Revision history for this message
Saša Bodiroža (jazzva) wrote :

The proposed fix keeps track of the jar files, which were produced in med-xpi-pack, and at the end unpacks and removes only those jar files. This keeps intact unpacked jar files, which existed before the call of med-xpi-pack.

Revision history for this message
UNera (unera) wrote :

We have package which has orig.tgz which has already uploaded into debian/repositaries.
We don't want to make its rebuilding. It would be nice if m-d could disable unpacking jar mode.

Revision history for this message
Saša Bodiroža (jazzva) wrote :

I don't think you will need to rebuild a package.

If you unpack a xpi file with med-xpi-unpack, it will also unpack jar files. med-xpi-pack will later pack those unpacked jar files, before adding them to xpi file.

If you already have easy unpacked xpi file, the new med-xpi-pack will add the jar files to xpi file, but won't remove them afterwards, so I think that will fix this bug.

Revision history for this message
Saša Bodiroža (jazzva) wrote :

Proposed fix is committed to lp:mozilla-devscripts branch.

Changed in mozilla-devscripts:
status: Confirmed → Fix Committed
Benjamin Drung (bdrung)
Changed in mozilla-devscripts:
status: Fix Committed → Fix Released
Changed in mozilla-devscripts (Debian):
status: Confirmed → 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.