Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM build failure #190

Closed
keyboardfann opened this issue Jan 22, 2016 · 2 comments
Closed

RPM build failure #190

keyboardfann opened this issue Jan 22, 2016 · 2 comments

Comments

@keyboardfann
Copy link

Dear All,
When I want to use "sbt rpm:packageBin" to build RPM , I get many error message. Is there any idea about the issue. Thank you your time for looking the issue.

Environment:

OS:CentOS 6.7
SBT version: 1.3.0.4
Java version: 1.8.0_71

Rpm lib version:
rpm-libs-4.8.0-47.el6.x86_64
rpm-python-4.8.0-47.el6.x86_64
redhat-rpm-config-9.0.3-44.el6.centos.noarch
rpm-build-4.8.0-47.el6.x86_64
rpm-4.8.0-47.el6.x86_64


rpm --showrc
Features supported by rpmlib:
    rpmlib(BuiltinLuaScripts) = 4.2.2-1
    rpmlib(CompressedFileNames) = 3.0.4-1
    rpmlib(ConcurrentAccess) = 4.1-1
    rpmlib(ExplicitPackageProvide) = 4.0-1
    rpmlib(FileCaps) = 4.6.1-1
    rpmlib(FileDigests) = 4.6.0-1
    rpmlib(HeaderLoadSortsTags) = 4.0.1-1
    rpmlib(PartialHardlinkSets) = 4.0.4-1
    rpmlib(PayloadFilesHavePrefix) = 4.0-1
    rpmlib(PayloadIsBzip2) = 3.0.5-1
    rpmlib(PayloadIsLzma) = 4.4.2-1
    rpmlib(PayloadIsXz) = 5.2-1
    rpmlib(ScriptletInterpreterArgs) = 4.0.3-1
    rpmlib(TildeInVersions) = 4.10.0-1
    rpmlib(VersionedDependencies) = 3.0.3-1

Build rpm log:

# ../sbt/bin/sbt rpm:packageBin
[info] Loading project definition from /tmp/kafka-manager/project
Missing bintray credentials /root/.bintray/.credentials. Some bintray features depend on this.
[info] Set current project to kafka-manager (in build file:/tmp/kafka-manager/)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-nop/jars/slf4j-nop-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-simple/jars/slf4j-simple-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]
[warn] Credentials file /root/.bintray/.credentials does not exist
[info] Wrote /tmp/kafka-manager/target/scala-2.11/kafka-manager_2.11-1.3.0.4.pom
[info] Packaging /tmp/kafka-manager/target/scala-2.11/kafka-manager_2.11-1.3.0.4-web-assets.jar ...
[info] Done packaging.
[info] Building target platforms: noarch-yahoo-Linux
[info] Building for target noarch-yahoo-Linux
[info] Executing(%install): /bin/sh -e /tmp/sbt_67879e6a/rpm-tmp.N6NBOY
[error] + umask 022
[error] + cd /tmp/kafka-manager/target/rpm/BUILD
[error] + '[' /tmp/kafka-manager/target/rpm/buildroot '!=' / ']'
[error] + rm -rf /tmp/kafka-manager/target/rpm/buildroot
[error] ++ dirname /tmp/kafka-manager/target/rpm/buildroot
[error] + mkdir -p /tmp/kafka-manager/target/rpm
[error] + mkdir /tmp/kafka-manager/target/rpm/buildroot
[error] + LANG=C
[error] + export LANG
[error] + unset DISPLAY
[error] + '[' -e /tmp/kafka-manager/target/rpm/buildroot ']'
[error] + mv /tmp/kafka-manager/target/rpm/tmp-buildroot/etc /tmp/kafka-manager/target/rpm/tmp-buildroot/usr /tmp/kafka-manager/target/rpm/tmp-buildroot/var /tmp/kafka-manager/target/rpm/buildroot
[error] + /usr/lib/rpm/check-buildroot
[error] + /usr/lib/rpm/brp-compress
[error] + /usr/lib/rpm/brp-strip /usr/bin/strip
[error] + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
[error] + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
[info] Processing files: kafka-manager-1.3.0.4-1.noarch
[info] Provides: config(kafka-manager) = 1.3.0.4-1
[info] Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
[info] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[info] Requires(pre): /bin/sh
[info] Requires(post): /bin/sh
[info] Requires(preun): /bin/sh
[info] Requires(postun): /bin/sh
[info] Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/kafka-manager/target/rpm/buildroot
[info] Wrote: /tmp/kafka-manager/target/rpm/RPMS/noarch/kafka-manager-1.3.0.4-1.noarch.rpm
[info] Executing(%clean): /bin/sh -e /tmp/sbt_67879e6a/rpm-tmp.LOMfe7
[error] + umask 022
[error] + cd /tmp/kafka-manager/target/rpm/BUILD
[error] + /bin/rm -rf /tmp/kafka-manager/target/rpm/buildroot
[error] + exit 0
[success] Total time: 34 s, completed 22-Jan-2016 07:28:17

@alexshadow007
Copy link
Contributor

@keyboardfann
Copy link
Author

Hi @alexshadow007,
Thank you for replying, I test the rpm and work fine . Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants