[nut-Patches][313927] systemd system unit dir is mangled by configure script

nut-patches at alioth.debian.org nut-patches at alioth.debian.org
Fri Jan 11 22:13:34 UTC 2013


nut-Patches item #313927, was changed at 11/01/2013 23:13 by Arnaud Quette
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411544&aid=313927&group_id=30602

Status: Open
Priority: 3
Submitted By: Calvin Walton (kepstin-guest)
>Assigned to: Michal Hlavinka (mihl-guest)
Summary: systemd system unit dir is mangled by configure script 
Category: None
Group: None
Resolution: None


Initial Comment:
I'm building nut with the following configuration options in a package:

./configure --prefix=/usr --libdir=/usr/lib64 --with-systemdsystemunitdir=/usr/lib64/systemd/system [...]

However, the systemd units are actually being installed to the path "/usr/usr/lib6464/systemd/system" instead of the requested "/usr/lib64/systemd/system". I've traced this down to the line in configure.in that says:

systemdsystemunitdir="`echo ${systemdsystemunitdir} | sed 's/\/lib/\${libdir}/'`"

which is obviously not correct in general. There's a note about this fixing 'make distcheck' somehow, but I don't see how this change is relevant... If files are being written to the real root during distcheck, that's a makefile installation rule bug, not a reason to mangle user-provided paths.

I'm currently testing the trivial patch, attached.

(As an aside, systemd does install pkg-config files, and it wouldn't be hard to add some user-friendly autodetection to nut's configure script. Note that "pkg-config --variable=systemdsystemunitdir systemd" will print the correct installation path.)

----------------------------------------------------------------------

>Comment By: Arnaud Quette (aquette)
Date: 11/01/2013 23:13

Message:
@Michal: can you please have a look at this one, while considering commits r3665 and r3666?
thanks.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411544&aid=313927&group_id=30602



More information about the NUT-tracker mailing list