User story (meta) #2329

Packages for RHEL/CentOS 6

Added by Jonathan CLARKE almost 3 years ago. Updated almost 2 years ago.

Status:Released Start date:2012-02-24
Priority:3 Due date:
Assignee:Nicolas PERRON % Done:

100%

Category:-
Target version:Rudder - 2.4.0~alpha7

Description

Make some adpatations to packages to be able to use them on RHEL 6 (and 5)

Associated revisions

Revision dca17aaa
Added by Jonathan CLARKE almost 3 years ago

Make several modifications on packaging to support RHEL. Refs #2329

Revision 62476fa2
Added by Jonathan CLARKE almost 3 years ago

Fix dependencies for building rudder-inventory-ldap on RHEL. Refs #2329

Revision 1f667390
Added by Jonathan CLARKE almost 3 years ago

Clean up patch file to support RHEL's patch --fuzz=0. Refs #2329

Revision f7968848
Added by Jonathan CLARKE almost 3 years ago

Fix apache2/httpd log dir for RHEL packages. Refs #2329

Revision 92d030e2
Added by Nicolas PERRON over 2 years ago

Refs #2329 Add instruction in spec file to prevent erro for noarch binaries in rudder-jetty compilation for CentOS

History

#1 Updated by Jonathan CLARKE almost 3 years ago

  • Assignee changed from Jonathan CLARKE to Nicolas PERRON

RPM build for rudder-jetty package currently fails as follows:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.dNfFYY
+ umask 022
+ cd /usr/src/redhat/BUILD
+ '[' /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386 '!=' / ']'
+ rm -rf /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386
++ dirname /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386
+ mkdir -p /usr/src/redhat/BUILDROOT
+ mkdir /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386
+ mkdir -p /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/opt/rudder
+ mkdir -p /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/var/log/rudder/webapp
+ mkdir -p /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/var/rudder/run
+ cd /usr/src/redhat/SOURCES
+ cp -a jetty7 /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/opt/rudder
+ mkdir -p /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/etc/init.d
+ mkdir -p /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/etc/default
+ install -m 755 jetty7/bin/jetty-sles.sh /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/etc/init.d/jetty
+ install -m 644 /usr/src/redhat/SOURCES/rudder-jetty.default /usr/src/redhat/BUILDROOT/rudder-jetty-2.4.0.alpha6.git-1.EL.6.i386/etc/default/jetty
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: rudder-jetty-2.4.0.alpha6.git-1.EL.6.noarch
Provides: libsetuid.so()(64bit)
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires: /bin/bash /usr/bin/env rtld(GNU_HASH)

RPM build errors:
error: Arch dependent binaries in noarch package
    Arch dependent binaries in noarch package

A possible workaround is here: http://synt4x3rr0r.blogspot.com/2011/11/linux-arch-dependent-binaries-in-noarch.html. But we should check what binaries it is that rpmbuild thinks are arch-dependent, before applying this!

#2 Updated by Olivier LI KIANG CHEONG almost 3 years ago

Hi,
to fix the issue, add in spec file

%define _binaries_in_noarch_packages_terminate_build   0

Tested on centos6

#3 Updated by Nicolas PERRON over 2 years ago

I didn't find which binary is considered as noarch. How can I do that ?

#4 Updated by Jonathan CLARKE over 2 years ago

Nicolas PERRON wrote:

I didn't find which binary is considered as noarch. How can I do that ?

Try running rpmlint on the RPM file (or src.rpm file).

#5 Updated by Jonathan CLARKE over 2 years ago

  • Target version changed from 2.4.0~alpha6 to 2.4.0~alpha7

#6 Updated by Nicolas PERRON over 2 years ago

  • Status changed from In progress to Pending technical review
  • % Done changed from 0 to 100

Olivier LI KIANG CHEONG wrote:

Hi,
to fix the issue, add in spec file
[...]

Tested on centos6

This fix is good, thank you Oliver.

#7 Updated by Matthieu CERDA over 2 years ago

This looks fine !

#8 Updated by Jonathan CLARKE over 2 years ago

  • Status changed from Pending technical review to Pending functional review

#9 Updated by Jonathan CLARKE over 2 years ago

  • Status changed from Pending functional review to Released

#10 Updated by Nicolas PERRON almost 2 years ago

  • Project changed from Rudder to packages
  • Category deleted (11)

Also available in: Atom PDF