Bug 187380 - astro/sunclock seeks configuration and other files from compilation work directory
Summary: astro/sunclock seeks configuration and other files from compilation work dire...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-08 18:20 UTC by hsu
Modified: 2014-10-05 22:43 UTC (History)
2 users (show)

See Also:


Attachments
astro/sunclock build log (21.45 KB, text/plain)
2014-08-19 20:56 UTC, Nikola Kolev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description hsu 2014-03-08 18:20:00 UTC
sunclock package and port compile wrong, resulting in binary which wants to
find all its configuration and other files in compilation work directory.

sunclock gives this error when run:

Unable to find the config file  /usr/ports/astro/sunclock/work/stage/share/sunclock/Sunclockrc

How-To-Repeat: 
Install sunclock with pkg add sunclock or compile the port.

You can see in port compilation messages that SHAREDIR is set to 
compilation work directory instead of /usr/local/share/sunclock. 
Oddly, it seems that /usr/local/share/sunclock is correctly populated.

cc -O2 -pipe -fno-strict-aliasing  -I/usr/local/include/libpng15  -I/usr/local/include  -DEMXBINDIR=\"/usr/local/bin\"  -DDOCDIR=\"/usr/local/lib/X11/doc\" -O -Wall -DZLIB -DSHAREDIR=\"/usr/ports/astro/sunclock/work/stage/share/sunclock\" -c tildepath.c
Comment 1 John Marino freebsd_committer freebsd_triage 2014-07-22 19:00:46 UTC
There is no maintainer for this port.
Unless you can provide a patch to fix it, nothing is going to happen (probably)
Comment 2 Nikola Kolev 2014-08-19 20:56:07 UTC
Created attachment 146051 [details]
astro/sunclock build log

Hi hsu,

According to build log attachment SHAREDIR is with correct value now:

cc -O2 -pipe -fno-strict-aliasing  -I/usr/local/include/libpng15  -I/usr/local/include  -DEMXBINDIR=\"/usr/local/bin\"  -DDOCDIR=\"/usr/local/lib/X11/doc\" -O -Wall -DZLIB -DSHAREDIR=\"/usr/local/share/sunclock\" -c tildepath.c

and Sunclockrc is with correct path:

root@moonshield:/usr/ports/astro/sunclock # pkg info -l sunclock
sunclock-3.57:
        /usr/local/bin/emx
        /usr/local/bin/sunclock
        /usr/local/man/man1/sunclock.1.gz
        /usr/local/share/licenses/sunclock-3.57/GPLv2
        /usr/local/share/licenses/sunclock-3.57/LICENSE
        /usr/local/share/licenses/sunclock-3.57/catalog.mk
        /usr/local/share/sunclock/Sunclockrc
        /usr/local/share/sunclock/earthmaps/vmf/countries.vmf.gz
        /usr/local/share/sunclock/earthmaps/vmf/landwater.vmf.gz
        /usr/local/share/sunclock/earthmaps/vmf/timezones.vmf.gz
        /usr/local/share/sunclock/editkit/MANUAL.emacs
        /usr/local/share/sunclock/editkit/README
        /usr/local/share/sunclock/editkit/emxrc
        /usr/local/share/sunclock/i18n/Sunclock.de
        /usr/local/share/sunclock/i18n/Sunclock.en
        /usr/local/share/sunclock/i18n/Sunclock.es
        /usr/local/share/sunclock/i18n/Sunclock.fr
        /usr/local/share/sunclock/i18n/Sunclock.it
        /usr/local/share/sunclock/i18n/Sunclock.nl
        /usr/local/share/sunclock/i18n/Sunclock.no
        /usr/local/share/sunclock/i18n/Sunclock.pl
        /usr/local/share/sunclock/i18n/Sunclock.sv

Nikola
Comment 3 John Marino freebsd_committer freebsd_triage 2014-10-05 22:43:23 UTC
Nikola says the error doesn't exist anymore.