Bug 159189

Summary: math/taucs: problems with shared library
Product: Ports & Packages Reporter: Stephen Montgomery-Smith <stephen>
Component: Individual Port(s)Assignee: Brendan Fabeny <bf>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
ddd2
none
eee none

Description Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-25 20:10:10 UTC
	
math/taucs uses ftime, which is part of libcompat, and on FreeBSD 8.2 is available only as a static library.  This can cause problems.

Fix: Use gettimeofday instead of ftime.
How-To-Repeat: 	
Update ports so that cad/gmsh is at version 2.5.0.  (I only committed this a few minutes ago.)

cd /usr/ports/cad/gmsh
make -DWITH_TAUCS
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-07-25 20:10:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bf

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Stephen Montgomery-Smith 2011-07-25 21:16:33 UTC
I just discovered that my patch as a slight bug, in that if one makes 
the port before deinstalling it, it will not build.  This is because the 
makefile first looks for libtaucs in /usr/local/lib before looking in 
lib/FreeBSD.

This patch fixes this bug.  I also enclose a diff between the two 
patches so that you can see exactly where they differ.  I admit that 
patch is a bit of a kludge.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-07-10 22:28:37 UTC
bf          2012-07-10 21:28:22 UTC

  FreeBSD ports repository

  Modified files:
    math/taucs           Makefile pkg-plist 
    math/taucs/files     patch-config+FreeBSD.mk 
  Added files:
    math/taucs/files     patch-src__taucs_timer.c 
  Removed files:
    math/taucs/files     extra-patch-build-FreeBSD-makefile 
  Log:
  fix library search paths and switch from the legacy ftime() to
  gettimeofday() in order to solve problems with the construction of
  shared libraries [1] ; configure only once; build only those
  (dynamically-linked) executables that will be installed; set
  USE_LDCONFIG; remove an unnecessary patch; don't mix toolchains; make
  flags more uniform and remove obsolete flags; add test targets
  
  PR:             159189 [1]
  Submitted by:   stephen (different version) [1]
  
  Revision  Changes    Path
  1.19      +65 -30    ports/math/taucs/Makefile
  1.2       +0 -11     ports/math/taucs/files/extra-patch-build-FreeBSD-makefile (dead)
  1.4       +16 -20    ports/math/taucs/files/patch-config+FreeBSD.mk
  1.1       +50 -0     ports/math/taucs/files/patch-src__taucs_timer.c (new)
  1.4       +1 -0      ports/math/taucs/pkg-plist
_______________________________________________
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"
Comment 4 Brendan Fabeny freebsd_committer freebsd_triage 2012-07-10 22:29:02 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!