tags 359689 + patch
thanks
Hi,
Attached is a patch that allows building it.
It seems that they deprecated the and it's now in
#ifndef G_DISABLE_DEPRECATED.
The source seems to suggest you should use time(NULL) when
calling set_time(). And time() returns a time_t. So it looks
like calling g_date_set_time_t() instead of g_date_set_time()
should work.
However, since set_time() takes a GTime, which seems to be an
gint32, you actually loose some bits. So the proper thing to do
with be to change set_time() to take an time_t instead. Just
changing it from GTime to time_t will break the API/ABI, so I
suggest you don't do that in the current package in Debian.
I suggest upstream changes that for their next release and change
soname. I have no idea if C++ allows you to overload the
set_time to have one with a time_t version and not break the
API/ABI, but I have a feeling it would break and that they need
to change soname in that case too.
Anyway, I'd like to see this fixed rather soon, since this is
blocking the rebuild of the amd64 archive. So if you don't have
time for this, I would like to NMU it.
Kurt
--- ./glib/src/date.ccg.old 2006-03-30 22:02:37.000000000 +0200
+++ ./glib/src/date.ccg 2006-03-30 22:01:29.000000000 +0200
@@ -67,7 +67,7 @@
void Date::set_time(GTime time)
{
- g_date_set_time(&gobject_, time);
+ g_date_set_time_t(&gobject_, time);
}
void Date::set_month(Date::Month month)
--- ./glib/glibmm/date.cc.old 2006-03-30 22:02:21.000000000 +0200
+++ ./glib/glibmm/date.cc 2006-03-30 22:01:49.000000000 +0200
@@ -72,7 +72,7 @@
void Date::set_time(GTime time)
{
- g_date_set_time(&gobject_, time);
+ g_date_set_time_t(&gobject_, time);
}
void Date::set_month(Date::Month month)