Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575338 - app-arch/torrentzip-0.2-r2: invalid SRC_URI and other issues
Summary: app-arch/torrentzip-0.2-r2: invalid SRC_URI and other issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-21 23:21 UTC by Alexander Miller
Modified: 2016-03-22 10:13 UTC (History)
2 users (show)

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


Attachments
torrentzip-0.9_pre9.ebuild (torrentzip-0.9_pre9.ebuild,683 bytes, text/plain)
2016-02-21 23:21 UTC, Alexander Miller
Details
torrentzip-0.2-r3.ebuild (torrentzip-0.2-r3.ebuild,643 bytes, text/plain)
2016-02-21 23:25 UTC, Alexander Miller
Details
fix-perms.patch (fix-perms.patch,335 bytes, patch)
2016-03-07 19:06 UTC, Alexander Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Miller 2016-02-21 23:21:21 UTC
Created attachment 426154 [details]
torrentzip-0.9_pre9.ebuild

There are several issues with the new torrentzip ebuild:
* Sourceforge code-snapshots are not stable download URIs.¹
  When I tried to download $SRC_URI, I got a 404. After visiting
  <https://sourceforge.net/p/trrntzip/code/9/tree/> and clicking
  on "Download Snapshot" the URI would work, but I got an archive
  with different checksums.
  Threfore the SRC_URI must be replaced with mirror://gentoo/...
* Renaming the source archive is wrong. The original name is just
  fine and the new name is misleading because it's NOT version 0.2.
* A revision bump is not enough when switching to a newer code base.
  This needs a proper version bump. The last release was 0.2 but
  the snapshot is svn rev. r9 and identifies itself as v0.9, so
  0.9_pre9 looks like a good ebuild version.
* Missing deps: sys-libs/zlib is missing from RDEPEND and
  app-arch/unzip is needed in DEPEND.
* The new and old versions create different archives (when they
  contain subdirectories).² This defeats the original purpose of
  the tool.
  I suggest to put this version in package.mask and resurrect the
  real version 0.2 (see next comment).

In the attached ebuild I've
* fixed the issues above,
* bumped to EAPI=6 and used default phases where possible
* replaced the build fix I suggested in bug 514634 with a simpler
  solution: unconditionally define the needed macro in CPPFLAGS.

In order to use the ebuild you need to manually add the code snapshot
to the gentoo mirrors, with its original name "trrntzip-code-9.zip"
or change the archive name in SRC_URI. But don't use "torrentzip-0.2.zip".
If you change the ebuild version scheme, you need to adjust MY_P.

-- 
¹) Somewhat unrelated note: there are 3 other ebuilds where SRC_URI
   contains http://sourceforge.net/code-snapshots/. They may need to
   be fixed, too.
²) I think the changes breaking compatibility were in r6 (aka v0.8).
   Revision r5 (v0.3) may be good but I don't think it's worth to
   introduce that version.
Comment 1 Alexander Miller 2016-02-21 23:25:53 UTC
Created attachment 426156 [details]
torrentzip-0.2-r3.ebuild

Here is a working ebuild for the 0.2 release. It needs the patch from
the old 0.2-r1 ebuild and therefore has EAPI=5.
Comment 2 Pacho Ramos gentoo-dev 2016-02-22 09:16:05 UTC
Alexander, were you going to finally be set as proxy maintainer for this or...? It looks like you were not added to metadata after solving bug 514634 but I am not sure if that was simply missed :/
Comment 3 Alexander Miller 2016-02-22 11:52:58 UTC
Hi Pacho, nobody has talked about proxy maintainership with me, yet.
I've only posted a patch to that bug, after that I was no longer
involved. Now I've seen the updated ebuild and noticed some issues,
so I have merged my wip and posted the result here.

