Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

apt module fails to install build-deps for source-only package #4519

Closed
whitequark opened this issue Aug 24, 2016 · 8 comments · Fixed by #5356
Closed

apt module fails to install build-deps for source-only package #4519

whitequark opened this issue Aug 24, 2016 · 8 comments · Fixed by #5356

Comments

@whitequark
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME

apt

ANSIBLE VERSION
ansible 2.1.1.0
OS / ENVIRONMENT

Running/managing on Debian jessie x86_64

SUMMARY

The tarsnap project provides only source Debian packages in a repository (i.e. a deb-src repository only). These can be installed with apt-get build-dep tarsnap but not the equivalent apt module invocation.

STEPS TO REPRODUCE

Reproducible with this task:

- name: add tarsnap source repository key
  apt_key: id=3DA2BCE3 url=https://www.tarsnap.com/tarsnap-signing-key-2016.asc state=present
- name: add tarsnap source repository
  apt_repository: repo='deb-src http://pkg.tarsnap.com/deb-src/ ./' state=present
- name: update APT cache
  apt: update_cache=yes
- name: install tarsnap build dependencies
  apt: name=tarsnap state=build-dep
EXPECTED RESULTS

Build dependencies of package tarsnap installed

ACTUAL RESULTS
fatal: [uruz.whitequark.org]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": "tarsnap", "only_upgrade": false, "package": ["tarsnap"], "purge": false, "state": "build-dep", "update_cache": false, "upgrade": null}, "module_name": "apt"}, "msg": "No package matching 'tarsnap' is available"}                                                 
@ansibot
Copy link

ansibot commented Aug 24, 2016

@ansible ping, this issue is waiting for your response.
click here for bot help

@ansibot
Copy link

ansibot commented Sep 8, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Oct 5, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@jvantuyl
Copy link
Contributor

needs_contributor

1 similar comment
@jvantuyl
Copy link
Contributor

needs_contributor

@ansibot
Copy link

ansibot commented Oct 21, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

abadger added a commit to abadger/ansible-modules-core that referenced this issue Oct 22, 2016
builddep only requires a source package to be in the repos but our code
was checking for a binary package before running buiddep.  Reversing the
order makes it work correctly.

Fixes ansible#4519
@abadger
Copy link
Contributor

abadger commented Oct 22, 2016

@whitequark PR #5356 should fix this problem for you. I'll be merging it as soon as it passes our continuous integration tests.

@jvantuyl needs_contributor didn't work for you because this was a problem with the apt module, not apt_key. If github was sending you email about this I apologize... not sure why that would have happened; it doesn't look like you were CC'd explicitly in the comments. Also, hello! Been a long time since Engineyard.

@whitequark
Copy link
Author

@abadger Thanks!

abadger added a commit that referenced this issue Oct 22, 2016
builddep only requires a source package to be in the repos but our code
was checking for a binary package before running buiddep.  Reversing the
order makes it work correctly.

Fixes #4519
abadger added a commit that referenced this issue Oct 22, 2016
builddep only requires a source package to be in the repos but our code
was checking for a binary package before running buiddep.  Reversing the
order makes it work correctly.

Fixes #4519
karmab pushed a commit to karmab/ansible-modules-core that referenced this issue Oct 24, 2016
builddep only requires a source package to be in the repos but our code
was checking for a binary package before running buiddep.  Reversing the
order makes it work correctly.

Fixes ansible#4519
bdowling pushed a commit to bdowling/ansible-modules-core that referenced this issue Oct 28, 2016
builddep only requires a source package to be in the repos but our code
was checking for a binary package before running buiddep.  Reversing the
order makes it work correctly.

Fixes ansible#4519
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants