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
F82910114: D6785.diff
Fri, May 3, 9:05 PM
Unknown Object (File)
Thu, May 2, 2:32 AM
Unknown Object (File)
Sat, Apr 27, 4:44 AM
Unknown Object (File)
Fri, Apr 26, 6:16 AM
Unknown Object (File)
Wed, Apr 10, 11:14 PM
Unknown Object (File)
Mar 28 2024, 9:28 AM
Unknown Object (File)
Mar 23 2024, 5:09 AM
Unknown Object (File)
Mar 23 2024, 5:09 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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 4165
Build 4208: arc lint + arc unit

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
17

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
19

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
17

You're right, CONFLICTS_INSTALL is better suited.

misc/unclutter-xfixes/files/patch-Makefile
19

I agree, fixed.

gor_clogic.com.ua added inline comments.
misc/unclutter-xfixes/files/patch-Makefile
19

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
19

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
19

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.

28

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.

39–42

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
16–17

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

MAKE_ARGS=CC=${CC}

32

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

33

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
16–17

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

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
16

Removing that line is not needed.

misc/unclutter-xfixes/files/patch-Makefile
16

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
16

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
16

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.