Skip to content

Commit 3bd3150

Browse files
committed
build-sys: move systemd.pc from pkgconfiglibdir back into pkgconfigdatadir
The original idea of systemd.pc was to contain arch-independent system and systemd information. By exposing libdir as part of the fields (added in eb39a62), it started to carry arch-dependent data, thus breaking multilib systems. It was then moved to pkgconfiglibdir to deal with this (in aec432c), but actually the right approach is to simply not include libdir in the .pc file at all. THis patch hence more or less reverts both commits again, and moves the .pc file back into pkgconfigdatadir. As alternative for querying the systems primary libdir there's now "systemd-path system-library-arch", hence a more correct alternative exists for querying this variable from the .pc file.
1 parent e911de9 commit 3bd3150

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ dbussessionservicedir=@dbussessionservicedir@
7474
dbussystemservicedir=@dbussystemservicedir@
7575
pamlibdir=@pamlibdir@
7676
pamconfdir=@pamconfdir@
77+
pkgconfigdatadir=$(datadir)/pkgconfig
7778
pkgconfiglibdir=$(libdir)/pkgconfig
7879
polkitpolicydir=$(datadir)/polkit-1/actions
7980
bashcompletiondir=@bashcompletiondir@
@@ -131,6 +132,7 @@ noinst_LTLIBRARIES =
131132
lib_LTLIBRARIES =
132133
include_HEADERS =
133134
noinst_DATA =
135+
pkgconfigdata_DATA =
134136
pkgconfiglib_DATA =
135137
polkitpolicy_in_in_files =
136138
polkitpolicy_in_files =
@@ -164,6 +166,7 @@ in_in_files = $(filter %.in.in, $(in_files))
164166
m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
165167

166168
CLEANFILES = $(BUILT_SOURCES) \
169+
$(pkgconfigdata_DATA) \
167170
$(pkgconfiglib_DATA) \
168171
$(in_files:.in=) $(in_in_files:.in.in=) \
169172
$(m4_files:.m4=)
@@ -1346,7 +1349,7 @@ dist_dbussystemservice_DATA += \
13461349
polkitpolicy_in_in_files += \
13471350
src/core/org.freedesktop.systemd1.policy.in.in
13481351

1349-
pkgconfiglib_DATA += \
1352+
pkgconfigdata_DATA += \
13501353
src/core/systemd.pc
13511354

13521355
nodist_rpmmacros_DATA = \

man/file-hierarchy.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@
257257
architecture-dependent, too. To query
258258
<varname>$libdir</varname> for the primary architecture of the
259259
system, invoke:
260-
<programlisting># pkg-config --variable=libdir systemd</programlisting> or
261260
<programlisting># systemd-path system-library-arch</programlisting></para></listitem>
262261

263262
</varlistentry>

src/core/systemd.pc.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# (at your option) any later version.
77

88
prefix=@prefix@
9-
libdir=@libdir@
109
systemdutildir=@rootlibexecdir@
1110
systemdsystemunitdir=@systemunitdir@
1211
systemdsystempresetdir=@systempresetdir@

0 commit comments

Comments
 (0)