Bug 1217352 - perl-Archive-Extract should have dependency on perl(Archive::Tar)
Summary: perl-Archive-Extract should have dependency on perl(Archive::Tar)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Archive-Extract
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-30 08:15 UTC by Paul Howarth
Modified: 2015-05-12 20:42 UTC (History)
3 users (show)

Fixed In Version: perl-Archive-Extract-0.74-3.fc21
Clone Of:
Environment:
Last Closed: 2015-05-08 07:30:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 104121 0 None None None Never

Description Paul Howarth 2015-04-30 08:15:09 UTC
Archive-Extract uses Archive::Tar (preferred to /usr/bin/tar) to extract tarballs but has no dependency on it.

Thus tangerine cannot compare tarballs without it:

$ tangerine --diff Devel-CheckBin-0.02.tar.gz Devel-CheckBin-0.03.tar.gz
You do not have 'Archive::Tar' installed - Please install it as soon as possible. at /usr/share/perl5/vendor_perl/App/Tangerine.pm line 145.
You do not have 'Archive::Tar' installed - Please install it as soon as possible. at /usr/share/perl5/vendor_perl/App/Tangerine.pm line 145.

(App::Tangerine is using Archive::Extract here)

Comment 1 Petr Pisar 2015-04-30 08:51:49 UTC
The issue with wrappers like Archive::Extract is that they allows to use pick up from many options what current RPM's dependency mechanism without virtual (=dummy packages) cannot. (Rich dependencies feature is coming but it's will take a lot of time until becoming allowed in Fedora.)

I understand that bailing out instead of getting some sane dependency is at least surprising. I will try to create the virtual packages monster and when it fails, I will just hard-code some sane default.

Comment 2 Paul Howarth 2015-04-30 08:56:32 UTC
What I found particularly surprising in this case was that there was no failover from the missing Archive::Tar to using /usr/bin/tar, which Archive::Extract *is* able to find. Upstream's documentation suggests that Archive::Tar should be tried first and then fall back to tar.

Comment 3 Petr Pisar 2015-04-30 09:16:15 UTC
> What I found particularly surprising in this case was that there was no
> failover from the missing Archive::Tar to using /usr/bin/tar, which
> Archive::Extract *is* able to find.

I tried it in Fedora 23. If tar is installed and perl-Archive-Tar is not installed, Archive::Extract works for me. But it still warns "You do not have 'Archive::Tar' installed".

> Upstream's documentation suggests that
> Archive::Tar should be tried first and then fall back to tar.

Yes, its funny module. Archive::Tar itself states that /usr/bin/tar is faster, so people concern about performance should use that.

Due to the warning I will set dependency on perl(Archive::Tar) unconditionally.

Comment 4 Fedora Update System 2015-04-30 12:39:52 UTC
perl-Archive-Extract-0.74-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/perl-Archive-Extract-0.74-2.fc22

Comment 5 Fedora Update System 2015-04-30 12:46:20 UTC
perl-Archive-Extract-0.74-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/perl-Archive-Extract-0.74-2.fc21

Comment 6 Petr Pisar 2015-04-30 13:34:23 UTC
I made a typo (unxz vs. xz) what's fatal for yum (but not for dnf:). Should be fixed in perl-Archive-Extract-0.74-3.fc23 built.

Comment 7 Fedora Update System 2015-04-30 13:35:02 UTC
perl-Archive-Extract-0.74-3.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/perl-Archive-Extract-0.74-3.fc22

Comment 8 Fedora Update System 2015-04-30 13:35:20 UTC
perl-Archive-Extract-0.74-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/perl-Archive-Extract-0.74-3.fc21

Comment 9 Fedora Update System 2015-05-01 16:39:36 UTC
Package perl-Archive-Extract-0.74-3.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-Archive-Extract-0.74-3.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7300/perl-Archive-Extract-0.74-3.fc22
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2015-05-08 07:30:11 UTC
perl-Archive-Extract-0.74-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-05-12 20:42:23 UTC
perl-Archive-Extract-0.74-3.fc21 has been pushed to the Fedora 21 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.