Page MenuHomeFreeBSD

Modernize and flavourize p5-RT extension ports
ClosedPublic

Authored by matthew on Sep 22 2018, 11:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 11:52 PM
Unknown Object (File)
Fri, Dec 13, 6:26 AM
Unknown Object (File)
Tue, Nov 26, 2:57 PM
Unknown Object (File)
Nov 12 2024, 7:01 AM
Unknown Object (File)
Nov 11 2024, 11:04 PM
Unknown Object (File)
Nov 11 2024, 11:01 PM
Unknown Object (File)
Nov 11 2024, 10:58 PM
Unknown Object (File)
Oct 26 2024, 6:16 AM
Subscribers

Details

Reviewers
None
Group Reviewers
portmgr
Commits
rP497055: Modernize and flavourize RT Extension ports
Summary

Convert the RT{40,42,44} options to new rt42 and rt44 flavours.

Drop all references to www/rt40 -- no longer in ports

Default flavour is rt44, but several of these modules only support
rt42.

Ensure @rt42 flavour conflicts with www/rt44 port and vice-versa

Review by portmgr@ due to introduction of new flavours. This adds less than 10 additional
ports to the 'to build' list.

Re-order various sections and re-roll one patch to placate portlint

Update p5-RT-Extension-MandatoryOnTransition to 0.16; all other
modules get a PORTREVISION bump.

Test Plan

poudriere test builds; 10.4, 11.1 release; i386, amd64; all flavours.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 23271
Build 22306: arc lint + arc unit

Event Timeline

matthew added a reviewer: portmgr.

Is flavoring really needed? number of packages is exploding and now exp-run take several days to complete.

Is flavoring really needed? number of packages is exploding and now exp-run take several days to complete.

Flavoring here is about as necessary as it is for any other flavored packages: this is nothing special in that respect.
It's only a tiny increment in the number of packages compared to eg. adding PHP and Python flavors, and the packages
don't involve any compilation or other strenuous activity to generate.

www/p5-RT-Authen-ExternalAuth/Makefile
22

Having one flavor makes very little sense.

www/p5-RT-Extension-CommandByMail/Makefile
20

So, this port really conflicts with the rt44 port? Should it not be p5-RT-Extension-CommandByMail-rt44?

24

It took me about a few minutes rereading of this line before understanding wtf it was doing.

Adding a a line with:

FLAVOR?=	${FLAVORS:[1]}

Would allow this to be a really more readable ${FLAVOR} == rt42.

www/p5-RT-Extension-Gravatar/Makefile
20

Same here.

24

Same here.

www/p5-RT-Extension-LDAPImport/Makefile
26

Same.

30

Same.

www/p5-RT-Extension-MandatoryOnTransition/Makefile
19

Same.

23

Same.

www/p5-RT-Extension-QuickAssign/Makefile
17–18

One flavor makes no sense.

www/p5-RT-Extension-SLA/Makefile
16–19

One flavor.

www/p5-RTx-Calendar/Makefile
24

same.

28

same.

38

Why +=?

  • Import D17285 changes
  • Don't use flavours where there's only one choice. These modules are
  • No PORTREVISION bump if all we're doing is dropping support for the
  • Set FLAVOR so flavourization actually happens...
  • rtXX_PKGNAMEPREFIX should always end in a -
matthew marked 12 inline comments as done.
  • No need to test for undefinedness as we always set ${FLAVOR} a few
  • Fix longstanding error USES+=perl5 -> USES=perl5

Revive this review after far too long. Address all of @mat's points.

www/p5-RT-Extension-CommandByMail/Makefile
20

The rt42 flavoured port should conflict with rt44. I reworked this to use a PKGNAMEPREFIX as that seems to be the convention for add-on modules, rather than stand-alone applications.

I had a quick look, it looks good to me.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 28 2019, 7:26 PM
This revision was automatically updated to reflect the committed changes.