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

Re: dpkg 1.4.0.19 libc5 available in project/experimental



Ian Jackson <ian@chiark.greenend.org.uk> writes:

> dpkg-dev is `Architecture: all' and doesn't depend on any libc, so
> there is no need for a separate libc5 version.  However, it does
> depend on patch 2.2, which is only available as a libc6 version in
> unstable.

Use dpkg-source from 1.4.1.2.  It recognizes which patch it's using
and adapts.  To save you time, here is the relevant diff from 1.4.1.2:

--- /usr/bin/dpkg-source        Mon Jul 14 00:51:09 1997
+++ dpkg-source.pl      Sun Sep 28 17:29:36 1997
@@ -18,6 +18,10 @@
 push (@INC, $dpkglibdir);
 require 'controllib.pl';

+open (PATCHVERSION, "patch --version 2> /dev/null|");
+$patchversion = <PATCHVERSION>; chop ($patchversion);
+$patchversion =~ s/^patch (\d+)\.(\d+)$/$1.$2/ || die ("unable to determine ver
sion of patch program");
+
 sub usageversion {
     print STDERR
 "Debian GNU/Linux dpkg-source $version.  Copyright (C) 1996
@@ -609,8 +613,13 @@
         if (!$c2) {
             open(STDIN,"<&GZIP") || &syserr("reopen gzip for patch");
             chdir($newdirectory) || &syserr("chdir to $newdirectory for patch")
;
-            exec('patch','-s','-t','-F','0','-N','-p1','-u',
-                 '-V','never','-b','-z','.dpkg-orig');
+           if ($patchversion > 2.4) {
+               exec('patch','-s','-t','-F','0','-N','-p1','-u',
+                    '-V','never','-b','-z','.dpkg-orig');
+           } else {
+               exec('patch','-s','-t','-F','0','-N','-p1','-u',
+                    '-V','never','-b','.dpkg-orig');
+           }
             &syserr("exec patch");
         }
         close(GZIP);


Guy


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: