Opened 19 years ago

Closed 19 years ago

Last modified 9 years ago

#3457 closed defect (fixed)

UPDATE: Unison / GTK2

Reported by: benwill@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description


[ben@assam-tol ben] $ port info unison unison 2.10.2, net/unison (Variants: x11) http://www.cis.upenn.edu/~bcpierce/unison/


[ben@assam-tol ben] $ sudo port install unison +x11 ---> Unpacking tgz archive for libiconv 1.9.2_1 ---> Installing libiconv 1.9.2_1 ---> Activating libiconv 1.9.2_1 ---> Cleaning libiconv ---> Installing gettext 0.14.3_1 ---> Activating gettext 0.14.3_1 ---> Cleaning gettext ---> Unpacking tgz archive for pkgconfig 0.17.2_1 ---> Installing pkgconfig 0.17.2_1 ---> Activating pkgconfig 0.17.2_1 ---> Cleaning pkgconfig ---> Unpacking tgz archive for glib1 1.2.10_4 ---> Installing glib1 1.2.10_4 ---> Activating glib1 1.2.10_4 ---> Cleaning glib1 ---> Unpacking tgz archive for gtk1 1.2.10_6 ---> Installing gtk1 1.2.10_6 ---> Activating gtk1 1.2.10_6 ---> Cleaning gtk1 ---> Fetching ocaml ---> Verifying checksum(s) for ocaml ---> Extracting ocaml ---> Configuring ocaml ---> Building ocaml with target world.opt ---> Staging ocaml into destroot ---> Packaging tgz archive for ocaml 3.08.3_0 ---> Installing ocaml 3.08.3_0 ---> Activating ocaml 3.08.3_0 ---> Cleaning ocaml ---> Unpacking tgz archive for lablgtk 1.2.7_0 ---> Installing lablgtk 1.2.7_0 ---> Activating lablgtk 1.2.7_0 ---> Cleaning lablgtk ---> Building unison with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2" && make all NATIVE=true UISTYLE=gtk" returned error 2 Command output: UISTYLE = gtk Building for Unix NATIVE = true THREADS = false STATIC = false OSTYPE = OSARCH = osx ocamlopt: pixmaps.ml ---> pixmaps.cmx ocamlopt -I lwt -I ubase -I /opt/local/lib/ocaml/lablgtk -c /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/pixmaps.ml ocamlopt: uigtk.mli ---> uigtk.cmi ocamlopt -I lwt -I ubase -I /opt/local/lib/ocaml/lablgtk -c /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/uigtk.mli ocamlopt: uigtk.ml ---> uigtk.cmx ocamlopt -I lwt -I ubase -I /opt/local/lib/ocaml/lablgtk -c /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/uigtk.ml File "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/uigtk.ml", line 1609, characters 48-105: This expression has type unit but is here used with type bool make: * [uigtk.cmx] Error 2

Change History (5)

comment:1 Changed 19 years ago by pguyot (Paul Guyot)

Status: newassigned

comment:2 Changed 19 years ago by pguyot (Paul Guyot)

Owner: changed from darwinports-bugs@… to pguyot@…
Status: assignednew

comment:3 Changed 19 years ago by benwill@…

Summary: Unison fails to build on TigerUPDATE: Unison / GTK2

comment:4 Changed 19 years ago by benwill@…

The reason why unison doesn't build is that the GTK toolkit is no longer supported by the Unison people:

http://groups.yahoo.com/group/unison-users/message/3568

I have updated the Portfile to use GTK2. Patch:

--- Portfile.orig       2005-06-15 20:03:11.000000000 -0700
+++ Portfile    2005-06-15 19:53:27.000000000 -0700
@@ -16,25 +16,24 @@
 master_sites      ${homepage}download/stable/latest/
 platforms         darwin openbsd
 checksums         md5 a93cf03d4221ab6bab8b758b0325a9d5
-patchfiles        patch-Makefile
 dist_subdir       ${name}/${version}
 distname          ${name}-${version}
 
-set worksrcdir    ${name}-${version}
-
 use_configure  no
 
-build.args             UISTYLE=text NATIVE=true
-depends_lib            bin:camlp4:ocaml
+build.args     UISTYLE=text NATIVE=true
+depends_lib    bin:camlp4:ocaml
 
-destroot.args  PREFIX=${prefix} UISTYLE=text NATIVE=true
+destroot.args   ${build.args}
+post-destroot  {
+       system "cp ${worksrcpath}/unison ${destroot}/${prefix}/bin/"
+}
 
 variant x11 {
-       depends_lib-append              bin:lablgtk:lablgtk
+       depends_lib-append              bin:lablgtk2:lablgtk2
 
        build.args-delete               UISTYLE=text
-       build.args-append               UISTYLE=gtk
+       build.args-append               UISTYLE=gtk2
 
-       destroot.args-delete    UISTYLE=text
-       destroot.args-append    UISTYLE=gtk
+       destroot.args                   ${build.args}
 }
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Thanks a lot. I had a quick look but postponed work on this as I thought it was some incompatibility with the newer APIs of ocaml. I updated the port to build the gtk2 version as suggested.

Thanks again.

Note: See TracTickets for help on using tickets.