Beginner needs help

Hi,
I am new at building rpms, but I am familiar with installing packages from source, patching and adjusting patches.
I am trying to build an rpm from patched freetype2 ( patched with cleartype patches from archlinux ).
Here is what I did:

  • downloaded the freetype2-2.3.12-6.2.src.rpm from opensuse 11.3 source repository
  • unpacked it using unrpm
  • overwrited the bytecode related patch file with the one from archlinux
  • logged in to openSUSE Build service
  • created a new package
  • uploaded all the files from the unpacked src.rpm ( all the patches, source files, *.spec, *.conf )
  • OBS gave me errors like
Bad file:  /usr/src/packages/SOURCES/freetype-2.2.1-subpixel-disable-quantization.diff:  No such file or directory

And the same for all the patch files.

How can I tell buildservice to search for files in the current directory? Or where should I upload those files?

Thank you!

Hi
The issue is you have defined the patches in your spec file, but not
uploaded them to the OBS and add the patching routines into your spec
file.

You need to have the original source unpatched, checksum of the
original source verified via md5sum, sha1 etc. Then after the original
source is unpacked in %prep you use the patch command to add the
patches.

Also it’s best if you post the link to you OBS build your having
problems with :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.12-0.7-default
up 2 days 8:48, 3 users, load average: 0.06, 0.06, 0.00
GPU GeForce 8600 GTS Silent - Driver Version: 195.36.31

Thank you malcolmlewis, I reviewed the spec file and found the error, I uploaded the wrong files. The rpm’s are built, am I proud, I built my first ever rpm, OBS is nice :smiley:

Congratulations :slight_smile: You should also look at SUSE Studio for creating
your own version of openSUSE, you can upload/link to your built rpms :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 RC 1 (i586) Kernel 2.6.34-9-desktop
up 18:21, 3 users, load average: 0.16, 0.15, 0.15
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME