Comments (3)
I found I had to set auto-req = "no" and provide my own dependencies to work around this.
from cargo-generate-rpm.
@jeking3 as you mentions, workaround is to disable the automatic dependency process with setting auto-req = "no".
If /usr/lib/rpm/find-requires
(rpm builtin program) does not exist on your system, cargo-generate-rpm
executes ldd
and parses its output. So, could you please share the output of ldd release/release/cloudtruth
?
from cargo-generate-rpm.
I'll close this out because it appears to be working now.
I should mention I run this in the rust:1.52.1-alpine container (to make the RPM), so perhaps that's part of the problem:
On alpine:
bash-5.1$ ldd !$
ldd target/release/cloudtruth
/lib/ld-musl-x86_64.so.1 (0x7f6ed8af3000)
libssl.so.1.1 => /lib/libssl.so.1.1 (0x7f6ed8387000)
libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7f6ed8106000)
libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f6ed8af3000)
bash-5.1$ cargo-generate-rpm
/lib/ld-musl-x86_64.so.1: cannot load -v: No such file or directory
Then on centos 8:
[root@a680fea297fb cli]# rpm -q --requires target/generate-rpm/cloudtruth-0.5.4-1.x86_64.rpm
rtld(GNU_HASH)
/bin/sh
[root@92a65b653b44 /]# rpm -i /cli/target/generate-rpm/cloudtruth-0.5.4-1.x86_64.rpm
[root@92a65b653b44 /]# cloudtruth --version
cloudtruth 0.5.4
[root@92a65b653b44 /]#
The -v
error is odd, but what's coming out now seems to be working. I tested with v0.4.0
of cargo-generate-rpm
.
from cargo-generate-rpm.
Related Issues (20)
- Add --separate-debug-symbols option similar to cargo deb HOT 1
- Out of date documentation on --auto-req options in readme HOT 1
- rpmlib(PayloadIsZstd) = 5.4.18-1 is needed HOT 2
- End of RPMv3 (e.g., centos7) support
- Unexpected behavior from --auto-req /path/to/find-requires
- Different metadata overwrite behavior than the document
- Can't run as cargo subcommand HOT 2
- Versions above 0.14.0 i.e. 0.14.1 and 0.15.0 dont work at all HOT 1
- using RPM macro scriptlets / BuildRequires
- The `--set-metadata` option does not overwrite/set metadata anymore HOT 4
- Adding empty directories via %dir
- %files %dir and sections of rpm spec files HOT 1
- error: unpacking of archive failed on file /lib/systemd/system/xxx.service;6496c577: cpio: Digest mismatch HOT 3
- Feature Request: allow not replacing config files HOT 5
- RPM is not readable by rpmlint HOT 4
- Could not generate generate-rpm in case of --target specified HOT 2
- Failed dependencies: libc.so.6(GLIBC_2.29)(64bit) is needed when install generated .rpm package HOT 1
- Issue with generate RPM not matching the PowerPC64 LE architecture HOT 3
- [Feature-Request] Add `%pretrans %posttrans`? HOT 1
- Building rpm for `foo-bar` package means `foo-bar/Cargo.toml` must exists? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-generate-rpm.