Page MenuHomeFreeBSD

Update editors/texstudio to 2.12.8
ClosedPublic

Authored by fernape on Apr 9 2018, 9:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 18, 7:17 AM
Unknown Object (File)
Wed, Sep 18, 12:39 AM
Unknown Object (File)
Sat, Sep 7, 8:53 AM
Unknown Object (File)
Thu, Sep 5, 7:15 AM
Unknown Object (File)
Aug 16 2024, 11:27 PM
Unknown Object (File)
Aug 15 2024, 8:19 PM
Unknown Object (File)
Aug 13 2024, 3:10 PM
Unknown Object (File)
Aug 12 2024, 8:20 AM
Subscribers

Details

Summary

This comes from PR 227097

Maintainer sent update to 2.12.6 but while processing this PR, 2.12.8 came out
so I went directly for that one.

Maintainer will be notified in the PR.

Changes:

  • Update to 2.12.8
  • USE_GITHUB since this release is only in GH and not in SF
  • Add LICENSE according to project's site (no license file is provided)
  • Use DISTVERSION instead of PORTVERSION
  • Flavorize port and make qt5 default (as in the old version)
Test Plan
  • portlint -AC OK
  • run test in 11.1 amd64 OK
  • poudriere build logs for {10.3,10.4,11.1}{i386, amd64}, 12i386 availables at:

https://www.dropbox.com/sh/wcrnvdlqc2x6sop/AACj0aClm5_m_60q7cLAUIExa?dl=0

  • test in CURRENT is on its way (it will take a bit longer to finish...)

Diff Detail

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

Event Timeline

Hi.

I was not aware about the change to Github.

EDIT: btw, I am not the maintainer. ^^

Thanks!

editors/texstudio/Makefile
20 ↗(On Diff #41305)

^ I think the first flavor should be the default. So if

FLAVORS= qt4 qt5
FLAVOR?=	${FLAVORS:[1]}
40 ↗(On Diff #41305)

you should set this as
qt5_LIB_DEPENDS=... and qt4_LIB_DEPENDS=..., see 7.2.1 Falvor Helpers

See also 15.7. Flavors -- so you can move those two up a bit :)

editors/texstudio/Makefile
20 ↗(On Diff #41305)

YES, the default flavor must be the first.

47–51 ↗(On Diff #41305)

This should happen earlier. See Chapter 15. Order of Variables in Port Makefiles.

Addressing issues:

  • Move USE block up (mat)
  • Make first FLAVOR the default (mat, tcberner): qt5 as in the current port
fernape edited the test plan for this revision. (Show Details)
editors/texstudio/Makefile
34 ↗(On Diff #41372)

This should be in the FLAVORS block up there. See Chapter 15. Order of Variables in Port Makefiles.

Also, why +=?

41 ↗(On Diff #41372)

This should be in the FLAVORS block up there. See Chapter 15. Order of Variables in Port Makefiles.

Also, why +=?

fernape added inline comments.
editors/texstudio/Makefile
34 ↗(On Diff #41372)

This is a (bad?) habit that I have. Does it harm? because I see the benefit in case someone does a copy-paste. With '=' we would overwrite the previous value. Anyway this was pointed out to me before by tcberner so I'll change it if it is not considered quality code :)

About the other thing, if I move the .if ${FLAVOR} up just below FLAVORS= then portlint complains about "USE_* seen before USES."

Addressing issues:

  • Use FLAVOR helpers for LIB_DEPENDS (tcberner)
  • Move .if ${FLAVOR}... block up (mat)

Hi,

Are there any more required changes for this port?

From my side it looks good -- mostly; you can move the qt4_LIB_DEPENDS and qt5_LIB_DEPENDS outside of the if.

As you're adding flavors, you're also required the OK of a portmgr before you can commit it.

This revision is now accepted and ready to land.Apr 18 2018, 6:25 PM
editors/texstudio/Makefile
39–40 ↗(On Diff #41453)

This must happen earlier.

34 ↗(On Diff #41372)

When you use += it means you are adding to the variable, it means it was already defined. If you use += on an undefined variable, nobody understands why you are doing the +=. Most of the time, it is because the variable was defined with some value before, and you needed to append, but the definition is no longer there, and maybe the appending is no longer needed.

So, only, ever, use += for the variables that are set earlier in the Makefile, or for the variables that are allowed to be set in make.conf like CFLAGS/CXXFLAGS/LDFLAGS. In all other case, never use +=.

fernape marked an inline comment as done.

Move USES earlier.

Pointed out by mat@

portlint -AC OK

This revision now requires review to proceed.May 15 2018, 8:58 PM
fernape added inline comments.
editors/texstudio/Makefile
34 ↗(On Diff #41372)

Understood. Thanks!

Hi there :)

Does this revision need more changes/testing?

Hi there :)

Does this revision need more changes/testing?

@mat: is the falvorization ok?

The <flavor>_LIB_DEPENDS should happen in the flavors section, see Chapter 15. Order of Variables in Port Makefiles.

Move <flavor>_LIB_DEPENDS to FLAVOR block

In D15023#332199, @mat wrote:

The <flavor>_LIB_DEPENDS should happen in the flavors section, see Chapter 15. Order of Variables in Port Makefiles.

Thanks Mat!

This revision is now accepted and ready to land.Jun 11 2018, 7:02 AM
In D15023#332850, @mat wrote:

looks good.

I got blocked by the pre-commit hook:

svn: E165001: Commit blocked by pre-commit hook (exit code 1) with output:
Do not commit a port with FLAVORS without first
getting approval from portmgr.

well, yes, because you did not add portmgr to the reviewers, so when I approved it, it did not tell you that portmgr approved it :-)

This revision now requires review to proceed.Jun 11 2018, 5:17 PM
This revision is now accepted and ready to land.Jun 11 2018, 5:17 PM
This revision was automatically updated to reflect the committed changes.
In D15023#333033, @mat wrote:

well, yes, because you did not add portmgr to the reviewers, so when I approved it, it did not tell you that portmgr approved it :-)

OK, I thought it was automatic being you a member of portmgr :-)

Thanks!