mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
procps-ng: install binaries in /bin and /sbin
This way the busybox counterparts are overwritten and we will not end up with procps-ng binaries in /usr/bin and /usr/sbin, and busybox symlinks for the same tools in /bin and /sbin. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
1588661996
commit
dab4fcdf7a
@ -19,6 +19,18 @@ PROCPS_NG_GETTEXTIZE = YES
|
|||||||
# wins the fight over who gets to have their utils actually installed.
|
# wins the fight over who gets to have their utils actually installed.
|
||||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||||
PROCPS_NG_DEPENDENCIES += busybox
|
PROCPS_NG_DEPENDENCIES += busybox
|
||||||
|
# Also overwrite the remaining busybox symlinks for tools which are now
|
||||||
|
# provided by procps-ng and got installed in /usr/bin instead of /bin.
|
||||||
|
# Currently these tools are only pidof and watch. We only need to do
|
||||||
|
# this if the /usr/bin and /bin directories are not merged.
|
||||||
|
ifeq ($(BR2_ROOTFS_MERGED_USR),)
|
||||||
|
define PROCPS_NG_MOVE_BINARIES
|
||||||
|
for i in pidof watch; do \
|
||||||
|
mv $(TARGET_DIR)/usr/bin/$$i $(TARGET_DIR)/bin/; \
|
||||||
|
done
|
||||||
|
endef
|
||||||
|
PROCPS_NG_POST_INSTALL_TARGET_HOOKS += PROCPS_NG_MOVE_BINARIES
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||||
@ -40,8 +52,8 @@ PROCPS_NG_CONF_OPTS += \
|
|||||||
--exec-prefix=/ \
|
--exec-prefix=/ \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--bindir=/usr/bin \
|
--bindir=/bin \
|
||||||
--sbindir=/usr/sbin
|
--sbindir=/sbin
|
||||||
|
|
||||||
# Allows unicode characters to show in 'watch'
|
# Allows unicode characters to show in 'watch'
|
||||||
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user