Bug#279484: Bug#279483: Fix and NMU

2005-03-08 Thread Javier Fernández-Sanguino Peña

On Tue, Mar 08, 2005 at 09:00:34AM -0500, Justin Pryzby wrote:
 On Tue, Mar 08, 2005 at 10:22:54AM +0100, Javier Fernández-Sanguino Peña 
 wrote:
  tags 279483 patch pending
  thanks 
  
  The attached patch should fix this, I'm making a NMU upload as this RC bug 
  has been over 4 months unanswered.
 Same as #279484 (susv2).  Are you planning on NMU that too?  BTW; I
 talked to the maintainer Jan 13, 2005, and he indicated that he hoped
 to upload shortly (but appears to have been bitten by Real Life).

I was not aware of it, but now that I see it I will fix with the attached 
patch.

Regards

Javier
diff -Nru susv2-1/debian/changelog susv2-1.1/debian/changelog
--- susv2-1/debian/changelog2004-10-26 23:55:44.0 +0200
+++ susv2-1.1/debian/changelog  2005-03-08 16:19:55.0 +0100
@@ -1,3 +1,13 @@
+susv2 (1.1) unstable; urgency=low
+
+  * NMU. 0-day as this is a rather easy fix and there has been no response
+from the maintainer since this was brought up 4 months ago.
+  * Do not preserve ownership or users when untarring the downloaded files
+by using --no-same-owner --no-same-permissions
+   (Closes: #279484)
+
+ -- Javier Fernandez-Sanguino Pen~a [EMAIL PROTECTED]  Tue,  8 Mar 2005 
16:19:20 +0100
+
 susv2 (1) unstable; urgency=low
 
   * Initial release (Closes: #274956)
diff -Nru susv2-1/debian/files susv2-1.1/debian/files
--- susv2-1/debian/files1970-01-01 01:00:00.0 +0100
+++ susv2-1.1/debian/files  2005-03-08 16:22:04.0 +0100
@@ -0,0 +1 @@
+susv2_1.1_all.deb contrib/doc extra
diff -Nru susv2-1/debian/postinst susv2-1.1/debian/postinst
--- susv2-1/debian/postinst 2003-12-18 17:02:25.0 +0100
+++ susv2-1.1/debian/postinst   2005-03-08 16:21:58.0 +0100
@@ -7,7 +7,7 @@
 echo Fetching file...
 wget -P $TMPDIR 
http://www.opengroup.org/onlinepubs/007908799/download/susv2.tar.bz2
 echo Untaring...
-bunzip2 -cd $TMPDIR/susv2.tar.bz2 | tar xf - -C /usr/share/doc/susv2
+bunzip2 -cd $TMPDIR/susv2.tar.bz2 | tar xf - -C /usr/share/doc/susv2 
--no-same-permissions --no-same-owner
 
 rm -rf $TMPDIR
 
diff -Nru susv2-1/debian/susv2/DEBIAN/control 
susv2-1.1/debian/susv2/DEBIAN/control
--- susv2-1/debian/susv2/DEBIAN/control 1970-01-01 01:00:00.0 +0100
+++ susv2-1.1/debian/susv2/DEBIAN/control   2005-03-08 16:22:04.0 
+0100
@@ -0,0 +1,12 @@
+Package: susv2
+Version: 1.1
+Section: contrib/doc
+Priority: extra
+Architecture: all
+Depends: wget, bzip2
+Installed-Size: 48
+Maintainer: Jeff Bailey [EMAIL PROTECTED]
+Description: Fetch and install SUSv2 documentation
+ The Single Unix Specifications are not permitted to be generally
+ redistributed, so this is an installer that fetches them and installs
+ them in a Debian appropriate way.
diff -Nru susv2-1/debian/susv2/DEBIAN/md5sums 
susv2-1.1/debian/susv2/DEBIAN/md5sums
--- susv2-1/debian/susv2/DEBIAN/md5sums 1970-01-01 01:00:00.0 +0100
+++ susv2-1.1/debian/susv2/DEBIAN/md5sums   2005-03-08 16:22:04.0 
+0100
@@ -0,0 +1,3 @@
+44a0ac8bc9ebad239546f5135ee7baae  usr/share/doc/susv2/copyright
+ba3166e16ff3fb8f5ffafa16f5c4639f  usr/share/doc/susv2/changelog.gz
+21eff40c006987ecaf747ddff5430d46  usr/share/doc-base/susv2
diff -Nru susv2-1/debian/susv2/DEBIAN/postinst 
susv2-1.1/debian/susv2/DEBIAN/postinst
--- susv2-1/debian/susv2/DEBIAN/postinst1970-01-01 01:00:00.0 
+0100
+++ susv2-1.1/debian/susv2/DEBIAN/postinst  2005-03-08 16:22:04.0 
+0100
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+TMPDIR=$(mktemp -td) || exit 1
+
+echo Fetching file...
+wget -P $TMPDIR 
http://www.opengroup.org/onlinepubs/007908799/download/susv2.tar.bz2
+echo Untaring...
+bunzip2 -cd $TMPDIR/susv2.tar.bz2 | tar xf - -C /usr/share/doc/susv2 
--no-same-permissions --no-same-owner
+
+rm -rf $TMPDIR
+
+## Note: Keep debhelper token after so that files exist when they're being
+## registered.
+
+# Automatically added by dh_installdocs
+if [ $1 = configure ]  which install-docs /dev/null 21; then
+   install-docs -i /usr/share/doc-base/susv2
+fi
+# End automatically added section
+
diff -Nru susv2-1/debian/susv2/DEBIAN/prerm susv2-1.1/debian/susv2/DEBIAN/prerm
--- susv2-1/debian/susv2/DEBIAN/prerm   1970-01-01 01:00:00.0 +0100
+++ susv2-1.1/debian/susv2/DEBIAN/prerm 2005-03-08 16:22:04.0 +0100
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# Automatically added by dh_installdocs
+if [ $1 = remove ] || [ $1 = upgrade ]  \
+   which install-docs /dev/null 21; then
+   install-docs -r susv2
+fi
+# End automatically added section
+
+
+## Note:  Keep debhelper token before so that this package behaves
+## like other packages - The files should still exist when the debhelper
+## bits runs.
+
+rm -rf /usr/share/doc/susv2/susv2
+
Los ficheros binarios susv2-1/debian/susv2/usr/share/doc/susv2/changelog.gz y 
susv2-1.1/debian/susv2/usr/share/doc/susv2/changelog.gz son distintos
diff -Nru susv2-1/debian/susv2/usr/share/doc/susv2/copyright 

Bug#279484: Bug#279483: Fix and NMU

2005-03-08 Thread Justin Pryzby
On Tue, Mar 08, 2005 at 04:25:09PM +0100, Javier Fernández-Sanguino Peña wrote:
 On Tue, Mar 08, 2005 at 09:00:34AM -0500, Justin Pryzby wrote:
  On Tue, Mar 08, 2005 at 10:22:54AM +0100, Javier Fernández-Sanguino Peña 
  wrote:
   tags 279483 patch pending
   thanks 
   
   The attached patch should fix this, I'm making a NMU upload as this RC 
   bug 
   has been over 4 months unanswered.
  Same as #279484 (susv2).  Are you planning on NMU that too?  BTW; I
  talked to the maintainer Jan 13, 2005, and he indicated that he hoped
  to upload shortly (but appears to have been bitten by Real Life).
 
 I was not aware of it, but now that I see it I will fix with the attached 
 patch.
Okay.  FYI it appears that dh_clean was not called, as your patch
includes things I would not expect (and which were not present in the
other patch), such as DEBIAN/ and debian/files.  I'm not familiar with
cdbs, so I'm not going to try to debug it.

Justin



Bug#279484: Bug#279483: Fix and NMU

2005-03-08 Thread Javier Fernández-Sanguino Peña
On Tue, Mar 08, 2005 at 11:06:28AM -0500, Justin Pryzby wrote:
 Okay.  FYI it appears that dh_clean was not called, as your patch
 includes things I would not expect (and which were not present in the
 other patch), such as DEBIAN/ and debian/files.  I'm not familiar with
 cdbs, so I'm not going to try to debug it.

Don't try, it's actually because I run the diff while the package was 
building. The attached diff is the correct one.

Regards

Javier
diff -Nru susv2-1/debian/changelog susv2-1.1/debian/changelog
--- susv2-1/debian/changelog2004-10-26 23:55:44.0 +0200
+++ susv2-1.1/debian/changelog  2005-03-08 16:19:55.0 +0100
@@ -1,3 +1,13 @@
+susv2 (1.1) unstable; urgency=low
+
+  * NMU. 0-day as this is a rather easy fix and there has been no response
+from the maintainer since this was brought up 4 months ago.
+  * Do not preserve ownership or users when untarring the downloaded files
+by using --no-same-owner --no-same-permissions
+   (Closes: #279484)
+
+ -- Javier Fernandez-Sanguino Pen~a [EMAIL PROTECTED]  Tue,  8 Mar 2005 
16:19:20 +0100
+
 susv2 (1) unstable; urgency=low
 
   * Initial release (Closes: #274956)
diff -Nru susv2-1/debian/postinst susv2-1.1/debian/postinst
--- susv2-1/debian/postinst 2003-12-18 17:02:25.0 +0100
+++ susv2-1.1/debian/postinst   2005-03-08 16:21:58.0 +0100
@@ -7,7 +7,7 @@
 echo Fetching file...
 wget -P $TMPDIR 
http://www.opengroup.org/onlinepubs/007908799/download/susv2.tar.bz2
 echo Untaring...
-bunzip2 -cd $TMPDIR/susv2.tar.bz2 | tar xf - -C /usr/share/doc/susv2
+bunzip2 -cd $TMPDIR/susv2.tar.bz2 | tar xf - -C /usr/share/doc/susv2 
--no-same-permissions --no-same-owner
 
 rm -rf $TMPDIR
 


signature.asc
Description: Digital signature