1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00

{systemd,udev}.pc: add names with underscores, deprecate the old ones

The names with multiple lowercase words run together are hard to read.  We
started that way with very short names like rootprefix, but then same pattern
was applied to longer and longer names. Looking at the body of .pc files
available on my machine, many packages use underscores; let's do the same. Old
names are kept for compatiblity, so this is backwards compatible.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-23 18:39:07 +01:00
parent 009b80a48d
commit 4908de44b0
2 changed files with 88 additions and 30 deletions

View File

@ -7,36 +7,93 @@
# the Free Software Foundation; either version 2.1 of the License, or # the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version. # (at your option) any later version.
# Names with prefixes are prefered, and the run-together names should be
# considered deprecated (though there is no plan to remove them). New names
# shall have underscores.
prefix=@prefix@ prefix=@prefix@
rootprefix=@rootprefix_noslash@ root_prefix=@rootprefix_noslash@
sysconfdir=@sysconfdir@ rootprefix=${root_prefix}
systemdutildir=${rootprefix}/lib/systemd sysconf_dir=@sysconfdir@
systemdsystemunitdir=${rootprefix}/lib/systemd/system sysconfdir=${sysconf_dir}
systemdsystempresetdir=${rootprefix}/lib/systemd/system-preset
systemduserunitdir=${prefix}/lib/systemd/user systemd_util_dir=${root_prefix}/lib/systemd
systemduserpresetdir=${prefix}/lib/systemd/user-preset systemdutildir=${systemd_util_dir}
systemdsystemconfdir=${sysconfdir}/systemd/system
systemduserconfdir=${sysconfdir}/systemd/user systemd_system_unit_dir=${rootprefix}/lib/systemd/system
systemdsystemunitpath=${systemdsystemconfdir}:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:${systemdsystemunitdir}:/usr/lib/systemd/system:/lib/systemd/system systemdsystemunitdir=${systemd_system_unit_dir}
systemduserunitpath=${systemduserconfdir}:/etc/systemd/user:/run/systemd/user:/usr/local/lib/systemd/user:/usr/local/share/systemd/user:${systemduserunitdir}:/usr/lib/systemd/user:/usr/share/systemd/user
systemdsystemgeneratordir=${rootprefix}/lib/systemd/system-generators systemd_system_preset_dir=${rootprefix}/lib/systemd/system-preset
systemdusergeneratordir=${prefix}/lib/systemd/user-generators systemdsystempresetdir=${systemd_system_preset_dir}
systemdsystemgeneratorpath=/run/systemd/system-generators:/etc/systemd/system-generators:/usr/local/lib/systemd/system-generators:${systemdsystemgeneratordir}
systemdusergeneratorpath=/run/systemd/user-generators:/etc/systemd/user-generators:/usr/local/lib/systemd/user-generators:${systemdusergeneratordir} systemd_user_unit_dir=${prefix}/lib/systemd/user
systemdsleepdir=${rootprefix}/lib/systemd/system-sleep systemduserunitdir=${systemd_user_unit_dir}
systemdshutdowndir=${rootprefix}/lib/systemd/system-shutdown
tmpfilesdir=${prefix}/lib/tmpfiles.d systemd_user_preset_dir=${prefix}/lib/systemd/user-preset
sysusersdir=${prefix}/lib/sysusers.d systemduserpresetdir=${systemd_user_preset_dir}
sysctldir=${prefix}/lib/sysctl.d
binfmtdir=${prefix}/lib/binfmt.d systemd_system_conf_dir=${sysconfdir}/systemd/system
modulesloaddir=${prefix}/lib/modules-load.d systemdsystemconfdir=${systemd_system_conf_dir}
catalogdir=${prefix}/lib/systemd/catalog
systemuidmax=@systemuidmax@ systemd_user_conf_dir=${sysconfdir}/systemd/user
systemgidmax=@systemgidmax@ systemduserconfdir=${systemd_user_conf_dir}
dynamicuidmin=@dynamicuidmin@
dynamicuidmax=@dynamicuidmax@ systemd_system_unit_path=${systemd_system_conf_dir}:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:${systemd_system_unit_dir}:/usr/lib/systemd/system:/lib/systemd/system
containeruidbasemin=@containeruidbasemin@ systemdsystemunitpath=${systemd_system_unit_path}
containeruidbasemax=@containeruidbasemax@
systemd_user_unit_path=${systemd_user_conf_dir}:/etc/systemd/user:/run/systemd/user:/usr/local/lib/systemd/user:/usr/local/share/systemd/user:${systemd_user_unit_dir}:/usr/lib/systemd/user:/usr/share/systemd/user
systemduserunitpath=${systemd_user_unit_path}
systemd_system_generator_dir=${root_prefix}/lib/systemd/system-generators
systemdsystemgeneratordir=${systemd_system_generator_dir}
systemd_user_generator_dir=${prefix}/lib/systemd/user-generators
systemdusergeneratordir=${systemd_user_generator_dir}
systemd_system_generator_path=/run/systemd/system-generators:/etc/systemd/system-generators:/usr/local/lib/systemd/system-generators:${systemd_system_generator_dir}
systemdsystemgeneratorpath=${systemd_system_generator_path}
systemd_user_generator_path=/run/systemd/user-generators:/etc/systemd/user-generators:/usr/local/lib/systemd/user-generators:${systemd_user_generator_dir}
systemdusergeneratorpath=${systemd_user_generator_path}
systemd_sleep_dir=${root_prefix}/lib/systemd/system-sleep
systemdsleepdir=${systemd_sleep_dir}
systemd_shutdown_dir=${root_prefix}/lib/systemd/system-shutdown
systemdshutdowndir=${systemd_shutdown_dir}
tmpfiles_dir=${prefix}/lib/tmpfiles.d
tmpfilesdir=${tmpfiles_dir}
sysusers_dir=${prefix}/lib/sysusers.d
sysusersdir=${sysusers_dir}
sysctl_dir=${prefix}/lib/sysctl.d
sysctldir=${sysctl_dir}
binfmt_dir=${prefix}/lib/binfmt.d
binfmtdir=${binfmt_dir}
modules_load_dir=${prefix}/lib/modules-load.d
modulesloaddir=${modules_load_dir}
catalog_dir=${prefix}/lib/systemd/catalog
catalogdir=${catalog_dir}
system_uid_max=@systemuidmax@
systemuidmax=${system_uid_max}
system_gid_max=@systemgidmax@
systemgidmax=${system_gid_max}
dynamic_uid_min=@dynamicuidmin@
dynamicuidmin=${dynamic_uid_min}
dynamic_uid_max=@dynamicuidmax@
dynamicuidmax=${dynamic_uid_max}
container_uid_base_min=@containeruidbasemin@
containeruidbasemin=${container_uid_base_min}
container_uid_base_max=@containeruidbasemax@
containeruidbasemax=${container_uid_base_max}
Name: systemd Name: systemd
Description: systemd System and Service Manager Description: systemd System and Service Manager

View File

@ -2,4 +2,5 @@ Name: udev
Description: udev Description: udev
Version: @PROJECT_VERSION@ Version: @PROJECT_VERSION@
udevdir=@udevlibexecdir@ udev_dir=@udevlibexecdir@
udevdir=${udev_dir}