Page MenuHomeFreeBSD

[NEW PORT] misc/unclutter-xfixes
ClosedPublic

Authored by gor_clogic.com.ua on Jun 9 2016, 9:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 10, 11:14 PM
Unknown Object (File)
Thu, Mar 28, 9:28 AM
Unknown Object (File)
Sat, Mar 23, 5:09 AM
Unknown Object (File)
Sat, Mar 23, 5:09 AM
Unknown Object (File)
Sat, Mar 23, 5:09 AM
Unknown Object (File)
Sat, Mar 23, 5:08 AM
Unknown Object (File)
Sat, Mar 23, 5:08 AM
Unknown Object (File)
Sat, Mar 23, 5:04 AM

Details

Summary

Add new port misc/unclutter-xfixes, a rewrite of the popular
tool unclutter, but using the x11-xfixes extension. This means that this
rewrite doesn't use fake windows or pointer grabbing and hence causes
less problems with window managers and/or applications.

Test Plan

portlint && port test

Diff Detail

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

Event Timeline

gor_clogic.com.ua retitled this revision from to [NEW PORT] misc/unclutter-xfixes.
gor_clogic.com.ua updated this object.
gor_clogic.com.ua edited the test plan for this revision. (Show Details)
misc/unclutter-xfixes/Makefile
16 ↗(On Diff #17457)

Does this need to be CONFLICTS rather than CONFLICTS_INSTALL ? CONFLICTS says you can't even build this port if the conflicting software is installed.

misc/unclutter-xfixes/files/patch-Makefile
18 ↗(On Diff #17457)

You shouldn't assume the setting of $LOCALBASE as /usr/local here. That can be overridden in the same way that $PREFIX can. It's fairly common to set:

CPPFLAGS=-I${LOCALBASE}/include

in the port Makefile and then pass that to the build Makefile in the MAKEFLAGS, and make this line be

CFLAGS += $(CPPFLAGS)

Replace CONFLICTS with CONFLICTS_INSTALL.
Use $LOCALBASE instead of hardcoded /usr/local.

gor_clogic.com.ua added inline comments.
misc/unclutter-xfixes/Makefile
16 ↗(On Diff #17457)

You're right, CONFLICTS_INSTALL is better suited.

misc/unclutter-xfixes/files/patch-Makefile
18 ↗(On Diff #17457)

I agree, fixed.

gor_clogic.com.ua added inline comments.
misc/unclutter-xfixes/files/patch-Makefile
18 ↗(On Diff #17457)

Why not use direct CFLAGS+=-I${LOCALBASE}/include in port Makefile?

matthew edited edge metadata.
matthew added inline comments.
misc/unclutter-xfixes/files/patch-Makefile
18 ↗(On Diff #17457)

Yes, you could do that. The CPPFLAGS thing is probably more to do with automake generated Makefiles

This revision is now accepted and ready to land.Jun 9 2016, 12:48 PM
adamw removed a reviewer: adamw.

I have no idea why I was added to this review.

misc/unclutter-xfixes/files/patch-Makefile
18 ↗(On Diff #17458)

You don't need to patch the Makefile for that, adding it to CFLAGS will be enough, CFLAGS is added to MAKE_ENV, so it'll end up in there.

27 ↗(On Diff #17458)

You should pass the version in MAKE_ENV and use it here, so that the patch doesn't have to change when updates are being made.

38–41 ↗(On Diff #17458)

You don't need to patch uninstall, it will never be used.

gor_clogic.com.ua edited edge metadata.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Fix @mat remarks.

This revision now requires review to proceed.Jun 9 2016, 4:47 PM
gor_clogic.com.ua edited edge metadata.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Сancel changes extraneous files.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Use PORTVERSION instead of constant.

misc/unclutter-xfixes/files/patch-Makefile
15–16 ↗(On Diff #17469)

That's wrong too, not respecting ${CC}, you should add to the Makefile:

MAKE_ARGS=CC=${CC}

31 ↗(On Diff #17469)

use $(BSD_INSTALL_PROGRAM) instead of $(INSTALL) -s -m 0755

32 ↗(On Diff #17469)

use $(BSD_INSTALL_MAN) instead of $(INSTALL) -c -m 0644

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Next 3 fixes from @mat.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Remove now unneeded INSTALL variable.

I'm wondering if patching the Makefile is really interesting, and it feels it would be faster to have a do-build and a do-install target in the port's Makefile

misc/unclutter-xfixes/files/patch-Makefile
15–16 ↗(On Diff #17469)

You don't need to remove the line.

gor_clogic.com.ua edited edge metadata.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Restore INSTALL variable.

I agree with you. With five source files and two target files write custom do-build and a do-install steps will be faster. But now, port working and may be committed or I need to rewrite Makefile to use do-build and a do-install steps?

Needs BUILD_DEPENDS=a2x:textproc/asciidoc for the manpage, testbuilds are OK, portlint is fine as well.

pi requested changes to this revision.Jun 12 2016, 2:54 PM
pi edited edge metadata.

That BUILD_DEPENDS stuff. Sorry it went into a comment.

This revision now requires changes to proceed.Jun 12 2016, 2:54 PM
misc/unclutter-xfixes/Makefile
13 ↗(On Diff #17476)

It needs

BUILD_DEPENDS= a2x:textproc/asciidoc

gor_clogic.com.ua edited edge metadata.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Add BUILD_DEPENDS for the manpage as requested @pi.

pi edited edge metadata.
This revision is now accepted and ready to land.Jun 12 2016, 4:01 PM
misc/unclutter-xfixes/files/patch-Makefile
15 ↗(On Diff #17542)

Removing that line is not needed.

misc/unclutter-xfixes/files/patch-Makefile
15 ↗(On Diff #17542)

That line replace $CC from MAKE_ARGS with hardcoded gcc. gcc is not in BUILD_DEPENDS for this port and should not be there.

misc/unclutter-xfixes/files/patch-Makefile
15 ↗(On Diff #17542)

When you pass a variable as an argument to the make command, it overrides the variable defined in the Makefile.

gor_clogic.com.ua edited edge metadata.

Updating D6785: [NEW PORT] misc/unclutter-xfixes

Restore line form original Makefile.

This revision now requires review to proceed.Jun 14 2016, 10:15 AM
gor_clogic.com.ua added inline comments.
misc/unclutter-xfixes/files/patch-Makefile
15 ↗(On Diff #17542)

You are right, reverted.

pi edited edge metadata.
This revision is now accepted and ready to land.Jun 15 2016, 8:48 PM
This revision was automatically updated to reflect the committed changes.