Skip to content

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

Description

@rpocase

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions