Bug 214882

Summary: Allow CentOS distfiles to be downloaded from CR repo
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Ports FrameworkAssignee: freebsd-emulation (Nobody) <emulation>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: emulation, rene, tijl
Priority: --- Flags: pkubaj: maintainer-feedback? (emulation)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2016-11-27 15:50:06 UTC
Created attachment 177451 [details]
patch

This change makes it possible to upgrade to the newer CentOS release before such is available. Of course packages still need to be bumped, but with this change we don't have to wait for e.g. CentOS 7.3 to upgrade to 7.3's packages.
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2016-11-27 17:02:23 UTC
For now I think it would be better to restrict this to the ports that need to be updated (currently libgcrypt and nss).  You can just set MASTER_SITES in their Makefile:

MASTER_SITES= CENTOS/centos/${LINUX_DIST_VER}/cr/x86_64/Packages
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2016-11-27 17:08:10 UTC
(In reply to Tijl Coosemans from comment #1)
I know, it's just that there's a lot of ports to be updated:
http://mirror.centos.org/centos/7.2.1511/cr/x86_64/Packages/

And those custom settings will need to be backed out after upgrading to e.g. 7.3, so it's a double work.

7.3 doesn't really matter, as it will be released soon anyway, but adding those entries to linux.mk will make upgrading to 6.9 and 7.4 quicker.
Comment 3 Tijl Coosemans freebsd_committer freebsd_triage 2016-11-27 17:48:28 UTC
(In reply to Piotr Kubaj from comment #2)
For now only libgcrypt and nss need to be updated because of outstanding security issues.  The others can wait until 7.3 is released.  You can of course already work on them on your machine, but the ports tree should not contain prerelease packages unless there's no alternative.