Apparently Malcolm has created the current 0.2-r2 ebuild with
monsieurp supervising and committing the work. Maybe you should
ask monsieurp what they have planned.
Comment 4 Pacho Ramos gentoo-dev 2016-02-25 12:19:58 UTC
I will CC him to try to know about that plans but, anyway, I doubt there will be any problem letting you to proxy maint this (or co maintain it) to try to get things fixed sooner :)
Comment 5 Patrice Clement (RETIRED) gentoo-dev 2016-03-07 13:53:18 UTC
commit d36ec383a7997fb49782e76db5f80e6745fa0315 (HEAD -> master)
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Mon Mar 7 13:39:10 2016 +0000

app-arch/torrentzip: Fix invalid SRC_URI.

Gentoo-Bug: https://bugs.gentoo.org/575338
Reporter: Alexander Miller <alex.miller@gmx.de>
Acked-by: Patrice Clement <monsieurp@gentoo.org>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: portage-2.2.26

app-arch/torrentzip/Manifest                 |  1 +
app-arch/torrentzip/torrentzip-0.2-r3.ebuild | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 app-arch/torrentzip/torrentzip-0.2-r3.ebuild
Comment 6 Patrice Clement (RETIRED) gentoo-dev 2016-03-07 13:54:15 UTC
Alexander if you want to proxy maint this ebuild let me know.
Comment 7 Alexander Miller 2016-03-07 17:37:13 UTC
In reply to Comment #6:
> Alexander if you want to proxy maint this ebuild let me know.

If nobody else is interested I can probably do that. My interest
in this package isn't that great, but it doesn't seem to be too
much work either, an I think I know enough to keep it going.

Regarding your commit: I noticed yo have dropped fix-perms.patch
from my ebuild (which I inherited from the ancient broken ebuild).
I think it's still needed for bug #182628 or am I missing something?
Comment 8 Patrice Clement (RETIRED) gentoo-dev 2016-03-07 18:08:18 UTC
The patch isn't in the tree: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-arch/torrentzip/files 

or is it? :/ I can't see it.
Comment 9 Alexander Miller 2016-03-07 19:06:45 UTC
Created attachment 427688 [details, diff]
fix-perms.patch

The patch is no longer in the tree, you removed it on 16 Feb 2016.
(You could find in the tree's git history or in the last comment of
the bug linked above, but) I've attached it here for your convenience.
Comment 10 Alexander Miller 2016-03-21 00:52:43 UTC
Reopening since the patch for old bug #182628 is still missing
from the committed ebuild and I haven't heard anything for 2 weeks.
Comment 11 Patrice Clement (RETIRED) gentoo-dev 2016-03-22 10:13:05 UTC
commit 1955ba94cadb967b66cc7bdc9bd607c77072f400 (HEAD -> master)
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: Tue Mar 22 09:58:59 2016 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Tue Mar 22 09:58:59 2016 +0000

app-arch/torrentzip: Fix SRC_URI. Bump to EAPI 6. Bump to version 0.9

Also assign package to Alexander Miller <alex.miller@gmx.de>.

Gentoo-Bug: https://bugs.gentoo.org/575338

Package-Manager: portage-2.2.26

app-arch/torrentzip/Manifest                             |  4 ++--
app-arch/torrentzip/files/torrentzip-0.2-fix-perms.patch | 11 +++++++++++
app-arch/torrentzip/metadata.xml                         | 11 ++++++++++-
app-arch/torrentzip/torrentzip-0.2-r2.ebuild             | 42 ------------------------------------------
app-arch/torrentzip/torrentzip-0.2-r3.ebuild             | 32 --------------------------------
app-arch/torrentzip/torrentzip-0.2-r4.ebuild             | 33 +++++++++++++++++++++++++++++++++
app-arch/torrentzip/torrentzip-0.9.ebuild                | 31 +++++++++++++++++++++++++++++++
7 files changed, 87 insertions(+), 77 deletions(-)
create mode 100644 app-arch/torrentzip/files/torrentzip-0.2-fix-perms.patch
delete mode 100644 app-arch/torrentzip/torrentzip-0.2-r2.ebuild
delete mode 100644 app-arch/torrentzip/torrentzip-0.2-r3.ebuild
create mode 100644 app-arch/torrentzip/torrentzip-0.2-r4.ebuild
create mode 100644 app-arch/torrentzip/torrentzip-0.9.ebuild


Thank you Alex.