Bug 1469282 - tracer-common should require python3-argcomplete
Summary: tracer-common should require python3-argcomplete
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tracer
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Kadlčík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1504474 1505471 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-10 20:26 UTC by Kevin Fenzi
Modified: 2018-05-09 16:13 UTC (History)
10 users (show)

Fixed In Version: tracer-0.7.0-1.fc26 tracer-0.7.0-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-30 22:02:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kevin Fenzi 2017-07-10 20:26:58 UTC
tracer-common installs a: 

/etc/bash_completion.d/tracer file that contains: 

eval "$(register-python-argcomplete tracer)"

register-python-argcomplete is in the python3-argcomplete package, if it's not installed, every login gives you: 

bash: register-python-argcomplete: command not found

Comment 1 Jakub Kadlčík 2017-07-11 03:50:20 UTC
Thank you Kevin,
this is already fixed in upstream.

New release needs to be done.

Comment 2 Fedora Update System 2017-07-11 09:20:37 UTC
tracer-0.6.13-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-19e5b97629

Comment 3 Fedora Update System 2017-07-11 09:20:43 UTC
tracer-0.6.13-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a78a7cee02

Comment 4 Fedora Update System 2017-07-11 09:20:48 UTC
tracer-0.6.13-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0e8d47812d

Comment 5 Fedora Update System 2017-07-12 05:23:20 UTC
tracer-0.6.13-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a78a7cee02

Comment 6 Fedora Update System 2017-07-12 05:29:00 UTC
tracer-0.6.13-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0e8d47812d

Comment 7 Fedora Update System 2017-07-12 08:37:42 UTC
tracer-0.6.13-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-19e5b97629

Comment 8 Fedora Update System 2017-07-26 12:46:59 UTC
tracer-0.6.13-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-6aed43ddbe

Comment 9 Fedora Update System 2017-07-26 23:17:27 UTC
tracer-0.6.13-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-6aed43ddbe

Comment 10 Fedora Update System 2017-08-01 20:02:52 UTC
python-argcomplete-1.7.0-2.el7 tracer-0.6.13-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-6aed43ddbe

Comment 11 Fedora Update System 2017-08-02 21:19:19 UTC
python-argcomplete-1.7.0-2.el7, tracer-0.6.13-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-6aed43ddbe

Comment 12 Jan Kurik 2017-08-15 09:17:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 13 Fedora Update System 2017-08-21 14:43:16 UTC
tracer-0.6.13-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1ea755452d

Comment 14 Fedora Update System 2017-08-23 06:33:32 UTC
tracer-0.6.13-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1ea755452d

Comment 15 Fedora Update System 2017-09-06 14:49:34 UTC
tracer-0.6.13-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2017-09-11 21:59:13 UTC
tracer-0.6.13.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-037d9e0cd3

Comment 17 Fedora Update System 2017-09-11 21:59:21 UTC
tracer-0.6.13.1-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-fa8f3ad48e

Comment 18 Fedora Update System 2017-09-12 01:24:26 UTC
tracer-0.6.13.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-037d9e0cd3

Comment 19 Fedora Update System 2017-09-12 02:21:55 UTC
tracer-0.6.13.1-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-fa8f3ad48e

Comment 20 Kamil Páral 2017-09-12 10:50:38 UTC
This is not correctly fixed. First of all, /etc/bash_completion.d/tracer is included in tracer-common, but tracer-common does not have any real requires:

$ rpm -ql tracer-common
/etc/bash_completion.d/tracer
...

$ rpm -q --requires tracer-common 
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

So if you have just tracer-common, you'll still encounter this bug.

Second, the requires is in python3-tracer, but incorrect:
$ rpm -q --requires python3-tracer
python-argcomplete
...

It should be python3-argcomplete.

$ dnf provides **/register-python-argcomplete
python3-argcomplete-1.8.2-2.fc26.noarch : Bash tab completion for argparse
Repo        : fedora


So either make tracer-common require python3-argcomplete, or move the bash completion file to python3-tracer (and make it require python3-argcomplete).


python3-tracer-0.6.13.1-1.fc26.noarch
python2-tracer-0.6.13.1-1.fc26.noarch
tracer-common-0.6.13.1-1.fc26.noarch

Comment 21 Sean O'Keeffe 2017-09-12 11:08:02 UTC
Would this be because its using Suggests? https://github.com/FrostyX/tracer/blob/master/tracer.spec#L92

We might have to let make the bash completion script exit cleanly if register-python-argcomplete isn't available.

