Page MenuHomeFreeBSD

ftp/php*-fastdfs: Remake to Master/Slave
ClosedPublic

Authored by joneum on Dec 11 2017, 9:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 1:49 PM
Unknown Object (File)
Jan 4 2024, 9:09 PM
Unknown Object (File)
Jan 2 2024, 2:54 AM
Unknown Object (File)
Dec 22 2023, 11:23 PM
Unknown Object (File)
Dec 22 2023, 12:06 AM
Unknown Object (File)
Nov 28 2023, 5:27 AM
Unknown Object (File)
Nov 28 2023, 5:26 AM
Unknown Object (File)
Nov 28 2023, 5:26 AM
Subscribers

Details

Summary

ftp/php*-fastdfs: Remake to Master/Slave Ports

PR: 223714
Submitted by: Daniel Ylitalo <daniel@blodan.se> (maintainer)

Test Plan

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

You should be able to strip the slave makefiles to

PHP_VER= XX

MASTERDIR=${.CURDIR:H}/php56-fastdfs
.include "${MASTERDIR}/Makefile"

and do the rest in the Mastermakefile

[...]
PHP_VER?= 56   # not set by a slave, so must be master
PHP_VERSIONS_ALL= 56 70 72
IGNORE_WITH_PHP= ${PHP_VERSIONS_ALL:${PHP_VER}}
PKGNAMEPREFIX=php${PHP_VER}-
[...]
ftp/php70-fastdfs/Makefile
5 ↗(On Diff #36479)

PKGNAMEPREFIX=php${PHP_VER}
this can be set in the master port makefile

7 ↗(On Diff #36479)

^ you set this in the masters makeifle too.

9 ↗(On Diff #36479)

^IGNORE_WITH_PHP=${PHP_VERSIONS_ALL:N${PHP_VER}}
you should be able to set something like that in the master makefile (where PHP_VERSIONS_ALL contains what the name says :D )

You should be able to strip the slave makefiles to

PHP_VER= XX

MASTERDIR=${.CURDIR:H}/php56-fastdfs
.include "${MASTERDIR}/Makefile"

and do the rest in the Mastermakefile

[...]
PHP_VER?= 56   # not set by a slave, so must be master
PHP_VERSIONS_ALL= 56 70 72
IGNORE_WITH_PHP= ${PHP_VERSIONS_ALL:${PHP_VER}}
PKGNAMEPREFIX=php${PHP_VER}-
[...]

from the PR:
Torsten Zuehlsdorff freebsd_committer 2017-12-08 13:38:31 UTC

I'm fine with the Master/Slave changes.

Since the ticket is owned by joneum: please go ahead. If testing is fine, i approve the commit.

Well, if you have the approval of @tz you can go ahead :) -- but you could still try to massage it first a bit =)

I will wait for @tz. You have suggested changes that are useful.

ftp/php56-fastdfs/Makefile
7 ↗(On Diff #36479)

Out of order.

I will wait for @tz. You have suggested changes that are useful.

Looks fine to me - please go ahead.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 13 2017, 5:23 PM
This revision was automatically updated to reflect the committed changes.