Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#63676 closed defect (fixed)

gtk2 @2.24.33_0+quartz: build error on macOS 10.11: use of undeclared identifier 'kCAContentsFormatRGBA8Uint'

Reported by: sambthompson (Sam Thompson) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: elcapitan Cc: mascguy (Christopher Nielsen)
Port: gtk2

Description

Trying to upgrade from 2.24.32_0. Build fails at:

GdkQuartzView.c:612:28: error: use of undeclared identifier 'kCAContentsFormatRGBA8Uint'

Log attached. Maybe co-incidental, but GdkQuartzView.c seems to have picked up a new/changed patch at commit 442f169.

Attachments (1)

main.log (100.3 KB) - added by sambthompson (Sam Thompson) 2 years ago.

Download all attachments as: .zip

Change History (17)

Changed 2 years ago by sambthompson (Sam Thompson)

Attachment: main.log added

comment:1 Changed 2 years ago by sambthompson (Sam Thompson)

Owner: set to mascguy
Status: newassigned

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Summary: gtk2 @2.24.33_0+quartz: error: use of undeclared identifier 'kCAContentsFormatRGBA8Uint'gtk2 @2.24.33_0+quartz: build error on macOS 10.11: use of undeclared identifier 'kCAContentsFormatRGBA8Uint'

comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)

Given that this is occurring on macOS 10.11, I'll need to test this within my 10.11 VM. More to follow, once I've had time to do that.

macOS 10.11 tends to be more problematic, so it's not surprise that this failure is occurring there.

Last edited 2 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:4 Changed 2 years ago by mascguy (Christopher Nielsen)

Confirmed to be an issue on 10.11. Hopefully this is relatively easy to fix, but need to do some research first.

comment:5 Changed 2 years ago by Christopher Nielsen <mascguy@…>

In 96b2b266a4e43e2fe479bcfb4b73ff74d13c86ce/macports-ports (master):

gtk2-devel: disable upstream perf patches for 10.11 and earlier
See: #63676

comment:6 Changed 2 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 123e3a7bcc8161a66b41f41d50b3fdd93fcc28fd/macports-ports (master):

gtk2: disable upstream perf patches for 10.11 and earlier
Fixes: #63676

comment:7 Changed 2 years ago by mascguy (Christopher Nielsen)

The fix should be available after 2-3 hours. At that point, run a sudo port selfupdate, followed by sudo port clean --work --logs gtk2, and then retry the installation.

comment:8 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: closedreopened

Update: Identified a related issue, which will cause the build for gimp2 to fail.

Testing a fix now; please hold off on updating for the moment.

comment:9 Changed 2 years ago by Christopher Nielsen <mascguy@…>

In 185ece04333ecb9846b4a791ee33eea35d8e592d/macports-ports (master):

gtk2: add minimal patch for 10.11 and earlier, to fix gimp2 build
See: #63676

comment:10 Changed 2 years ago by Christopher Nielsen <mascguy@…>

In b70889b6055775b4d631e04984c3c54c17daa6a9/macports-ports (master):

gtk2-devel: add minimal patch for 10.11 and earlier, to fix gimp2 build
See: #63676

comment:11 Changed 2 years ago by mascguy (Christopher Nielsen)

Okay, this looks good now. Wait at least two more hours, and then proceed via the steps in comment:7.

comment:12 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: reopenedclosed

comment:13 in reply to:  11 Changed 2 years ago by sambthompson (Sam Thompson)

Replying to mascguy:

Okay, this looks good now. Wait at least two more hours, and then proceed via the steps in comment:7.

Thanks very much for this rapid fix, Chris! Can confirm gtk2 upgrade has worked here on 10.11.6.

I don't have gimp2 installed, would you like me to try installing it?

comment:14 Changed 2 years ago by mascguy (Christopher Nielsen)

Up to you, I just wanted to be sure this wasn't blocking upgrades of dependents like GIMP.

And glad we were able to quickly solve your issue!

comment:15 in reply to:  14 Changed 2 years ago by sambthompson (Sam Thompson)

Replying to mascguy:

Up to you, I just wanted to be sure this wasn't blocking upgrades of dependents like GIMP.

OK, given it's another 90+ dependencies to install, probably best not; this setup's a bit brittle. Thanks, though.

comment:16 Changed 2 years ago by Christopher Nielsen <mascguy@…>

In 2d2db050bd211d41891beb1e1ee1f9c704792db6/macports-ports (master):

gtk2: add minimal patch for 10.11 and earlier, to fix gimp2 build

  • Previous gtk2 commit wasn't complete, when reconciling with gtk2-devel

See: #63676

Note: See TracTickets for help on using tickets.