[pkg-bacula-devel] Losing mind over debian/rules variables

Sven Hartge sven at svenhartge.de
Tue Mar 5 15:04:39 GMT 2024


Hi,

I am losing my mind over trying to grasp how variables work in 
debian/rules while trying to fix #1065313

I pushed a branch test-usrmerge with my descent into insanity.

I even made a simple test Makefile:

# Set systemd directories, needed to properly support usr-merge
SYSTEMDUNITDIR = $(shell pkg-config --variable=systemdsystemunitdir 
systemd | sed s,^/,,)
TMPFILESDIR = $(shell pkg-config --variable=tmpfilesdir systemd | sed 
s,^/,,)

%:
         echo $(SYSTEMDUNITDIR) $(TMPFILESDIR)
         echo $@


oweh at hild:/tmp/test$ make all
echo usr/lib/systemd/system usr/lib/tmpfiles.d
usr/lib/systemd/system usr/lib/tmpfiles.d
echo all
all


and that works correctly, the change in debian/rules does not.

Why?!

Grüße,
Sven,



More information about the pkg-bacula-devel mailing list