Opened 5 years ago

Closed 5 years ago

#59333 closed defect (fixed)

gtk3: configure Failed to configure

Reported by: iefdev (Eric F) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc:
Port: gtk3

Description (last modified by iEFdev)

// ... //

:info:configure checking for cups-config... /usr/bin/cups-config
:info:configure configure: error: CUPS >= 1.7 not found
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.12" && ./configure --prefix=/opt/local --enable-static --disable-glibtest --enable-introspection --disable-cloudprint --disable-wayland-backend --disable-schemas-compile gio_can_sniff=yes --enable-quartz-backend 
:info:configure Exit code: 1
:error:configure Failed to configure gtk3, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.12/config.log

// ... //

Not sure, but is it complaining about my CUPS being too old?

There are also a couple of errors about:

conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.

Adding both the config- and main.log

Attachments (2)

gtk3_config.log (126.9 KB) - added by iEFdev 5 years ago.
gtk3_main.log (30.8 KB) - added by iEFdev 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by iEFdev

Attachment: gtk3_config.log added

Changed 5 years ago by iEFdev

Attachment: gtk3_main.log added

comment:1 Changed 5 years ago by iEFdev

Description: modified (diff)

comment:2 Changed 5 years ago by iEFdev

Description: modified (diff)

comment:3 Changed 5 years ago by kencu (Ken)

yes, cups is too old on 10.7 and less, I guess. It needs cups 1.7. Not sure when the OS got that version. This patch should work -- building now. Perhaps we can find some method to add an updated cups to older OS versions in MacPorts....

diff --git gnome/gtk3/Portfile gnome/gtk3/Portfile
index 964cfe58a41..59f8ea97083 100644
--- gnome/gtk3/Portfile
+++ gnome/gtk3/Portfile
@@ -143,8 +143,6 @@ platform darwin {
         if {[variant_isset quartz] || ![variant_isset x11]} {
             configure.ldflags-append  -framework Cocoa -framework Carbon
         }
-    
-        configure.args-append --disable-cups
     }
 
     if {${os.major} <= 10} {
@@ -153,6 +151,10 @@ platform darwin {
             patchfiles-append   patch-gdk_quartz_gdkcursor-quartz-10_6_compat.diff
         }
     }
+    if {${os.major} <= 12} {
+        # requires cups 1.7
+        configure.args-append --disable-cups
+    }
 }
 
 if {[variant_isset universal]} {
Version 0, edited 5 years ago by kencu (Ken) (next)

comment:4 in reply to:  3 Changed 5 years ago by iEFdev

Replying to kencu:

yes, cups is too old on 10.7 and less, I guess. It needs cups 1.7. Not sure when the OS got that version. This patch should work -- building now.

Thanks for the patch. :+1: I'll try that one tomorrow.

Perhaps we can find some method to add an updated cups to older OS versions in MacPorts....

Yes, that would be really great.

comment:5 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 73ba26cfce2be8f58c96d6cea7a44b3669ee6aee/macports-ports (master):

gtk3: disable cups on <= 10.7

requires cups 1.7
closes: #59333

Note: See TracTickets for help on using tickets.