mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
screen: fix autoconf misdetection
The configure script shipped by screen uses the presence of `elf.h` and `-lelf` as indicator for an SVR4 system which implies a `#define BUGGYGETLOGIN`. The SVR4 `getlogin()` replacement function does not compile with a musl toolchain and we do not want it anyway, so patch configure to remove the broken SVR4 detection logic. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=screen
|
||||
PKG_VERSION:=4.2.1
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@GNU/screen
|
||||
@@ -40,6 +40,10 @@ define Build/Configure
|
||||
)
|
||||
# XXX: memmove() works well with overlapped memory areas
|
||||
echo "#define USEMEMMOVE 1" >>$(PKG_BUILD_DIR)/config.h
|
||||
ifeq ($(CONFIG_USE_MUSL),y)
|
||||
# XXX: assume a working getlogin() for musl
|
||||
echo "#undef BUGGYGETLOGIN" >>$(PKG_BUILD_DIR)/config.h
|
||||
endif
|
||||
endef
|
||||
|
||||
define Package/screen/install
|
||||
|
||||
Reference in New Issue
Block a user