[opensuse-packaging] I'm having problems making a patch
Hi, I'm trying to make a very simple patch for factory yast2-qt-pkg to use with osc but I don't seem to be able to get it to work. I have asked for help on other lists and have ended up with the following format after trying various diff options :- home:plater:branches:openSUSE:Factory/yast2-qt-pkg> cat qtpkgcolsize.patch diff -urN yast2-qt-pkg-2.18.9/src/YQPkgList.cc yast2-qt-pkg-2.18.9-patched/src/YQPkgList.cc --- yast2-qt-pkg-2.18.9/src/YQPkgList.cc 2009-05-28 10:54:45.000000000 +0200 +++ yast2-qt-pkg-2.18.9-patched/src/YQPkgList.cc 2009-07-09 20:03:16.000000000 +0200 @@ -97,7 +97,7 @@ QFontMetrics fms( header()->font() ); - setColumnWidth( sizeCol(), fms.width( " 9999.9 K " ) ); + setColumnWidth( sizeCol(), fms.width( " 9999.9 KiB " ) ); setColumnWidth( versionCol(), fms.width( versionHeaderText + " " ) ); setColumnWidth( nameCol(), fms.width( "desktop-data-openSUSE-extraroom" ) ); setColumnWidth( summaryCol(), fms.width( "A really really long text, but not too long" ) ); This patch is also added to home:plater:branches:openSUSE:Factory/yast2-qt-pkg in build service. After adding patch: qtpkgcolsize.patch to the local spec file I received the message from osc build :- RPMLINT report: =============== yast2-qt-pkg.src: W: patch-not-applied Patch0: qtpkgcolsize.patch A patch is included in your package but was not applied. Refer to the patches documentation to see what's wrong. Can anybody help? Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sat, Jul 18, 2009 at 09:43:06AM +0200, Dave Plater wrote:
Hi, I'm trying to make a very simple patch for factory yast2-qt-pkg to use with osc but I don't seem to be able to get it to work. I have asked for help on other lists and have ended up with the following format after trying various diff options :- home:plater:branches:openSUSE:Factory/yast2-qt-pkg> cat qtpkgcolsize.patch diff -urN yast2-qt-pkg-2.18.9/src/YQPkgList.cc yast2-qt-pkg-2.18.9-patched/src/YQPkgList.cc --- yast2-qt-pkg-2.18.9/src/YQPkgList.cc 2009-05-28 10:54:45.000000000 +0200 +++ yast2-qt-pkg-2.18.9-patched/src/YQPkgList.cc 2009-07-09 20:03:16.000000000 +0200 @@ -97,7 +97,7 @@
QFontMetrics fms( header()->font() );
- setColumnWidth( sizeCol(), fms.width( " 9999.9 K " ) ); + setColumnWidth( sizeCol(), fms.width( " 9999.9 KiB " ) ); setColumnWidth( versionCol(), fms.width( versionHeaderText + " " ) ); setColumnWidth( nameCol(), fms.width( "desktop-data-openSUSE-extraroom" ) ); setColumnWidth( summaryCol(), fms.width( "A really really long text, but not too long" ) );
This patch is also added to home:plater:branches:openSUSE:Factory/yast2-qt-pkg in build service. After adding patch: qtpkgcolsize.patch to the local spec file I received the message from osc build :- RPMLINT report: =============== yast2-qt-pkg.src: W: patch-not-applied Patch0: qtpkgcolsize.patch A patch is included in your package but was not applied. Refer to the patches documentation to see what's wrong.
Can anybody help?
in the %prep section, after %setup, add: %patch0 -p1 To actually apply the patch. ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Marcus Meissner wrote:
On Sat, Jul 18, 2009 at 09:43:06AM +0200, Dave Plater wrote:
Hi, I'm trying to make a very simple patch for factory yast2-qt-pkg to use with osc but I don't seem to be able to get it to work. I have asked for help on other lists and have ended up with the following format after trying various diff options :- home:plater:branches:openSUSE:Factory/yast2-qt-pkg> cat qtpkgcolsize.patch diff -urN yast2-qt-pkg-2.18.9/src/YQPkgList.cc yast2-qt-pkg-2.18.9-patched/src/YQPkgList.cc --- yast2-qt-pkg-2.18.9/src/YQPkgList.cc 2009-05-28 10:54:45.000000000 +0200 +++ yast2-qt-pkg-2.18.9-patched/src/YQPkgList.cc 2009-07-09 20:03:16.000000000 +0200 @@ -97,7 +97,7 @@
QFontMetrics fms( header()->font() );
- setColumnWidth( sizeCol(), fms.width( " 9999.9 K " ) ); + setColumnWidth( sizeCol(), fms.width( " 9999.9 KiB " ) ); setColumnWidth( versionCol(), fms.width( versionHeaderText + " " ) ); setColumnWidth( nameCol(), fms.width( "desktop-data-openSUSE-extraroom" ) ); setColumnWidth( summaryCol(), fms.width( "A really really long text, but not too long" ) );
This patch is also added to home:plater:branches:openSUSE:Factory/yast2-qt-pkg in build service. After adding patch: qtpkgcolsize.patch to the local spec file I received the message from osc build :- RPMLINT report: =============== yast2-qt-pkg.src: W: patch-not-applied Patch0: qtpkgcolsize.patch A patch is included in your package but was not applied. Refer to the patches documentation to see what's wrong.
Can anybody help?
in the %prep section, after %setup, add:
%patch0 -p1
To actually apply the patch.
ciao, Marcus
Thanks I'm trying it out now. Is there a man page or something, that you know of, for spec files, I don't seem to be able to find one? Thanks again Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Dave Plater wrote:
Thanks I'm trying it out now. Is there a man page or something, that you know of, for spec files, I don't seem to be able to find one? Thanks again Dave P
http://www.rpm.org/max-rpm/ch-rpm-inside.html Somewhat old, but most of it is still valid. -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Community Multiplier Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Pavol Rusnak wrote:
Dave Plater wrote:
Thanks I'm trying it out now. Is there a man page or something, that you know of, for spec files, I don't seem to be able to find one? Thanks again Dave P
http://www.rpm.org/max-rpm/ch-rpm-inside.html
Somewhat old, but most of it is still valid.
Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Dave Plater
-
Marcus Meissner
-
Pavol Rusnak