Bug 238691

Summary: math/diehard: depends on to-be-removed gets(3)
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: Li-Wen Hsu <lwhsu>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 222796    
Attachments:
Description Flags
svn-diff-diehard
none
svn-diff-diehard_v2 none

Description Ed Maste freebsd_committer freebsd_triage 2019-06-18 14:50:09 UTC
I intend to remove gets(3) in the near future and this port failed in the exp-run (PR 222796)

http://package18.nyi.freebsd.org/data/112amd64PR222796-default/2018-10-27_20h58m08s/logs/errors/diehard-0.1.log

diehard.o: In function `diehard':
diehard.c:(.text+0x6f7): undefined reference to `gets'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Comment 1 Walter Schwarzenfeld 2019-08-03 11:24:21 UTC
Created attachment 206233 [details]
svn-diff-diehard
Comment 2 Li-Wen Hsu freebsd_committer freebsd_triage 2019-09-01 16:50:38 UTC
This patch does(In reply to Walter Schwarzenfeld from comment #1)
This patch doesn't seem removing use of gets(3) completely?
Comment 3 Walter Schwarzenfeld 2019-09-01 17:21:27 UTC
Created attachment 207071 [details]
svn-diff-diehard_v2
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-09-01 17:28:40 UTC
A commit references this bug:

Author: lwhsu
Date: Sun Sep  1 17:28:02 UTC 2019
New revision: 510710
URL: https://svnweb.freebsd.org/changeset/ports/510710

Log:
  Add a patch to remove use of gets(3)

  PR:		238691
  Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld at utanet.at>
  Reported by:	emaste
  Sponsored by:	The FreeBSD Foundation

Changes:
  head/math/diehard/Makefile
  head/math/diehard/files/patch-cdbday.c
  head/math/diehard/files/patch-cdbinrnk.c
  head/math/diehard/files/patch-cdbitst.c
  head/math/diehard/files/patch-cdomso.c
  head/math/diehard/files/patch-cdoperm5.c
  head/math/diehard/files/patch-cdosum.c
  head/math/diehard/files/patch-cdpark.c
  head/math/diehard/files/patch-cnt1s
  head/math/diehard/files/patch-craptest.c
  head/math/diehard/files/patch-d3sphere.c
  head/math/diehard/files/patch-diehard.c