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

Re: "No signature available" when attempting to sign a package



> This also happens when I use --resign.  RPMs that originally came from
> RedHat 7.1 seem to be the only ones affected.  A sample RPM is available from
> ftp://ftp.oeone.com/etc/authconfig-4.1.6-1.i386.rpm .   Does anyone know
> what causes this problem or how I can sign these RPMs?

Package signing has changed a little bit in 4.0.4. Applying the
attached patch in your rpm will allow you to run --resign in older
rpms, without changing the behavior with newer ones. Notice that
--addsign won't work.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
--- rpm-4.0.4/lib/rpmchecksig.c.resign	Mon Jan 21 13:34:41 2002
+++ rpm-4.0.4/lib/rpmchecksig.c	Mon Jul  1 15:46:23 2002
@@ -173,6 +173,11 @@
 		/*@=nullpass@*/
 		nh = headerFree(nh);
 	    }
+	    else {
+		/* This allows rpm to sign pkgs created by old versions */
+	        sig = rpmFreeSignature(sig);
+	        sig = rpmNewSignature();
+	    }
 
 	    (void) headerRemoveEntry(sig, RPMSIGTAG_SIZE);
 	    (void) headerRemoveEntry(sig, RPMSIGTAG_MD5);

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