Hi Panu!

On Mon, Jan 17, 2011 at 02:03:29PM +0200, Panu Matilainen wrote:
> The X-mas season caused even more delays and distractions than I expected, 
> but finally 4.9.0 beta1 is here.

Maybe I missied them, but I don't see commits for tilde support in
versions and the "fix-no-release-version-compare-corner-cases"
patch. Aren't they going to be in 4.9?

I've also attached two little patches from our code base you
might want to pick up.

The first one allows to create rpms with uncompressed payloads
by setting the payloadformat to "ufdio", the second one sets
a "%_specfile" macro in the build so that people can do fancy
specfile manipulation/data extraction in the build.

Cheers,
  Michael.

-- 
Michael Schroeder                                   m...@suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--- ./build/pack.c.orig	2010-03-25 15:18:23.000000000 +0000
+++ ./build/pack.c	2010-03-25 15:23:54.000000000 +0000
@@ -375,7 +375,9 @@ rpmRC writeRPM(Header *hdrp, unsigned ch
 	const char *compr = NULL;
 	headerPutString(h, RPMTAG_PAYLOADFORMAT, "cpio");
 
-	if (rstreq(s+1, "gzdio")) {
+	if (rstreq(s+1, "ufdio")) {
+	    compr = NULL;
+	} else if (rstreq(s+1, "gzdio")) {
 	    compr = "gzip";
 #if HAVE_BZLIB_H
 	} else if (rstreq(s+1, "bzdio")) {
@@ -398,7 +400,8 @@ rpmRC writeRPM(Header *hdrp, unsigned ch
 	    goto exit;
 	}
 
-	headerPutString(h, RPMTAG_PAYLOADCOMPRESSOR, compr);
+	if (compr)
+	    headerPutString(h, RPMTAG_PAYLOADCOMPRESSOR, compr);
 	buf = xstrdup(rpmio_flags);
 	buf[s - rpmio_flags] = '\0';
 	headerPutString(h, RPMTAG_PAYLOADFLAGS, buf+1);
Index: build/parseSpec.c
===================================================================
--- build/parseSpec.c.orig
+++ build/parseSpec.c
@@ -425,6 +425,7 @@ int parseSpec(rpmts ts, const char *spec
     spec = newSpec();
 
     spec->specFile = rpmGetPath(specFile, NULL);
+    addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC);
     spec->fileStack = newOpenFileInfo();
     spec->fileStack->fileName = xstrdup(spec->specFile);
     /* If buildRoot not specified, use default %{buildroot} */
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to