Bug 194833 - editors/ted don't respect config file Ted.properties
Summary: editors/ted don't respect config file Ted.properties
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 14:18 UTC by shersch
Modified: 2015-01-05 08:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.