Your message dated Thu, 05 Apr 2012 18:02:10 +0000
with message-id <[email protected]>
and subject line Bug#667651: fixed in alien 8.87
has caused the Debian Bug report #667651,
regarding alien does not install deb postinst to fix perms from rpm conversion 
when rpm had no postinst
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
667651: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667651
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: alien
Version: 8.86

Alien has some logic that preserves special rpm owner/group/permissions
by putting them as shell commands in a debian postinst when called with 
--scripts 

However the current logic in the code never fires if the original rpm
did not have a postinst.

This is a dirty patch that creates an empty postinst in the RPM just so
that the deb converter can see the postinst and add its package perm
fixing commands to it.

You can apply the patch to see the difference, but the patch is just a
'get it work for me now' patch, not something that should be applied as
is in the main tree.

--- 
/tmp/g4-4428/cache/depot//production/tools/prodimage/lib/Alien/Package/Deb.pm#1 
     2012-04-05 07:46:23.000000000 -0700
+++ /home/merlin/src//production/tools/prodimage/lib/Alien/Package/Deb.pm       
 2012-04-05 08:17:38.979101000 -0700
@@ -448,6 +448,9 @@
                foreach my $script (qw{postinst postrm preinst prerm}) {
                        my $data=$this->$script();
                        next unless defined $data;
+                       # Skip empty scripts, like an empty postinst that 
+                       # didn't get any perm fix changes.
+                       next if $data eq '#!/bin/sh';
                        next if $data =~ m/^\s*$/;
                        open (OUT,">$dir/debian/$script") ||
                                die "$dir/debian/$script: $!";
--- 
/tmp/g4-4428/cache/depot//production/tools/prodimage/lib/Alien/Package/Rpm.pm#1 
     2012-04-05 07:46:23.000000000 -0700
+++ /home/merlin/src//production/tools/prodimage/lib/Alien/Package/Rpm.pm       
 2012-04-05 08:18:57.096166000 -0700
@@ -545,7 +545,16 @@
 }
 sub postinst {
        my $this=shift;
-       $this->_script_helper('postinst', @_);
+       # Force postinst generation so that debian chown/chmod
+       # conversion can happen. See Deb.pm.
+       if (not @_)
+       {
+           $this->_script_helper('postinst','#!/bin/sh');
+       }
+       else
+       {
+           $this->_script_helper('postinst', @_);
+       }
 }
 sub postrm {
        my $this=shift;

-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/



--- End Message ---
--- Begin Message ---
Source: alien
Source-Version: 8.87

We believe that the bug you reported is fixed in the latest version of
alien, which is due to be installed in the Debian FTP archive:

alien_8.87.dsc
  to main/a/alien/alien_8.87.dsc
alien_8.87.tar.gz
  to main/a/alien/alien_8.87.tar.gz
alien_8.87_all.deb
  to main/a/alien/alien_8.87_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <[email protected]> (supplier of updated alien package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 05 Apr 2012 13:53:29 -0400
Source: alien
Binary: alien
Architecture: source all
Version: 8.87
Distribution: unstable
Urgency: low
Maintainer: Joey Hess <[email protected]>
Changed-By: Joey Hess <[email protected]>
Description: 
 alien      - convert and install rpm and other packages
Closes: 667044 667651
Changes: 
 alien (8.87) unstable; urgency=low
 .
   * Use lsb-rpmbuild, not lsb-rpm. Closes: #667044
   * Fix adding of postinst script to deb, containing rpm permissions
     fixups code. Closes: #667651
Checksums-Sha1: 
 13942623c431851d57e93793dcdf37278bafe66c 1436 alien_8.87.dsc
 58efcee3cfe839baef8160d85b7a48abc7f7a3d8 64336 alien_8.87.tar.gz
 5f867886bc7c2b6b80386655ef3e7a877d89f0dc 85412 alien_8.87_all.deb
Checksums-Sha256: 
 50b727baca8fe3f0037315d92a7dc7169ebf9580245b5a53d13e0ec32a22f5a8 1436 
alien_8.87.dsc
 3f7c752eb2f949491708f8027ec846e3910d3b0c7012036b37a2681f01d99098 64336 
alien_8.87.tar.gz
 0b402e6fbb01deb07cc17197efb5a825d76add83c23998f6edf9d347944634c2 85412 
alien_8.87_all.deb
Files: 
 7f4ef1398f233c0cfe6a4030cfbddfe6 1436 admin optional alien_8.87.dsc
 dc05c4314edcaabdae2a1fd323b3ed90 64336 admin optional alien_8.87.tar.gz
 b54891b6d57c1de454639e67ecbe072c 85412 admin optional alien_8.87_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIVAwUBT33ccckQ2SIlEuPHAQgfzw/+KPDSizm6sA3YhOhjcQBlc17UOKf7V/I2
6EjJY0KRuj5nP8mahUH7zAU1HInlbqRulLdjgGN7fAMLaH9WaJL6DWjMHQM6h+8k
fMPivuFT4pQ0OENPRe2ADWQCc5p6m4nMpJjs0Y6HBKnyylVuXrsimI1h+hVguo+6
SDxVJW6SnMpvCxKiT5ctQ9hBYptDP94Uqyp/4Db7s/tYd+puuuBwWyPOhdA4plwM
2wHgY+zUJVgevleVMbnXWcz2JQWdjCaHIyjDmO2Hk/zQtJ7/wGauuLvMlSq/P/Bh
1drRkuLXHzayRpCpTV2yPs7RAudTC+tZc+C6/m5VQKCa0ixUgImXKjAsMCrUBB2S
w0mipiYBtpyeD3b9CycOhNbBrkgcK3SmELnzUbuhL4rcUhAolrNidQo4JnkrXn3X
ebugwkF26IXJ5qoEI6jwJgDyJz5W5l+NYTlcMhUCVZGwgF6LggpYOTUWQ1S7F0PZ
V53z2eVZa+iJ1hJYJ7Ad5aQJdttF7XUm7+uYJhjPDbvGHr88XVsdQAMEg+u9Bgh0
Gh8q7mFl72BpaYnN7y/uC2EojUtTvZHbXo7IfBr1tVqoumIyhQdssfMXt2a0+SKx
1sr9c9T1BQ6f5nEUhiVtMsMJBAFmzZu1eI195/jzaF0FMk5PL+D9srA5irtrUaHR
NoJbCyCTNQc=
=Ue39
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to