Project

General

Profile

Actions

User story #2329

closed

Packages for RHEL/CentOS 6

Added by Jonathan CLARKE almost 13 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
3
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

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

Actions #1

Updated by Jonathan CLARKE almost 13 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!

Actions #2

Updated by Olivier LI KIANG CHEONG almost 13 years ago

Hi,
to fix the issue, add in spec file

%define _binaries_in_noarch_packages_terminate_build   0

Tested on centos6

Actions #3

Updated by Nicolas PERRON almost 13 years ago

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

Actions #4

Updated by Jonathan CLARKE over 12 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).

Actions #5

Updated by Jonathan CLARKE over 12 years ago

  • Target version changed from 2.4.0~alpha6 to 2.4.0~alpha7
Actions #6

Updated by Nicolas PERRON over 12 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.

Actions #7

Updated by Matthieu CERDA over 12 years ago

This looks fine !

Actions #8

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from Pending technical review to 10
Actions #9

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from 10 to Released
Actions #10

Updated by Nicolas PERRON almost 12 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #11

Updated by Benoît PECCATTE almost 10 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF