[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#193653: marked as done (Please apply this patch for Triggers)



Your message dated Sun, 12 Jun 2005 12:02:22 -0400
with message-id <E1DhUuk-0005hA-00@newraff.debian.org>
and subject line Bug#193653: fixed in dpkg 1.13.9
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 May 2003 16:09:07 +0000
>From torsknod@datas-world.dyndns.org Sat May 17 11:06:16 2003
Return-path: <torsknod@datas-world.dyndns.org>
Received: from dsl-213-023-219-217.arcor-ip.net (datas-world.dyndns.org) [213.23.219.217] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 19H4CJ-0005mq-00; Sat, 17 May 2003 11:06:12 -0500
Received: from localhost (localhost [127.0.0.1])
  (uid 1000)
  by datas-world.dyndns.org with local; Sat, 17 May 2003 18:05:40 +0200
Content-Type: multipart/mixed; boundary="===============623207035784763=="
MIME-Version: 1.0
From: Torsten Knodt <tk-debian@datas-world.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Please apply this patch for Triggers
X-Mailer: reportbug 2.10.1
Date: Sat, 17 May 2003 18:05:40 +0200
Message-ID: <courier.3EC65DD4.00004C5E@datas-world.dyndns.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-18.0 required=4.0
	tests=BAYES_30,HAS_PACKAGE,PATCH_UNIFIED_DIFF,PGP_SIGNATURE
	autolearn=ham version=2.53-bugs.debian.org_2003_05_09
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_05_09 (1.174.2.15-2003-03-30-exp)

This is a multi-part MIME message sent by reportbug.

--===============623207035784763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: dpkg
Version: unavailable; reported 2003-05-17
Severity: wishlist
Tags: sid patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
please apply this patch, which introduced support for triggers. The patch is
written by Russell Coker <russell@coker.com.au> to allow the selinux package
to set the file contexts after package installations.

Regards
	Torsten

- -- System Information:
Debian Release: testing/unstable
Architecture: sh: line 1: /usr/bin/dpkg: Permission denied
Kernel: Linux tk-hybrid-1 2.4.20 #4 Son Mai 4 12:23:33 CEST 2003 i586
Locale: LANG=C, LC_CTYPE=C

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

iD8DBQE+xl3UX1/CjdwsodIRAogMAJ0WgnFY1NYoc3olRP8mYM5b2Gh13QCffjLX
TX9WTTwOUXAmY8LyHesWJt8=
=nXxR
-----END PGP SIGNATURE-----

--===============623207035784763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="dpkg-1.10.10.diff"

diff -uiwbBrN plain/dpkg-1.10.10/debian/dselect.substvars included/dpkg-1.10.10.se1/debian/dselect.substvars
--- plain/dpkg-1.10.10/debian/dselect.substvars	1970-01-01 01:00:00.000000000 +0100
+++ included/dpkg-1.10.10.se1/debian/dselect.substvars	2003-05-01 17:20:38.000000000 +0200
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.2.5-13), libncurses5 (>= 5.2.20020112a-1), libstdc++2.10-glibc2.2 (>= 1:2.95.4-0.010810)
diff -uiwbBrN plain/dpkg-1.10.10/debian/rules included/dpkg-1.10.10.se1/debian/rules
--- plain/dpkg-1.10.10/debian/rules	2003-04-26 22:10:12.000000000 +0200
+++ included/dpkg-1.10.10.se1/debian/rules	2003-05-01 17:20:38.000000000 +0200
@@ -162,6 +162,8 @@
 		$(TMP_DPKG)/usr/share/doc/dpkg$(static)/
 	install -p -m 644 -o root -g root debian/copyright \
 		$(TMP_DPKG)/usr/share/doc/dpkg$(static)/
+	install -d -m 755 -o root -g root $(TMP_DPKG)/etc/dpkg/preinst.d $(TMP_DPKG)/etc/dpkg/postinst.d
+	install -d -m 755 -o root -g root $(TMP_DPKG)/etc/dpkg/prerm.d $(TMP_DPKG)/etc/dpkg/postrm.d
 
 # Final package creation
 	install -d -m 755 -o root -g root $(TMP_DPKG)/DEBIAN
