Page MenuHomeFreeBSD

graphics/spectacle: make pipewire optional
ClosedPublic

Authored by vvd on May 5 2023, 1:06 PM.
Tags
Referenced Files
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Tue, Apr 23, 8:51 AM
Unknown Object (File)
Sat, Apr 20, 10:17 PM
Subscribers

Diff Detail

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

Event Timeline

vvd requested review of this revision.May 5 2023, 1:06 PM
vvd created this revision.

This diff doesn't apply with arc too. Can you please re-generate it using Arcanist?

I think it was copy&paste from console issue - tabs replaced with spaces and etc.
"git diff > spectacle.diff" and uploaded file spectacle.diff now.

graphics/spectacle/files/extra-patch-pipewire-off
11

Double negation looks weird. Can you rename the CMake variable to ENABLE_PIPEWIRE?

32
graphics/spectacle/files/extra-patch-pipewire-off
11

Ah, nevermind, krfb already has a variable that is named DISABLE_*.

BTW, using spectacle with this patch for 3 weeks - screenshots work fine.

Address another my comment and it should be fine.

graphics/spectacle/files/extra-patch-pipewire-off
50
72

Where does this definition gets added? CMake doesn't add all its variables as -D flags to the compiler. You probably need to look at some sort of config.h.in and add this variable there.

graphics/spectacle/files/extra-patch-pipewire-off
13

Actually, this check isn't needed at all. If KPipeWire wasn't found, CMake will stop due to REQUIRED keyword`. If it didn't then no need to check for KPipeWire_FOUND.

vvd added inline comments.
graphics/spectacle/files/extra-patch-pipewire-off
11

Yes, it was made like in krfb.

32

Do I need to update the patch?

50

What about line #30?
Same "if(PIPEWIRE_FOUND)".

72

Maybe this one "set(PIPEWIRE_FOUND 1)"?
And yes - it's work as expected.
I'm using it for 3 weeks already.

graphics/spectacle/files/extra-patch-pipewire-off
12

You don't need PIPEWIRE_FOUND at all, just use NOT DISABLE_PIPEWIRE.

Added #cmakedefine PIPEWIRE_FOUND 1 to pass on option PIPEWIRE_FOUND from cmake to sources.

This revision is now accepted and ready to land.May 16 2023, 3:20 PM
This revision was automatically updated to reflect the committed changes.