Bug 159189 - math/taucs: problems with shared library
Summary: math/taucs: problems with shared library
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: Brendan Fabeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-25 20:10 UTC by Stephen Montgomery-Smith
Modified: 2012-07-10 22:30 UTC (History)
0 users

See Also:


Attachments
file.diff (5.84 KB, patch)
2011-07-25 20:10 UTC, Stephen Montgomery-Smith
no flags Details | Diff
ddd2 (6.00 KB, text/plain)
2011-07-25 21:16 UTC, Stephen Montgomery-Smith
no flags Details
eee (923 bytes, text/plain)
2011-07-25 21:16 UTC, Stephen Montgomery-Smith
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Montgomery-Smith freebsd_committer 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 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 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 2012-07-10 22:29:02 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!