From owner-cvs-all@FreeBSD.ORG Sun Aug 5 22:14:09 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F4CF16A417; Sun, 5 Aug 2007 22:14:09 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5350213C46B; Sun, 5 Aug 2007 22:14:09 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l75ME9Yr072031; Sun, 5 Aug 2007 22:14:09 GMT (envelope-from mi@repoman.freebsd.org) Received: (from mi@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l75ME9uk072030; Sun, 5 Aug 2007 22:14:09 GMT (envelope-from mi) Message-Id: <200708052214.l75ME9uk072030@repoman.freebsd.org> From: Mikhail Teterin Date: Sun, 5 Aug 2007 22:14:08 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/graphics/jasper Makefile ports/graphics/jasper/files patch-atexit X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2007 22:14:09 -0000 mi 2007-08-05 22:14:08 UTC FreeBSD ports repository Modified files: graphics/jasper Makefile Added files: graphics/jasper/files patch-atexit Log: Add a patch, which disables a call to atexit() to register libjasper's own clean-up routine (jas_cleanup). The call would be of limited use anyway, as freeing memory at exit is useful only for tracking down memory leaks. Removing the atexit call eliminates crashes in ImageMagick and GraphicsMagick, when they are compiled with modules support -- when a library is dlclosed, calling its cleanup routine is certain death... When compiling with gcc, declare the routine with ``__attribute__ (destructor)'' as per kan's otherwise obnoxious and inflammatory e-mails. This will make sure, the routine is invoked, when libjasper is dlclosed(). The only known apps that do that are ImageMagick and GraphicsMagick (when built with modules support). They both call the routine explicitly anyway... While here enable parallel build of jasper itself, and eliminate the most threatening warnings. Bump PORTREVISION. Revision Changes Path 1.25 +2 -1 ports/graphics/jasper/Makefile 1.1 +31 -0 ports/graphics/jasper/files/patch-atexit (new)