Comment 22 Kamil Páral 2017-09-12 11:53:10 UTC
(In reply to Sean O'Keeffe from comment #21)
> Would this be because its using Suggests?
> https://github.com/FrostyX/tracer/blob/master/tracer.spec#L92

This is the Fedora specfile:
https://src.fedoraproject.org/rpms/tracer/blob/master/f/tracer.spec#_64

But as you can see in the rpm output above, the package is actually using requires. Not sure how to explain that.

> We might have to let make the bash completion script exit cleanly if
> register-python-argcomplete isn't available.

That's also a valid approach.

Comment 23 Fedora Update System 2017-10-02 21:52:00 UTC
tracer-0.6.13.1-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bb97b4d465

Comment 24 Fedora Update System 2017-10-02 21:52:14 UTC
tracer-0.6.13.1-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-98104623b5

Comment 25 Fedora Update System 2017-10-06 03:22:33 UTC
tracer-0.6.13.1-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-98104623b5

Comment 26 Fedora Update System 2017-10-06 03:24:37 UTC
tracer-0.6.13.1-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bb97b4d465

Comment 27 Kamil Páral 2017-10-27 12:25:16 UTC
*** Bug 1505471 has been marked as a duplicate of this bug. ***

Comment 28 Jean-Claude 2017-12-17 10:29:50 UTC
Same problem on Fedora 27 :

-bash: register-python-argcomplete: command not found
[root@XXXX ~]# grep -r register-python-argcomplete /etc/
/etc/bash_completion.d/tracer:eval "$(register-python-argcomplete tracer)"
tracer-common-0.6.13-2.fc27.noarch
[root@XXXX ~]# rpm -qif /etc/bash_completion.d/tracer
Name        : tracer-common
Version     : 0.6.13
Release     : 2.fc27
Architecture: noarch
Install Date: dim. 03 déc. 2017 16:29:33 CET
Group       : Unspecified
Size        : 33930
License     : GPLv2+
Signature   : RSA/SHA256, ven. 28 juil. 2017 05:15:32 CEST, Key ID f55e7430f5282ee4
Source RPM  : tracer-0.6.13-2.fc27.src.rpm
Build Date  : ven. 28 juil. 2017 02:54:23 CEST
Build Host  : buildvm-armv7-05.arm.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://tracer-package.com/
Summary     : Common files for tracer
Description :
Common files for tracer.


"dnf -y install python3-argcomplete python3-tracer" remove the message when bash start.

Comment 29 Dominik 'Rathann' Mierzejewski 2017-12-19 10:58:53 UTC
*** Bug 1504474 has been marked as a duplicate of this bug. ***

Comment 30 Dominik 'Rathann' Mierzejewski 2017-12-19 11:02:21 UTC
(In reply to Kamil Páral from comment #22)
> (In reply to Sean O'Keeffe from comment #21)
> > Would this be because its using Suggests?
> > https://github.com/FrostyX/tracer/blob/master/tracer.spec#L92
> 
> This is the Fedora specfile:
> https://src.fedoraproject.org/rpms/tracer/blob/master/f/tracer.spec#_64
> 
> But as you can see in the rpm output above, the package is actually using
> requires. Not sure how to explain that.

No, it's using Suggests:

https://src.fedoraproject.org/rpms/tracer/blob/master/f/tracer.spec#_65
https://src.fedoraproject.org/rpms/tracer/blob/master/f/tracer.spec#_92

I'd use Recommends here, anyway. Suggests are not pulled in by default by dnf.

> > We might have to let make the bash completion script exit cleanly if
> > register-python-argcomplete isn't available.
> 
> That's also a valid approach.

Indeed.

Comment 31 Dominik 'Rathann' Mierzejewski 2017-12-19 11:05:48 UTC
(In reply to Kamil Páral from comment #20)
> So either make tracer-common require python3-argcomplete, or move the bash
> completion file to python3-tracer (and make it require python3-argcomplete).

Seconded. This is still not fixed in Fedora 26 and 27. I haven't checked EPEL.

Comment 32 Fedora Update System 2018-04-19 21:03:57 UTC
tracer-0.7.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b437cce027

Comment 33 Fedora Update System 2018-04-19 22:37:45 UTC
tracer-0.7.0-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e2c57717ce

Comment 34 Fedora Update System 2018-04-21 04:37:48 UTC
tracer-0.7.0-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b437cce027

Comment 35 Fedora Update System 2018-04-21 06:19:01 UTC
tracer-0.7.0-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e2c57717ce

Comment 36 Fedora Update System 2018-04-23 08:38:14 UTC
tracer-0.7.0-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-5d15a730d8

Comment 37 Fedora Update System 2018-04-24 04:46:34 UTC
tracer-0.7.0-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-5d15a730d8

Comment 38 Kamil Páral 2018-04-27 15:13:48 UTC
Seems to be fixed in 0.7.0-1.fc28.

Comment 39 Fedora Update System 2018-04-30 22:02:22 UTC
tracer-0.7.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 40 Fedora Update System 2018-05-09 16:13:32 UTC
tracer-0.7.0-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.