Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   lm_sensors-3.3.2-5.fc17.src.rpm :: error rebuilding on centos (http://www.linux-archive.org/fedora-user/711841-lm_sensors-3-3-2-5-fc17-src-rpm-error-rebuilding-centos.html)

Rick Stevens 10-12-2012 06:36 PM

lm_sensors-3.3.2-5.fc17.src.rpm :: error rebuilding on centos
 
On 10/12/2012 10:59 AM, Adrian Sevcenco issued this missive:

Hi! I try to rebuild the lm_sensors on centos 5.x but i have a quite
strange error after the command "rpmbuild -ba lm_sensors.spec" in
~/rpmbuild/SPECS :

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.33336
/var/tmp/rpm-tmp.33336..21: umask 022
/var/tmp/rpm-tmp.33336..22: cd /export/home/rpmbuild/rpmbuild/BUILD
/var/tmp/rpm-tmp.33336..24: cd lm_sensors-3.3.2
/var/tmp/rpm-tmp.33336..25: LANG=C
/var/tmp/rpm-tmp.33336..26: export LANG
/var/tmp/rpm-tmp.33336..27: unset DISPLAY
/var/tmp/rpm-tmp.33336..29: make PREFIX=/usr LIBDIR=/usr/lib64
MANDIR=/usr/share/man PROG_EXTRA=sensord DESTDIR= user_install
mkdir -p /usr/lib64 /usr/include/sensors /usr/share/man/man3
/usr/share/man/man5
install -m 644 lib/libsensors.a /usr/lib64
install: cannot remove `/usr/lib64/libsensors.a': Permission denied
make: *** [install-lib] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.33336 (%install)

any idea why it tries to install at the rpm making step?


Check to see if selinux is blocking the remove. Also check the
permissions on /usr/lib64/libsensors.a (both regular permissions
and "lsattr").

It's most likely that the library is owned by root and doesn't have
"other write" permissions. If you're building as an ordinary user, the
rpmbuild script won't be able to remove the old library unless it does
a "sudo" or "su" before the "install" step.

The old library may also have the immutable flag set
("lsattr /usr/lib64/libsensors.a" would show the "i" flag), in which
case you'd have to "chattr -i /usr/lib64/libsensors.a" (as the root
user or a user with the CAP_SYS_RESOURCE capability) to remove it.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- Memory is the second thing to go, but I can't remember the first! -
----------------------------------------------------------------------
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Adrian Sevcenco 10-15-2012 09:17 AM

lm_sensors-3.3.2-5.fc17.src.rpm :: error rebuilding on centos
 
On 10/12/2012 09:36 PM, Rick Stevens wrote:

On 10/12/2012 10:59 AM, Adrian Sevcenco issued this missive:

Hi! I try to rebuild the lm_sensors on centos 5.x but i have a quite
strange error after the command "rpmbuild -ba lm_sensors.spec" in
~/rpmbuild/SPECS :

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.33336
/var/tmp/rpm-tmp.33336..21: umask 022
/var/tmp/rpm-tmp.33336..22: cd /export/home/rpmbuild/rpmbuild/BUILD
/var/tmp/rpm-tmp.33336..24: cd lm_sensors-3.3.2
/var/tmp/rpm-tmp.33336..25: LANG=C
/var/tmp/rpm-tmp.33336..26: export LANG
/var/tmp/rpm-tmp.33336..27: unset DISPLAY
/var/tmp/rpm-tmp.33336..29: make PREFIX=/usr LIBDIR=/usr/lib64
MANDIR=/usr/share/man PROG_EXTRA=sensord DESTDIR= user_install
mkdir -p /usr/lib64 /usr/include/sensors /usr/share/man/man3
/usr/share/man/man5
install -m 644 lib/libsensors.a /usr/lib64
install: cannot remove `/usr/lib64/libsensors.a': Permission denied
make: *** [install-lib] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.33336 (%install)

any idea why it tries to install at the rpm making step?


Check to see if selinux is blocking the remove. Also check the
permissions on /usr/lib64/libsensors.a (both regular permissions
and "lsattr").

It's most likely that the library is owned by root and doesn't have
"other write" permissions. If you're building as an ordinary user, the
rpmbuild script won't be able to remove the old library unless it does
a "sudo" or "su" before the "install" step.

but i dont do install step.. i just want the rpm to be made!
isn't it a bug to make a rpmbuild and as a result to have a script that
want to remove something?


Thanks!
Adrian

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Patrick Lists 10-15-2012 11:40 AM

lm_sensors-3.3.2-5.fc17.src.rpm :: error rebuilding on centos
 
On 10/12/2012 07:59 PM, Adrian Sevcenco wrote:

Hi! I try to rebuild the lm_sensors on centos 5.x but i have a quite
strange error after the command "rpmbuild -ba lm_sensors.spec" in
~/rpmbuild/SPECS :

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.33336
/var/tmp/rpm-tmp.33336..21: umask 022
/var/tmp/rpm-tmp.33336..22: cd /export/home/rpmbuild/rpmbuild/BUILD
/var/tmp/rpm-tmp.33336..24: cd lm_sensors-3.3.2
/var/tmp/rpm-tmp.33336..25: LANG=C
/var/tmp/rpm-tmp.33336..26: export LANG
/var/tmp/rpm-tmp.33336..27: unset DISPLAY
/var/tmp/rpm-tmp.33336..29: make PREFIX=/usr LIBDIR=/usr/lib64
MANDIR=/usr/share/man PROG_EXTRA=sensord DESTDIR= user_install
mkdir -p /usr/lib64 /usr/include/sensors /usr/share/man/man3
/usr/share/man/man5
install -m 644 lib/libsensors.a /usr/lib64
install: cannot remove `/usr/lib64/libsensors.a': Permission denied
make: *** [install-lib] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.33336 (%install)

any idea why it tries to install at the rpm making step?


Usually an RPM spec file has an install section. But it also uses
DESTDIR which points to some harmless install directory to make sure
that the rpm build process does not mess with the files on your filesystem.


What is wrong in the build above is the empty DESTDIR. Do you see
DESTDIR= ? That should have the value of RPM_BUILD_ROOT. So you need to
check the spec file for this (and perhaps other) issues. It is likely
that a spec file from an F17 SRPM is in several ways not compatible with
CentOS 5. For starters, F17 no longer uses initscripts but has moved to
systemd.


Your best bet is probably to look at the spec file of the lm_sensors
SRPM from CentOS 5 and integrate the initscripts and any other CentOS 5
specific things into the spec file of the lm_sensors F17 SRPM.


Regards,
Patrick

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


All times are GMT. The time now is 04:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.