Bug 146768 - misc/amanda-server-2.6.1p2_1,1 not compatible with devel/glib-2.24.1
Summary: misc/amanda-server-2.6.1p2_1,1 not compatible with devel/glib-2.24.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 18:50 UTC by Ricky Morse
Modified: 2010-05-22 12:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.24 KB, patch)
2010-05-20 18:50 UTC, Ricky Morse
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ricky Morse 2010-05-20 18:50:01 UTC
glib 2.24 changed the way that threading was initialized from glib 2.22. This causes Amanda to dump core, with a failed assertion in glib-util.c at line 48 ("g_assert(!g_thread_supported());"). There is a fix for this in the 3_1 branch of Amanda, and I am trying to get it put into the 2.6.1 source, but until then, I'm hoping that this patch can be added to the port.

Fix: A reorganization of common-src/glib-util.c to change the initialization order. I've attached the patch file. (I don't have the double-colon in the name because I wasn't sure it would upload properly.)

Patch attached with submission follows:
How-To-Repeat: with devel/glib20 updated to the latest version (2.24.1), install misc/amanda-server. Then try to run various amanda commands, and watch as they dump core.
Comment 1 Stefan Walter freebsd_committer freebsd_triage 2010-05-21 08:12:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Assign to port maintainer.
Comment 2 Kirk Strauser 2010-05-21 20:11:01 UTC
In the mean time, "sudo portupgrade -rRf amanda-server-2.6.1p2_1,1" got 
it working again for me.
Comment 3 Jun Kuriyama freebsd_committer freebsd_triage 2010-05-22 12:41:01 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-05-22 12:41:04 UTC
kuriyama    2010-05-22 11:40:51 UTC

  FreeBSD ports repository

  Modified files:
    misc/amanda-server   Makefile 
  Added files:
    misc/amanda-server/files patch-common-src::glib-util.c 
  Log:
  - Add workaround for glib-2.24 [1].
  - Allow to choose samba port [2].
  
  PR:             ports/146768 [1], ports/146769 [2]
  Submitted by:   Ricky Morse <remorse@partners.org> [1,2]
  
  Revision  Changes    Path
  1.118     +4 -3      ports/misc/amanda-server/Makefile
  1.1       +51 -0     ports/misc/amanda-server/files/patch-common-src::glib-util.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"