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

Can't specify 32 bit dependencies for RHEL systems without using --no-deps #182

Open
rpocase opened this issue Dec 3, 2016 · 0 comments

Comments

@rpocase
Copy link

rpocase commented Dec 3, 2016

The pre-build installation for dependencies does not allow you to specify the correct format for RHEL systems. You can work around this by using "--no-deps", but you then have to manually do all installation.

/usr/bin/yum -d 0 -e 0 -y list zlib(x86-32)

===> Installing package: zlib(x86-32)
FATAL: While processing depends package 'zlib(x86-32)':
FATAL: Execution of '/usr/bin/yum -d 0 -e 0 -y list zlib(x86-32)' returned 1: Error: No matching Packages to list
FATAL: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list zlib(x86-32)' returned 1: Error: No matching Packages to list

Recipe depends except:

 depends 'zlib(x86-32)', 'libX11(x86-32)'

There are a couple options for resolution offhand, but it's really just where you prefer to do the translation. Could also do both solutions for ease of user experience.

  1. Translate all (x86-32) -> .i686 at yum search time
  2. Translate all .i686 -> (x86-32) at rpm spec generation time (really, fpm call time).
  3. Do both

I tend to prefer the first method as it is closer to users who are familiar with rpm generation would expect, but the second option or both makes it possible for users to specify similar looking dependencies for both RHEL and Debian based systems.

Environment:
docker container: centos:centos6
Ruby 1.9.3
fpm-cookery v0.32.0 (fpm v1.6.3)

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

1 participant