Mailinglist Archive: opensuse-packaging (284 mails)

< Previous Next >
[opensuse-packaging] Help with illogical %files error
  • From: Dave Plater <davejplater@xxxxxxxxx>
  • Date: Thu, 17 Feb 2011 12:49:03 +0200
  • Message-id: <4D5CFD1F.10307@gmail.com>
Hi, I home:plater:kde4/plasmoid-yawp has a new file
"%{_kde_share_dir}/apps/ion_accuweather/satellite_map.conf" so I added :
"%config %{_kde_share_dir}/apps/ion_accuweather/satellite_map.conf" to
the files section, I didn't own the directory but 11.3 gives the same
error :
+ /usr/lib/rpm/brp-lib64-linux
sf@xxxxxxx: if you find problems with this script, drop me a note
+ /usr/lib/rpm/brp-permissions
setting / to root:root 0755. (wrong owner/group abuild:abuild)
setting /usr/ to root:root 0755. (wrong owner/group abuild:abuild)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-debug
+ /usr/lib/rpm/brp-check-la
+ /usr/lib/rpm/brp-symlink
+ /usr/lib/rpm/brp-desktop
WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not
exist
WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not
exist
WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu'
does not exist
+ /usr/lib/rpm/brp-rpath
+ /usr/lib/rpm/brp-pie
+ /usr/lib/rpm/brp-rootfs
+ /usr/lib/rpm/brp-tcl
+ /usr/lib/rpm/brp-check-python
+ /usr/lib/rpm/brp-boot-scripts
+ /usr/lib/rpm/brp-hook
Processing files: plasmoid-yawp-0.3.6.457-0.x86_64
error: File must begin with "/":  
/usr/share/kde4/apps/ion_accuweather/satellite_map.conf
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.VU7Wxj
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd yawp-0.3.6.457
+
DOCDIR=/usr/src/packages/BUILDROOT/plasmoid-yawp-0.3.6.457-0.x86_64/usr/share/doc/packages/plasmoid-yawp
+ export DOCDIR
+ rm -rf
/usr/src/packages/BUILDROOT/plasmoid-yawp-0.3.6.457-0.x86_64/usr/share/doc/packages/plasmoid-yawp
+ /bin/mkdir -p
/usr/src/packages/BUILDROOT/plasmoid-yawp-0.3.6.457-0.x86_64/usr/share/doc/packages/plasmoid-yawp
+ cp -pr README TODO CHANGELOG COPYRIGHT LICENSE-BSD LICENSE-GPL2
LICENSE-LGPL-2
/usr/src/packages/BUILDROOT/plasmoid-yawp-0.3.6.457-0.x86_64/usr/share/doc/packages/plasmoid-yawp
+ exit 0


RPM build errors:
File must begin with "/":  
/usr/share/kde4/apps/ion_accuweather/satellite_map.conf

Removing %config and owning the new directory results in a successful
build. The bottom line is, I still don't understand "%config" and
haven't yet nailed down a place where it's explained properly.
The file "satellite_map.conf" isn't meant to be changed by user.

Thanks
Dave P
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups