Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436148 - app-admin/durep-0.9-r3 specifies no runtime dependency and uses old Switch.pm
Summary: app-admin/durep-0.9-r3 specifies no runtime dependency and uses old Switch.pm
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on: 439158 445498
Blocks:
  Show dependency tree
 
Reported: 2012-09-25 01:20 UTC by Sławomir Nizio
Modified: 2012-12-01 17:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
durep-0.9-r3.ebuild.patch (durep-0.9-r3.ebuild.patch,402 bytes, patch)
2012-09-25 01:23 UTC, Sławomir Nizio
Details | Diff
durep-0.9-color-output-2.patch (durep-0.9-color-output-2.patch,3.40 KB, patch)
2012-09-25 01:23 UTC, Sławomir Nizio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Nizio 2012-09-25 01:20:09 UTC
I've noticed that app-admin/durep doesn't specify any runtime dependencies, which I'm reporting. By the way I'll attach a small patch by me that fixes this:

Switch will be removed from the Perl core distribution in the next major release
. Please install it from CPAN. It is being used at ./durep, line 17.

by switching to given/when. Note you need Perl 5.10 or newer for this. The patch I'll attach is intended to replace durep-0.9-color-output.patch.
If you don't like it, I imagine adding a dependency on virtual/perl-Switch will keep it working with Perl 5.14+ too. (Switch has been removed from Perl core in releases since 5.14.)

Reproducible: Always
Comment 1 Sławomir Nizio 2012-09-25 01:23:09 UTC
Created attachment 324908 [details, diff]
durep-0.9-r3.ebuild.patch
Comment 2 Sławomir Nizio 2012-09-25 01:23:47 UTC
Created attachment 324910 [details, diff]
durep-0.9-color-output-2.patch
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-10-18 06:48:29 UTC
Hi,

Thanks for the report and patches.

