Page MenuHomeFreeBSD

Remove support for variables that have been deprecated for a while.
ClosedPublic

Authored by mat on Dec 14 2017, 2:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 8:27 PM
Unknown Object (File)
Tue, Apr 9, 8:27 PM
Unknown Object (File)
Thu, Apr 4, 4:03 AM
Unknown Object (File)
Wed, Apr 3, 2:45 PM
Unknown Object (File)
Wed, Mar 20, 10:51 PM
Unknown Object (File)
Mar 16 2024, 8:47 AM
Unknown Object (File)
Feb 24 2024, 10:57 AM
Unknown Object (File)
Feb 15 2024, 10:30 AM
Subscribers

Details

Summary

To be exact:

variabledeprecation addedrevisionplanned expiration date
WITHOUT_NLS2013-12-13rP336337
WITH_/WITHOUT_2014-02-24rP345870
NOPORTDOCS/NOPORTEXAMPLES2014-04-19rP351587
WITH_BDB_VER2016-05-02rP4144442016-08-01
OVERRIDE_LINUX_BASE_PORT2016-09-05rP421387
WITH_OPENSSL_2016-06-16rP416965
Test Plan

I expect a big fallout from removing the way PORTDOCS/PORTEXAMPLES work, but it is unavoidable, and easily fixed.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 13862
Build 14074: arc lint + arc unit

Event Timeline

  • Of course, someone did that.
  • Also remove WITH_/WITHOUT_ support as I said.
  • Add a WARNING about the WITH_/WITHOUT_.
  • Make it actually work.
  • Add WITH_BDB_VER to the list of removed stuff.
mat retitled this revision from Remove support for NOPORTDOCS, NOPORTDOCS and WITHOUT_NLS, they have been deprecated for a while. to Remove support for variables that have been deprecated for a while..Dec 14 2017, 3:22 PM
mat edited the summary of this revision. (Show Details)
mat edited the summary of this revision. (Show Details)
  • OVERRIDE_LINUX_BASE_PORT.
  • WITH_OPENSSL_*
bapt added a subscriber: bapt.

I expect fallouts so some exp-run would be nice.
Part of this can be committed right now already.

chinese/libtabe/Makefile
48

Can be committed now :)

chinese/p5-Lingua-ZH-TaBE/Makefile
37

This can be committed separatly as in now :)

databases/ruby-bdb/Makefile
12

Can be committed now :)

www/rubygem-passenger/Makefile
47

Can be committed now :)

This revision is now accepted and ready to land.Dec 14 2017, 3:49 PM
In D13490#281980, @bapt wrote:

I expect fallouts so some exp-run would be nice.

Well, I was expecting fallout, but %%PORTDOCS%% and %%PORTEXAMPLES%% work by looking if the option is there, not if the option really exists. I'll patch it a bit more.

  • There was a hidden NOPORTxxx here.
  • Only set PORTDOCS/PORTEXAMPLES if their respective options are in OPTIONS_DEFINE.
This revision now requires review to proceed.Dec 14 2017, 4:49 PM

Ok, so with the latest patch, things error out with a:

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.1.0_schema.pgsql.sql
Error: Orphaned: %%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.pgsql.sql
Error: Orphaned: %%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.pgsql.sql
Error: Orphaned: %%PORTDOCS%%%%DOCSDIR%%/schema.pgsql.sql
Error: Orphaned: %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.1.0_schema.pgsql.sql
Error: Missing: %%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.pgsql.sql
Error: Missing: %%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.pgsql.sql
Error: Missing: %%PORTDOCS%%%%DOCSDIR%%/schema.pgsql.sql
Error: Missing: %%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%
Error: Missing: %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf

Which is going to get some wtf from people :-)

LGTM overall

Mk/bsd.sanity.mk
6–8

eh, I'd just remove this. years of warnings is enough

Mk/bsd.sanity.mk
6–8

I disagree we should say it is unsupported and even maybe replace the WARNING with an ERROR imho.

Poisonning variables that used to be documented and used for a while is very important. Lots of old documentation are still available online, on random blogs etc.

adamw added inline comments.
Mk/bsd.sanity.mk
6–8

@eadler: Join ports@ and answer the same question over and over again and you'll see why error conditions need to be spelled out explicitly :-)

Mk/bsd.sanity.mk
6–8

I was considering adding an ERROR variable, maybe I will, to make sure people update their systems.

Remove the last commit, it'll be done in a different review.

  • Move WARNING to b.sanity.m.
  • Add a show-error target that, well, show errors, and move NOPORTDOCS,
  • These are actually user facing variables, not dev ones.
  • correct target name.
  • A bit more verbose about what to do.
  • Make this an error too.
  • Cleanup bsd.sanity.mk a bit more.
mat marked 8 inline comments as done.Dec 28 2017, 12:30 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 9 2018, 7:41 AM
This revision was automatically updated to reflect the committed changes.