Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#14561 - uptimed is checking /usr/etc/ instead of /etc/ for config files

Attached to Project: Community Packages
Opened by Isaac G (IsaacG) - Sunday, 03 May 2009, 04:48 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 04 May 2009, 08:55 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

pkgname=uptimed
pkgver=0.3.16
pkgrel=1

uptimed is checking /usr/etc/ instead of /etc/ for config files

I confirmed by running makepkg -o to get the src, added a printf() to show what config file it was trying to open and makepkg -e

Config location stores in #define'd FILE_CONFIG

Several Makefiles* contain:
AM_CFLAGS = -march=native -O2 -pipe -fomit-frame-pointer -DFILE_CONFIG=\"$(sysconfdir)/uptimed.conf\"

configure has:
sysconfdir='${prefix}/etc'

PKGBUILD has:
./configure --prefix=/usr

Guess the issue is that PKGBUILD line. Not sure why it has that prefix bit...
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 04 May 2009, 08:55 GMT
Reason for closing:  Fixed
Comment by Isaac G (IsaacG) - Sunday, 03 May 2009, 05:13 GMT
Hrm. Replacing the line in PKGBUILD with
> ./configure
resulted in it using /usr/local/etc/uptimed.conf for the config file.

Changing the ./configure script to use
> sysconfdir='/etc'
caused it to use /etc/uptimed.conf file for configs.

Not sure how this out to be handled.
Comment by Eric Belanger (Snowman) - Sunday, 03 May 2009, 05:31 GMT
this should work:
./configure --prefix=/usr --sysconfdir=/etc
Comment by Isaac G (IsaacG) - Sunday, 03 May 2009, 05:56 GMT
Thanks for the quick work.

Confirming that that fix does work.

Loading...