Rakotomandimby Mihamina wrote: > Hi, > I am packaging zope 2.9 (wich, at this time is in beta version) in order > to have a ready RPM package when it's released as final stable. > > The sample configuration file is not the same anymore, and the patch for > zope 2.8s is obsolete for 2.9. > > > $ cd /source/directory > $ mv Zope/skel/etc/zope.conf.in Zope/skel/etc/zope.conf.in.original > > I edited Zope/skel/etc/zope.conf.in > And generated the patch as folllow. > > $ diff -Naur Zope/skel/etc/zope.conf.in.original > > Zope/skel/etc/zope.conf.in > --- Zope/skel/etc/zope.conf.in.original 2005-12-21 12:09:22.000000000 > +0100 > +++ Zope/skel/etc/zope.conf.in 2005-12-26 14:28:10.000000000 +0100 > @@ -146,7 +146,8 @@ > # > # Example: > # > -# effective-user chrism > + > +effective-user <<ZOPE_USER>> > > > # Directive: enable-product-installation > @@ -510,7 +511,8 @@ > # > # Example: > # > -# security-policy-implementation python > + > +security-policy-implementation python > > # Directive: skip-authentication-checking > > ###################################################### > ################ End of the patch #################### > ###################################################### > > Then I save it under the SOURCES directory > > $ diff -Naur Zope/skel/etc/zope.conf.in.original \ > Zope/skel/etc/zope.conf.in >\ > /usr/src/redhat/SOURCES/zope-2.9.0-config.patch > > $ rpmbuild -ba zope.spec > [...] > + echo 'Patch #0 (zope-2.9.0-config.patch):' > Patch #0 (zope-2.9.0-config.patch): > + patch -p1 -b --suffix .config -s > The text leading up to this was: > -------------------------- > |--- Zope/skel/etc/zope.conf.in.original 2005-12-21 > 12:09:22.000000000 +0100 > |+++ Zope/skel/etc/zope.conf.in 2005-12-26 14:28:10.000000000 +0100 > -------------------------- > File to patch: > > > What did I do wrong? > I attach the specfile. > > At a glance, it looks like the problem is in your .spec. Try changing '%patch0 -p1 -b .config' to '%patch0 -p0 -b .config'. Use 'man patch' for details on the -p flag. -- Patrick "The N-Man" Barnes nman64 n-man com http://www.n-man.com/ -- Have I been helpful? Rate my assistance! http://rate.affero.net/nman64/
Attachment:
signature.asc
Description: OpenPGP digital signature