Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17618 closed submission (fixed)

new ports libqalculate and qalculate-gtk

Reported by: jjstickel@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: new Cc:
Port: libqalculate qalculate-gtk

Description

Qalculate! is a multi-purpose desktop calculator. It is split into two parts, a library and a GUI. I provide here ports for both. If it is better to separate them into two separate tickets, let me know.

Attachments (6)

libqalculate-0.9.6_macports.patch (2.7 KB) - added by jjstickel@… 16 years ago.
math/libqalculate/files/libqalculate-0.9.6_macports.patch
Portfile.2 (971 bytes) - added by jjstickel@… 16 years ago.
math/qalculate-gtk/Portfile
qalculate-gtk-cln12.patch (876 bytes) - added by jjstickel@… 16 years ago.
math/qalculate-gtk/files/qalculate-gtk-cln12.patch
Portfile (999 bytes) - added by jjstickel@… 16 years ago.
math/qalculate-gtk/Portfile
qalculate-gtk-0.9.6_macports.patch (1.6 KB) - added by jjstickel@… 16 years ago.
math/qalculate-gtk/files/qalculate-gtk-0.9.6_macports.patch
Portfile.3 (828 bytes) - added by jjstickel@… 16 years ago.
math/libqalculate/Portfile

Download all attachments as: .zip

Change History (17)

Changed 16 years ago by jjstickel@…

math/libqalculate/files/libqalculate-0.9.6_macports.patch

Changed 16 years ago by jjstickel@…

Attachment: Portfile.2 added

math/qalculate-gtk/Portfile

Changed 16 years ago by jjstickel@…

Attachment: qalculate-gtk-cln12.patch added

math/qalculate-gtk/files/qalculate-gtk-cln12.patch

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Keywords: libqalculate qalculate-gtk removed
Port: libqalculate qalculate-gtk added

comment:2 Changed 16 years ago by jjstickel@…

Don't know if anyone has looked at this ticket and tried to install qalculate-gtk yet. Unfortunately, I am getting a "bus error" with qalculate-gtk now after upgrading to Macports 1.7:

$ qalculate-gtk

(process:12374): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function

(process:12374): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:12374): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
Bus error

This may be related to the recent gtk/x11 library issues on Tiger (Ticket #17558), but gtk-demo and other gtk apps work fine for me now. Can anyone report if qalculate-gtk works for you?

comment:3 Changed 16 years ago by dbevans (David B. Evans)

Version: 1.6.01.7.0

I built libqalculate and qalculate-gtk using your portfiles this morning and qalculate-qtk works OK for me (no bus error) at first glance. Starts up and asks if you want to load currency exchange information from the internet and does that fine if you say yes. Then doing a few calculations seems to work fine.

Platform here is 10.4.11 ppc, XCode 2.5, using the standard Apple X11.app. I'm using latest MacPorts from svn trunk.

So there's a data point for you. Do you want to commit the ports as is or do some more testing first?

comment:4 Changed 16 years ago by jjstickel@…

I suppose it is fine to commit the ports. I would love to get it working again on my machine, though! Here is what I get if I run gdb:

$ gdb /usr/local/bin/qalculate-gtk 
GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:16:54 GMT 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries ...................................... done

(gdb) run
Starting program: /usr/local/bin/qalculate-gtk 
Reading symbols for shared libraries ................................................+.++................++++++++++...++++++++++.............+..+++++++ done

(process:320): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function

(process:320): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:320): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000028
0x0100af42 in gdk_pixbuf_new_from_data ()
(gdb) 

I have not used gdb before. What can I learn from this?

Changed 16 years ago by jjstickel@…

Attachment: Portfile added

math/qalculate-gtk/Portfile

Changed 16 years ago by jjstickel@…

math/qalculate-gtk/files/qalculate-gtk-0.9.6_macports.patch

Changed 16 years ago by jjstickel@…

Attachment: Portfile.3 added

math/libqalculate/Portfile

comment:5 Changed 16 years ago by jjstickel@…

I tracked down a patch that fixed my "dbus error" (aka segfault?). I uploaded a new Portfile and patch file for qalculate-gtk. I managed to overwrite the libqalculate Portfile while uploading, and so I re-uploaded that as well (Portfile.3). Please test and commit. Thanks!

comment:6 Changed 16 years ago by dbevans (David B. Evans)

Cc: devans@… added

Cc Me!

comment:7 Changed 16 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

comment:8 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

New port files and patches test ok here. Committed in r45273. I made a few minor changes (add mode line, fix Id tag line, rename patch files to match preferred patch-*.diff style). I hope this is OK. In addition, I note that livecheck fails for both of these ports so you might want to look at fixing that. Thanks for the new ports!

comment:9 Changed 16 years ago by dbevans (David B. Evans)

Cc: devans@… removed

comment:10 Changed 16 years ago by jmroot (Joshua Root)

Type: enhancementsubmission

comment:11 Changed 16 years ago by (none)

Milestone: Port Submissions

Milestone Port Submissions deleted

Note: See TracTickets for help on using tickets.