Bug 194833

Summary: editors/ted don't respect config file Ted.properties
Product: Ports & Packages Reporter: shersch
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: pi
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description shersch 2014-11-05 14:18:06 UTC
Ted looking in directory $HOME/${datarootdir}/Ted instead of /usr/local/share/Ted for config file Ted.properies.

truss shows among other things this:
stat("/home/shersch/${datarootdir}/Ted/Ted.properties",0x7fffffffe0a0) ERR#2 'No such file or directory'

The reason is that after configure some variable (e.g. DATADIR) not substituted correctly.

You can fix this by adding
CONFIGURE_ARGS+=--datadir=${PREFIX}/share
in Makefile.

After new build with changed Makefile truss shows this:
stat("/usr/local/share/Ted/Ted.properties",{ mode=-rw-r--r-- ,inode=636009,size=23,blksize=16384 }) = 0 (0x0)
Comment 1 commit-hook freebsd_committer 2015-01-05 08:36:25 UTC
A commit references this bug:

Author: pi
Date: Mon Jan  5 08:35:27 UTC 2015
New revision: 376282
URL: https://svnweb.freebsd.org/changeset/ports/376282

Log:
  editors/ted: fix directory where ted finds its Ted.properties file

  by adding CONFIGURE_ARGS+=--datadir=${PREFIX}/share

  PR:		194833
  Submitted by:	shersch@dssgmbh.de

Changes:
  head/editors/ted/Makefile
Comment 2 Kurt Jaeger freebsd_committer 2015-01-05 08:37:19 UTC
Changed, thanks.