Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2007 22:14:08 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/graphics/jasper Makefile ports/graphics/jasper/files patch-atexit
Message-ID:  <200708052214.l75ME9uk072030@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708052214.l75ME9uk072030>