diff -uiwbBrN plain/dpkg-1.10.10/main/help.c included/dpkg-1.10.10.se1/main/help.c
--- plain/dpkg-1.10.10/main/help.c	2002-09-15 19:55:51.000000000 +0200
+++ included/dpkg-1.10.10.se1/main/help.c	2003-05-01 17:20:38.000000000 +0200
@@ -276,6 +276,21 @@
   return r;
 }
 
+static int run_trigger(int pre, const char * const pkg, const char * const script)
+{
+  char run_parts[1024];
+  int rc;
+  if(pre && !strncmp(script, "pre", 3))
+    return;
+  if(!pre && strncmp(script, "pre", 3))
+    return;
+  snprintf(run_parts, sizeof(run_parts), "/bin/run-parts --arg=%s /etc/dpkg/%s.d", pkg, script);
+  rc = system(run_parts);
+  if(rc)
+    printf("\"%s\" failed: %d\n", run_parts, rc);
+  return rc;
+}
+
 int maintainer_script_installed(struct pkginfo *pkg, const char *scriptname,
                                 const char *description, ...) {
   /* all ...'s are const char*'s */
@@ -291,15 +306,21 @@
   va_end(ap);
   sprintf(buf,"%s script",description);
 
+  if(run_trigger(1, pkg->name, scriptname))
+    ohshite(_("1Error running trigger %s"), scriptname);
   if (stat(scriptpath,&stab)) {
     if (errno == ENOENT) {
       debug(dbg_scripts,"maintainer_script_installed nonexistent %s",scriptname);
+      run_trigger(0, pkg->name, scriptname);
+/*        ohshite(_("2Error running trigger %s"), scriptname);*/
       return 0;
     }
     ohshite(_("unable to stat installed %s script `%.250s'"),description,scriptpath);
   }
   do_script(pkg->name, scriptname, scriptpath, &stab, arglist, _("unable to execute %s"), buf, 0);
   ensure_diversions();
+  run_trigger(0, pkg->name, scriptname);
+/*    ohshite(_("3Error running trigger %s"), scriptname); */
   return 1;
 }
   
@@ -317,15 +338,21 @@
   sprintf(buf,"%s script",description);
 
   strcpy(cidirrest,scriptname);
+  if(run_trigger(1, pkgname, scriptname))
+    ohshite(_("4Error running trigger %s"), scriptname);
   if (stat(cidir,&stab)) {
     if (errno == ENOENT) {
       debug(dbg_scripts,"maintainer_script_new nonexistent %s `%s'",scriptname,cidir);
+      run_trigger(0, pkgname, scriptname);
+/*        ohshite(_("5Error running trigger %s"), scriptname);*/
       return 0;
     }
     ohshite(_("unable to stat new %s script `%.250s'"),description,cidir);
   }
   do_script(pkgname, scriptname, cidir, &stab, arglist, _("unable to execute new %s"), buf, 0);
   ensure_diversions();
+  if(run_trigger(0, pkgname, scriptname))
+    ohshite(_("6Error running trigger %s"), scriptname);
   return 1;
 }
 
@@ -344,10 +371,14 @@
                                              vdew_nonambig),
                         (char*)0);
   sprintf(buf,_("old %s script"),description);
+  if(run_trigger(1, pkg->name, scriptname))
+    ohshite(_("7Error running trigger %s"), scriptname);
   if (stat(oldscriptpath,&stab)) {
     if (errno == ENOENT) {
       debug(dbg_scripts,"maintainer_script_alternative nonexistent %s `%s'",
             scriptname,oldscriptpath);
+      run_trigger(0, pkg->name, scriptname);
+/*        ohshite(_("8Error running trigger %s"), scriptname);*/
       return 0;
     }
     fprintf(stderr,
@@ -355,7 +386,11 @@
             buf,oldscriptpath,strerror(errno));
   } else {
     if (!do_script(pkg->name, scriptname, oldscriptpath, &stab, arglist, _("unable to execute %s"), buf, PROCWARN))
+    {
+      run_trigger(0, pkg->name, scriptname);
+/*        ohshite(_("9Error running trigger %s"), scriptname); */
       return 1;
+    }
     ensure_diversions();
   }
   fprintf(stderr, _("dpkg - trying script from the new package instead ...\n"));
@@ -378,6 +413,8 @@
   fprintf(stderr, _("dpkg: ... it looks like that went OK.\n"));
 
   ensure_diversions();
