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

unable to find a package from yum repo #187

Open
tjskanth opened this issue May 5, 2017 · 0 comments
Open

unable to find a package from yum repo #187

tjskanth opened this issue May 5, 2017 · 0 comments

Comments

@tjskanth
Copy link

tjskanth commented May 5, 2017

Hello,

I'm trying to build a tomcat-7.0.50 package on docker container which has dependencies. These dependencies are already in my yum repo and I'm able to install using yum command. But trying with fpm-cook I'm getting the below error.

[[email protected] single]$ sudo docker run -ti --rm -v $(pwd):/tmp/rpm-build docker.sri.com/tops-base/build "cd /tmp/rpm-build; ./build.sh recipes/fpm-cookery/tomcat-7.0.50"

Building package recipes/fpm-cookery/tomcat-7.0.50 (type fpm-cookery)

  • cd recipes/fpm-cookery/tomcat-7.0.50
  • fpm-cook --pkg-dir /tmp/rpm-build/artifacts/ --color
    Support for Ruby 1.8.x in Addressable is deprecated.
    ===> Starting package creation for sri-apache-tomcat-7.0.50 (centos, rpm)
    ===>
    ===> Verifying build_depends and depends with Puppet
    ===> Verifying package: sri-apr = 1.1.29
    ===> Verifying package: sri-tomcat-jar = 7.0.50
    ===> Missing/wrong version packages: sri-apr = 1.1.29, sri-tomcat-jar = 7.0.50
    ===> Running as root; installing missing/wrong version build_depends and depends with Puppet
    ===> Installing package: sri-apr = 1.1.29
    FATAL: While processing depends package 'sri-apr = 1.1.29':
    FATAL: Execution of '/usr/bin/yum -d 0 -e 0 -y list sri-apr = 1.1.29' 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 sri-apr = 1.1.29' returned 1: Error: No matching Packages to list
  • exit 1

But trying to dig about that package on that container, I'm getting the below result
[

[email protected] single]$ sudo docker run -ti --rm -v $(pwd):/tmp/rpm-build docker.sri.com/tops-base/build "/usr/bin/yum -d 0 -e 0 -y list sri-apr = 1.1.29/usr/bin/yum -d 0 -e 0 -y list sri-apr = 1.1.29; echo $?"

Available Packages
sri-apr.x86_64 1.1.29-0 updates-sri
0

Can you please give me a suggestion how to solve this issue. My versions are fpm-cookery (0.32.0), ruby 1.8.7.

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