As this package is orphaned, I am not particularly familiar with it. Is there a benefit to updating the patch rather than just adding a dependency on virtual/perl-Switch?
Comment 4 Sławomir Nizio 2012-10-18 11:49:10 UTC
(In reply to comment #3)
> Hi,
> 
> Thanks for the report and patches.
> 
> As this package is orphaned, I am not particularly familiar with it. Is
> there a benefit to updating the patch rather than just adding a dependency
> on virtual/perl-Switch?

The benefit it to use a smaller and perhaps more elegant patch. (Although not immediately - the previous one could be removed only when the new ebuild is stabilised, AFAIK.)
Also, the change with colours seems to be Gentoo specific to add a feature - not even patch a bug - so why not provide a nicer "Gentoo patch" when such is available. :)
Another good thing - not adding an extra dependency. Ooh and note that durep is keyworded for ppc, and virtual/perl-Switch and perl-core/Switch are not! :)
However, adding the dependency should work too.
Comment 5 Sławomir Nizio 2012-10-18 11:51:54 UTC
Please also remember about adding the missing RDEPEND.
Comment 6 Sergey Popov gentoo-dev 2012-10-21 12:46:24 UTC
I think we should rely on perl-core/Switch and not on this patch. It looks good, but IMO it is better to rely on upstream behaviour in this case.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2012-10-23 17:52:30 UTC
(In reply to comment #6)
> I think we should rely on perl-core/Switch and not on this patch. It looks
> good, but IMO it is better to rely on upstream behaviour in this case.

Note that the proposed patch is a replacement of an existing patch, so we are already deviating from upstream behaviour.
Comment 8 Sławomir Nizio 2012-12-01 11:20:34 UTC
(In reply to comment #7)
> Note that the proposed patch is a replacement of an existing patch, so we
> are already deviating from upstream behaviour.
exactly

(In reply to comment #0)
> by switching to given/when. Note you need Perl 5.10 or newer for this.
I didn't realise it until recently, but old Perls (including < 5.10) are even masked. In other words, with this patch it works on every non-masked Perl.
Comment 9 Julian Ospald 2012-12-01 12:09:18 UTC
virtual/perl-Switch is not stable, so we cannot depend on it.


+  01 Dec 2012; Julian Ospald <hasufell@gentoo.org> durep-0.9-r3.ebuild:
+  fix dependencies wrt #436148
Comment 10 Sławomir Nizio 2012-12-01 13:30:22 UTC
You fixed the dependency but it's still broken (or it will be broken) with some newer Perl versions…
Comment 11 Julian Ospald 2012-12-01 13:38:43 UTC
(In reply to comment #10)
> You fixed the dependency but it's still broken (or it will be broken) with
> some newer Perl versions…

no, cause I enforce the working perl version
Comment 12 Michael Palimaka (kensington) gentoo-dev 2012-12-01 13:44:45 UTC
(In reply to comment #9)
> +  01 Dec 2012; Julian Ospald <hasufell@gentoo.org> durep-0.9-r3.ebuild:
> +  fix dependencies wrt #436148

CVS problems? I see the maintainership change, but not this one.
Comment 13 Julian Ospald 2012-12-01 13:51:25 UTC
(In reply to comment #12)
> (In reply to comment #9)
> > +  01 Dec 2012; Julian Ospald <hasufell@gentoo.org> durep-0.9-r3.ebuild:
> > +  fix dependencies wrt #436148
> 
> CVS problems? I see the maintainership change, but not this one.

whoops, I think it should be committed now


@Enlik

mixing stable and unstable is not supported

I could do a revbump and use virtual/perl-Switch there instead of forcing perl-5.12, but then we will have two identical versions with just differing dependencies.

I think I will just wait for virtual/perl-Switch to become stable and then fix the dep again, so it will be unlocked for ~arch users.
Comment 15 Michael Palimaka (kensington) gentoo-dev 2012-12-01 14:04:14 UTC
(In reply to comment #13)
> I could do a revbump and use virtual/perl-Switch there instead of forcing
> perl-5.12, but then we will have two identical versions with just differing
> dependencies.

Please do, pinning the perl dependency breaks ~arch.
Comment 16 Julian Ospald 2012-12-01 14:17:32 UTC
ok sry for that

I'm arch user so I'm sometimes a bit careless about ~arch

marked the virtual stable:

+  01 Dec 2012; Julian Ospald <hasufell@gentoo.org> perl-Switch-2.160.0.ebuild:
+  stable for all since =dev-lang/perl-5.12* satisfies them
+


and fixed the dep to that one:
   01 Dec 2012; Julian Ospald <hasufell@gentoo.org> durep-0.9-r3.ebuild:
+  unlock for ~arch users as well since virtual/perl-Switch is stable now
+
Comment 17 Michael Palimaka (kensington) gentoo-dev 2012-12-01 14:18:48 UTC
Great, thanks.
Comment 18 Sławomir Nizio 2012-12-01 14:21:05 UTC
You confused me to death with your previous comments. Glad to see this fixed. :)


By the way, I'd like to paste a comment I made when you made one of yours, resulting in a "mid-air conflict", because I don't want to be unclear (I might have been).

===
(In reply to comment #8)
> > by switching to given/when. Note you need Perl 5.10 or newer for this.
> I didn't realise it until recently, but old Perls (including < 5.10) are
> even masked. In other words, with this patch it works on every non-masked
> Perl.

Ugh, it might have been confusing. I meant there's no need to worry about old masked versions:
[M]5.8.8-r8 [M](~)5.10.1

and regarding new masked versions:
[M](~)5.14.1 [M](~)5.14.1-r1 [M](~)5.14.2
and even unmasked 5.16, I haven't tested it, but don't see why it wouldn't work on them.
===
Comment 19 Julian Ospald 2012-12-01 14:24:31 UTC
well I first wanted to add virtual/perl-Switch to RDEPEND, but that was not stable

then I just fixed the perl-dependency to the working version which still includes Switch (5.12), thus blocking it for ~arch users

then I realized that virtual/perl-Switch can be stabilized already, since we only need one stable provider to stabilize the whole virtual
Comment 20 Torsten Veller (RETIRED) gentoo-dev 2012-12-01 16:40:45 UTC
I think it is wrong to depend on a deprecated module (Switch) for a Gentoo downstream patch if an updated patch using the replacement feature usable with Perl 5.10 and above is already attached.

Thanks

Consider virtual/perl-Switch and perl-core/Switch masked and removed from the tree.