+  if(run_trigger(0, pkg->name, scriptname))
+    ohshite(_("aError running trigger %s"), scriptname);
   return 1;
 }
 

--===============623207035784763==--

---------------------------------------
Received: (at 193653-close) by bugs.debian.org; 12 Jun 2005 16:09:20 +0000
>From katie@ftp-master.debian.org Sun Jun 12 09:09:20 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DhV1U-0003qs-00; Sun, 12 Jun 2005 09:09:20 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DhUuk-0005hA-00; Sun, 12 Jun 2005 12:02:22 -0400
From: Scott James Remnant <scott@netsplit.com>
To: 193653-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#193653: fixed in dpkg 1.13.9
Message-Id: <E1DhUuk-0005hA-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 12 Jun 2005 12:02:22 -0400
Delivered-To: 193653-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: dpkg
Source-Version: 1.13.9

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

dpkg-dev_1.13.9_all.deb
  to pool/main/d/dpkg/dpkg-dev_1.13.9_all.deb
dpkg_1.13.9.dsc
  to pool/main/d/dpkg/dpkg_1.13.9.dsc
dpkg_1.13.9.tar.gz
  to pool/main/d/dpkg/dpkg_1.13.9.tar.gz
dpkg_1.13.9_i386.deb
  to pool/main/d/dpkg/dpkg_1.13.9_i386.deb
dselect_1.13.9_i386.deb
  to pool/main/d/dpkg/dselect_1.13.9_i386.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 193653@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott James Remnant <scott@netsplit.com> (supplier of updated dpkg 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 12 Jun 2005 15:52:43 +0100
Source: dpkg
Binary: dpkg dselect dpkg-dev
Architecture: source i386 all
Version: 1.13.9
Distribution: unstable
Urgency: low
Maintainer: Scott James Remnant <scott@netsplit.com>
Changed-By: Scott James Remnant <scott@netsplit.com>
Description: 
 dpkg       - Package maintenance system for Debian
 dpkg-dev   - Package building tools for Debian
 dselect    - a user tool to manage Debian packages
Closes: 21236 156317 193653 246802 249496 282323 304297 307139
Changes: 
 dpkg (1.13.9) unstable; urgency=low
 .
   The "On like Donkey Kong" Release.
 .
   * Only open the log file when we first need to write to it, this avoids
     the need to suppress errors when not root which fakeroot defeated anyway.
   * Stop dpkg-source clobbering an existing .orig directory during unpacking.
     Closes: #21236.
   * Allow an alternate output directory to be specified to dpkg-source by
     giving a second argument to -x.  Closes: #246802, #282323.
   * Added .arch-inventory to default diff ignore regexp.  Closes: #304297.
 .
   SELinux support (Manoj Srivastava):
   * On SELinux-enabled systems, try to set the security context when the
     package is unpacked.  Closes: #193653, #249496, #307139.
   * Added build-dependancy on libselinux1-dev.
 .
   Improvements to dpkg-source (Brendan O'Dea):
   * Support unpacking of "Wig And Pen" (Format 2.0) source packages.
   * Multiple pristine upstream tarballs allowed.
   * Native and upstream tarballs may be bzip2-compressed instead of gzip,
     as may the debian diff or tarball.
   * Unsupported format error fixed to output the unsupported format
     rather than the supported one.  Closes: #156317.
Files: 
 3de37042afe8c16293e23402936dba18 622 base required dpkg_1.13.9.dsc
 11351b33bcd380f849e3ce1e24b1ce2e 3557423 base required dpkg_1.13.9.tar.gz
 7c534ffbcdb85a133f33cfc5f60332e3 1781280 base required dpkg_1.13.9_i386.deb
 88135455172d9144ca78cdd06784cd1a 120494 base required dselect_1.13.9_i386.deb
 2450a224892ab56d6d9a9c19f10e7650 162762 utils standard dpkg-dev_1.13.9_all.deb

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

iD8DBQFCrFjDIexP3IStZ2wRAkmIAJ0RPWcgEXgPIVo/qxUdkvIg4XT95QCgq5HA
6knfxRHT+I65fJDZ57H35rs=
=2sT8
-----END PGP SIGNATURE-----



Reply to: