rpmbuild only working with root permissions on an app

I just installed 64-bit openSUSE-11.2 on my laptop, and noted there was no application xwinwrap available for 11.2. I did see an 11.1 source (.src) file for it on

http://download.opensuse.org/repositories/X11:/XGL/openSUSE_11.1_KDE4_Factory

and also

http://download.opensuse.org/repositories/X11:/XGL/openSUSE_11.1

and also

http://download.opensuse.org/repositories/X11:/XGL/openSUSE_11.1_GNOME_Factory

so I tried an “rpmbuild --rebuild xwinwrap…rpm” as appropriate (to build for 11.2) as a regular user, and it kept failing with error like:

oldcpu@dell1537:~/rpms> rpmbuild --rebuild xwinwrap-061227-9.4.src.rpm
Installing xwinwrap-061227-9.4.src.rpm
warning: InstallSourcePackage at: psm.c:232: Header V3 DSA signature: NOKEY, key ID 0f2672c8
error: unpacking of archive failed on file /usr/src/packages/SOURCES/coolbg: cpio: rename failed - Operation not permitted
error: xwinwrap-061227-9.4.src.rpm cannot be installed

… however when I try this as user root, it will build and it puts the packages in /usr/src/packages/RPMS/x86_64.

I don’t know if those root built apps work, because I’m puzzled (and in no hurry - I want to understand first).

Should it not be possible to rebuild an rpm as a regular user? Why is it necessary to be user root ? Is it because this is an X/KDE application? What have I forgotten ?

Hi
Sounds like the permissions on the /usr/src/packages directory have
been fiddled with for that too happen…


ls -la /usr/src/packages/
total 32
drwxr-xr-x  8 root root 4096 2010-02-23 07:40 .
drwxr-xr-x  6 root root 4096 2010-03-04 15:30 ..
drwxrwxrwt  2 root root 4096 2010-03-04 15:36 BUILD
drwxrwxrwt  2 root root 4096 2010-03-04 15:36 BUILDROOT
drwxrwxrwt 11 root root 4096 2010-02-26 15:02 RPMS
drwxrwxrwt  2 root root 4096 2010-03-04 15:36 SOURCES
drwxrwxrwt  2 root root 4096 2010-03-04 15:36 SPECS
drwxrwxrwt  2 root root 4096 2010-02-26 15:02 SRPMS


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 14:45, 3 users, load average: 0.34, 0.47, 0.70
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

this is a fresh install (yesterday) with no fiddling, and only official downloads plus packman downloads.

Here is what I get:

oldcpu@dell1537:~/rpms> ls -la /usr/src/packages/
total 32
drwxr-xr-x  8 root root 4096 2009-11-03 00:46 .
drwxr-xr-x  7 root root 4096 2010-03-04 22:36 ..
drwxrwxrwt  3 root root 4096 2010-03-05 19:41 BUILD
drwxrwxrwt  2 root root 4096 2010-03-05 19:43 BUILDROOT
drwxrwxrwt 14 root root 4096 2009-11-03 00:46 RPMS
drwxrwxrwt  2 root root 4096 2010-03-05 19:49 SOURCES
drwxrwxrwt  2 root root 4096 2010-03-05 19:43 SPECS
drwxrwxrwt  2 root root 4096 2009-10-24 03:23 SRPMS

Could it be instead that the spec files for those rpms are messed up ?

Hi
They were last built about;
"build24 started “build xwinwrap.spec” at Thu Mar 19 13:58:23 UTC 2009.

Have grabbed the later source and will look at a new build for you…


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 16:16, 5 users, load average: 0.30, 0.20, 0.13
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

… thanks …

I built (and then deleted) the apps with root permissions, as I recall being told that it should not be necessary to build as user root. … but I confess I don’t know much about this.

Hi
Built and should be available now for 11.1, 11.2, Factory and SLE11

xwinwrap-090215-2.1


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 17:24, 4 users, load average: 0.10, 0.19, 0.20
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Just tested on this machine (gcc45 build :wink: ), both playing a movie
(mplayer) and the screensaver work fine with the coolbg script :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 Milestone 3 (i586) Kernel 2.6.33-5-desktop
up 19:47, 2 users, load average: 0.42, 0.35, 0.14
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Thanks ! I installed it and tested it with my webcam (on a 64-bit openSUSE-11.2), and it works great !

Hi
Another happy customer :slight_smile: It does, watch a movie while you work… the
coolbg script is there as well. Hmmm, might need to investigate a GUI
front end…


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 17:57, 4 users, load average: 0.10, 0.17, 0.14
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Indeed, … the wife likes the webcam app, where one can in essence use the webcam and desktop as a mirror !!

Using brucecadieux’s suggestion from here: webcam & microphone command line fun … - openSUSE Forums

xwinwrap -ni -o 0.60 -fs -s -sp -st -b -nf -- mplayer -wid WID -quiet -fps 20 tv://

… where in my case (because I can not be bothered to retype it) I just put on icon on my KDE4 plasma which sends that command in a terminal when the icon is clicked.