Bug 205619 - databases/pyspatialite: Unbreak and make fetchable again
Summary: databases/pyspatialite: Unbreak and make fetchable again
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Martin Wilke
URL:
Keywords: easy, needs-qa, patch
Depends on:
Blocks:
 
Reported: 2015-12-26 09:11 UTC by Rainer Hurling
Modified: 2016-01-04 05:52 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (lbartoletti)


Attachments
patch for 3.0.1-alpha-0 to unbreak and make fetchable (629 bytes, patch)
2015-12-26 09:11 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling freebsd_committer freebsd_triage 2015-12-26 09:11:00 UTC
Created attachment 164658 [details]
patch for 3.0.1-alpha-0 to unbreak and make fetchable

For some days now, databases/spatialite is marked BROKEN, because it is not able to fetch the distfile any more. 


Looking for the reason, I found, that there is a small variation between, what Mk/bsd.sites.mk wants and what the original website[1] has.

With the definition of the MASTERSITE from Mk/bsd.sites.mk via CHEESESHOP, the port wants to fetch from here:

fetch https://pypi.python.org/packages/source/p/pyspatialite-3.0.1-alpha/pyspatialite-3.0.1-alpha-0.tar.gz

The sources have a slightly different path (without '-3.0.1-alpha'):
https://pypi.python.org/packages/source/p/pyspatialite/pyspatialite-3.0.1-alpha-0.tar.gz

The problem seems to be, that CHEESESHOP uses DISTNAME also for building the path, and DISTNAME is not needed in the first part, only something like PORTNAME. The latest change to Mk/bsd.sites.mk[2] seems to be relevant:

CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:C/(.*)-[0-9].*/\1/}


Because I don't know and do not have the skills to check, if CHEESEPORT can be corrected in a more general way, I made a patch only for databases/pyspatialite and only for 'https://' to get it fetching again.


[1] https://pypi.python.org/pypi/pyspatialite/3.0.1-alpha-0
[2] http://svnweb.freebsd.org/changeset/ports/400105
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2016-01-04 05:52:54 UTC
Hi

It was fixed in another way. Thanks for your submission :)