! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Using @sysconfdir@ in xinitrc fails if sysconfdir is not set explicitly
Status:
CLOSED: FIXED
Product:
Xfce-utils
Component:
General

Comments

Description Enrico Tröger editbugs 2009-02-10 23:51:19 CET
One more bug regarding installing Xfce into a custom prefix:

when configuring xfce-utils like:
./configure --prefix=/home/user/blah

the @sysconfdir@ variable is not correctly replaced in xinitrc.in.in.

In the generated xinitrc file I find:
test -r "${prefix}/etc/xdg/xfce4/Xft.xrdb" && XRESOURCES="$XRESOURCES ${prefix}/etc/xdg/xfce4/Xft.xrdb"

where ${prefix}/etc/xdg/xfce4/Xft.xrdb should probably be /home/user/blah/etc/xdg/xfce4/Xft.xrdb. ${prefix} seems not to be replaced properly by the autotools.
Comment 1 Jannis Pohlmann editbugs 2009-02-11 01:10:30 CET
I can reproduce it here. There's an easy fix for it. The problem is that the configure script replaces @sysconfdir@ with e.g. "${prefix}/etc", so when the Makefile later tries to replace @sysconfdir@ with something else it will only find ${prefix}/etc in the script and thus, not do anything. Bad.
Comment 2 Mike Massonnet editbugs 2009-02-11 09:48:18 CET
${prefix} is a shell variable, is it set in top of the xinitrc script?  In fact, it is nothing the autotools tries to replace.  ${prefix} not being set results in an empty string.

You should use --sysconfdir=/someone/something/etc anyway.
Comment 3 Jannis Pohlmann editbugs 2009-02-11 10:54:46 CET
This is fixed in revision 29478:

    Use @_sysconfdir_@ and @_datadir_@ in scripts created by the Makefile in
    order to avoid @sysconfdir@/@datadir@ to be expanded in scripts that are
    created in two stages (configure + Makefile). This only affects xinitrc
    right now, but who knows about the future. This fixes bug #4924.

Bug #4924

Reported by:
Enrico Tröger
Reported on: 2009-02-10
Last modified on: 2009-07-14

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

Additional information