Page MenuHomeFreeBSD

Uses/Mk/mysql.mk: Improve warning/error messages
Needs ReviewPublic

Authored by brnrd on Apr 30 2016, 9:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 3, 10:54 PM
Unknown Object (File)
Sat, Sep 21, 12:48 PM
Unknown Object (File)
Sep 3 2024, 5:12 PM
Unknown Object (File)
Aug 21 2024, 6:10 PM
Unknown Object (File)
Aug 11 2024, 9:42 PM
Unknown Object (File)
Jul 29 2024, 1:37 PM
Unknown Object (File)
Jul 24 2024, 8:18 PM
Unknown Object (File)
Jul 24 2024, 4:44 PM
Subscribers
None

Details

Reviewers
feld
mat
koobs
Group Reviewers
O5: Ports Framework(Owns No Changed Paths)
portmgr
Summary

Proposed commit log

Uses/Mk/mysql.mk: Improve warning/error messages

  - Generate the actual package name for error messages
  - Add warning message when WITH_MYSQL_VER is set

Reviewed_by:	feld (mentor), koobs (mentor), mat (portmgr)
Approved by:	(mentor)
Differential_Revision:  D6157
Test Plan
  • Test with WITH_MYSQL_VER set
  • Test make in mariadb55-server with mariadb100-server installed

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 5506
Build 5731: arc lint + arc unit

Event Timeline

brnrd retitled this revision from to Uses/Mk/mysql.mk: Improve warning/error messages.
brnrd updated this object.
brnrd edited the test plan for this revision. (Show Details)
brnrd added reviewers: feld, koobs, mat.
brnrd edited edge metadata.
Mk/Uses/mysql.mk
57

Also add a "Support for WITH_MYSQL_VER will be removed on XXXX" in, say, like 3 months, at which time, it will be a .error

86–92

why not use the already existing _PERCONA and _MARIADB ?

Or rewrite the previous _PERCONA and _MARIADB to something more complex that will only set _MYSQL_FLAVOR.

brnrd marked 2 inline comments as done.

Note deprecation of DEFAULT_MYSQL_VER and WITH_MYSQL_VER in warning message

Mk/Uses/mysql.mk
57

Agree.
Taken the liberty to do the same for DEFAULT_MYSQL_VER.

86–92

There are no occurences of WITH_MYSQL_VER apart from Mk/Uses/mysql.mk in the ports tree.
_MYSQL_FLAVOUR relates to the currently installed version whereas _WITH_MYSQL_FLAVOUR relates to the global variable WITH_MYSQL_VER that is set by the user in /etc/make.conf.

Mk/Uses/mysql.mk
54–55

You should use DEFAULT_VERSIONS+=foo

brnrd edited edge metadata.

Use += on DEFAULT_VERSIONS assigments

brnrd added inline comments.
Mk/Uses/mysql.mk
54–55

Done!

brnrd marked an inline comment as done.
brnrd edited edge metadata.

Rewrite _FLAVOUR to something more complex

  • Use :C/// modifiers to display correct error messages
  • Rework _MYSQL_FLAVOUR to use :C///
  • Use indentation on nested conditionals
  • Sort flavours alphabetically
Mk/Uses/mysql.mk
54

This should be DEFAULT_VERSIONS+=