Bug 230760 - databases/py-sqlite3 - USES=python:37 fails with wrong file name
Summary: databases/py-sqlite3 - USES=python:37 fails with wrong file name
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-19 22:08 UTC by Joshua Baillie
Modified: 2018-12-15 11:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Baillie 2018-08-19 22:08:56 UTC
when building with:

make USES=python:3.7 install

fails with:

===>  License PSFL accepted by the user
===>   py37-sqlite3-3.7.0_7 depends on file: /usr/local/sbin/pkg - found
=> python/Python-3.7.0.tar.gz is not in /usr/ports/lang/python37/distinfo.
=> Either /usr/ports/lang/python37/distinfo is out of date, or
=> python/Python-3.7.0.tar.gz is spelled incorrectly.
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/py-sqlite3

distinfo of /usr/ports/lang/python37:

TIMESTAMP = 1530427311
SHA256 (python/Python-3.7.0.tar.xz) = 0382996d1ee6aafe59763426cf0139ffebe36984474d0ec4126dd1c40a8b3549
SIZE (python/Python-3.7.0.tar.xz) = 16922100

FIX: Decompress the .xz file and recompress with gzip. Add the SHA256 checksum to /usr/lang/python3.7/distinfo:

SHA256 (python/Python-3.7.0.tar.gz) = 7ad02f5d7c16aa8f0667dbbe2bd609b4f8da62faf5675d16caa7d9d3fc72e4c4

Port then installs correctly.
Comment 1 Yasuhito FUTATSUKI 2018-08-20 03:57:35 UTC
(In reply to Joshua Baillie from comment #0)
> make USES=python:3.7 install

This doen't work, but make FLAVOR=py37 or make USES='python:3.7 tar:xz' works fine in my FreeBSD 11.1 environment. In databases/py-sqlite3/Makefile, USES is set to 'python tar:xz'. 'make USES=python3.7' overrides it.