CVS User Account cvsuser
Sat Oct 8 09:24:38 PDT 2005
Log Message:
-----------


Fixed weird RPM build problem. Previously, the spec file under redhat/ caused some problems like
error: line ... second %prep.

To fix this, instead of using -ta, I moved spec file and tar.gz into RPM build locations and and performed the RPM building there. This is the safest way. Same problem arises in Apache2.1 RPM series also, so maybe we can consider this as a bug. This little patch took my 5 nights...

rpm: dist
        mv @PACKAGE_NAME at -@PACKAGE_VERSION at .tar.gz /usr/src/redhat/SOURCES
        mv @PACKAGE_NAME at .spec /usr/src/redhat/SPECS
        rpmbuild -ba /usr/src/redhat/SPECS/@PACKAGE_NAME at .spec

Modified Files:
--------------
    slony1-engine:
        GNUmakefile.in (r1.25 -> r1.26)

-------------- next part --------------
Index: GNUmakefile.in
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/GNUmakefile.in,v
retrieving revision 1.25
retrieving revision 1.26
diff -LGNUmakefile.in -LGNUmakefile.in -u -w -r1.25 -r1.26
--- GNUmakefile.in
+++ GNUmakefile.in
@@ -94,6 +94,8 @@
 	-rm -rf $(distdir)
 
 rpm: dist
-	rpmbuild -ta @PACKAGE_NAME at -@PACKAGE_VERSION at .tar.gz
+	mv @PACKAGE_NAME at -@PACKAGE_VERSION at .tar.gz /usr/src/redhat/SOURCES
+	mv @PACKAGE_NAME at .spec /usr/src/redhat/SPECS
+	rpmbuild -ba /usr/src/redhat/SPECS/@PACKAGE_NAME at .spec
 
 .PHONY: install
\ No newline at end of file


More information about the Slony1-commit mailing list