New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34242 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

libgda: #error "Only <glib.h> can be included directly."

Reported by: montistefano@… Owned by: landonf@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: ryandesign@…
Port: libgda

Description

Failed to install libgda, as dependance of gtk-sharp or anyway libgda stand alone, when try to include glib-2.0.

Attachments

main.log (147.5 KB) - added by montistefano@… 13 months ago.
libgda install main.log
Portfile.diff (671 bytes) - added by ryandesign@… 13 months ago.
patch-glib-2.32.diff (12.8 KB) - added by ryandesign@… 13 months ago.

Change History

Changed 13 months ago by montistefano@…

libgda install main.log

comment:1 Changed 13 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to landonf@…
  • Cc montistefano at me.com removed
  • Summary changed from Failed to install libgda 1.2.4 to libgda: #error "Only <glib.h> can be included directly."
  • Keywords libgda,gtk-sharp,glib removed
  • Milestone MacPorts 2.1.0 deleted

Same glib2 2.32 incompatibility we've fixed in lots of other ports already. I'll see if I can make a patch.

Changed 13 months ago by ryandesign@…

Changed 13 months ago by ryandesign@…

comment:2 follow-up: ↓ 6 Changed 13 months ago by ryandesign@…

  • Cc ryandesign@… added
  • Keywords haspatch added

Ok, here's the patch. The port's revision is increased because some of the files libgda installs are modified by the patch.

comment:3 follow-up: ↓ 4 Changed 13 months ago by montistefano@…

Thanks apply the diff was like a charm I moved to cd $(port dir libgda) The command short me to /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gnome/libgda/ But, I suspect, this was the wrong directory, because the patch won't find the right files I moved manually to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_libgda/libgda/work/libgda-1.2.4/libgda there I've apply sudo patch -p0 < ~/Downloads/patch-glib-2.32.diff and the patch was applied in a second. I build gtk-sharp with sudo port install gtk-sharp then he have individuate the last dependencies libgda and build it correctly, finally. But gtk-sharp won't build because of an error with make in glib-2.0 step ;( ( gtk use another copy of glib? ). I must open a new ticket for this, right?

comment:4 in reply to: ↑ 3 Changed 13 months ago by ryandesign@…

Replying to montistefano@…:

But gtk-sharp won't build because of an error with make in glib-2.0 step ;( ( gtk use another copy of glib? ). I must open a new ticket for this, right?

Yes please. This ticket is about libgda.

comment:5 Changed 13 months ago by montistefano@…

Very thanks, to maintain the history for the rest of us I have opened ticket #34272

comment:6 in reply to: ↑ 2 Changed 13 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Replying to ryandesign@…:

Ok, here's the patch. The port's revision is increased because some of the files libgda installs are modified by the patch.

r92698

Note: See TracTickets for help on using tickets.