mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
glibc: Drop obsolete rpc and libnsl
use libnsl2 and rpcsvc-proto packages (From OE-Core rev: 9dc9983901cec364ea57a72b9da1a0396b60663a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
do_install() {
|
||||
oe_runmake install_root=${D} install
|
||||
for r in ${rpcsvc}; do
|
||||
h=`echo $r|sed -e's,\.x$,.h,'`
|
||||
install -m 0644 ${S}/sunrpc/rpcsvc/$h ${D}/${includedir}/rpcsvc/
|
||||
done
|
||||
install -Dm 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ld.so.conf
|
||||
install -d ${D}${localedir}
|
||||
make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED"
|
||||
|
||||
@@ -14,7 +14,7 @@ DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth ext2 irda largefile pcmcia u
|
||||
DISTRO_FEATURES_LIBC_DEFAULT ?= "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \
|
||||
libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse \
|
||||
libc-getlogin libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code \
|
||||
libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc \
|
||||
libc-memusage libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams \
|
||||
libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \
|
||||
libc-posix-wchar-io"
|
||||
DISTRO_FEATURES_LIBC ?= "${DISTRO_FEATURES_LIBC_DEFAULT}"
|
||||
|
||||
@@ -32,7 +32,6 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
|
||||
file://0018-eglibc-Help-bootstrap-cross-toolchain.patch \
|
||||
file://0019-eglibc-Clear-cache-lines-on-ppc8xx.patch \
|
||||
file://0020-eglibc-Resolve-__fpscr_values-on-SH4.patch \
|
||||
file://0021-eglibc-Install-PIC-archives.patch \
|
||||
file://0022-eglibc-Forward-port-cross-locale-generation-support.patch \
|
||||
file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \
|
||||
file://archive-path.patch \
|
||||
|
||||
@@ -13,9 +13,9 @@ do_configure () {
|
||||
cfgscript=`python3 -c "import os; print(os.path.relpath('${S}', '.'))"`/configure
|
||||
$cfgscript --host=${TARGET_SYS} --build=${BUILD_SYS} \
|
||||
--prefix=/usr \
|
||||
--without-cvs --disable-sanity-checks \
|
||||
--disable-sanity-checks \
|
||||
--with-headers=${STAGING_DIR_TARGET}${includedir} \
|
||||
--enable-hacker-mode --enable-addons
|
||||
--enable-hacker-mode
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
|
||||
@@ -28,7 +28,7 @@ FILES_sln = "${base_sbindir}/sln"
|
||||
FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o"
|
||||
FILES_libsotruss = "${libdir}/audit/sotruss-lib.so"
|
||||
FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}"
|
||||
FILES_${PN}-dev += "${bindir}/rpcgen ${libdir}/*_nonshared.a ${base_libdir}/*_nonshared.a ${base_libdir}/*.o ${datadir}/aclocal"
|
||||
FILES_${PN}-dev += "${libdir}/*_nonshared.a ${base_libdir}/*_nonshared.a ${base_libdir}/*.o ${datadir}/aclocal"
|
||||
FILES_${PN}-staticdev += "${libdir}/*.a ${base_libdir}/*.a"
|
||||
FILES_nscd = "${sbindir}/nscd* ${sysconfdir}/init.d/nscd ${systemd_unitdir}/system/nscd* ${sysconfdir}/tmpfiles.d/nscd.conf \
|
||||
${sysconfdir}/nscd.conf ${sysconfdir}/default/volatiles/98_nscd ${localstatedir}/db/nscd"
|
||||
@@ -51,7 +51,7 @@ DESCRIPTION_glibc-extra-nss = "glibc: nis, nisplus and hesiod search services."
|
||||
SUMMARY_ldd = "print shared library dependencies"
|
||||
DESCRIPTION_ldd = "${bindir}/ldd prints shared library dependencies for each program or shared library specified on the command line."
|
||||
SUMMARY_${PN}-utils = "Miscellaneous utilities provided by glibc"
|
||||
DESCRIPTION_${PN}-utils = "Miscellaneous utilities including getconf, iconv, locale, gencat, rpcgen, ..."
|
||||
DESCRIPTION_${PN}-utils = "Miscellaneous utilities including getconf, iconv, locale, gencat, ..."
|
||||
DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs"
|
||||
DESCRIPTION_tzcode = "tzcode, timezone zoneinfo utils -- zic, zdump, tzselect"
|
||||
|
||||
@@ -71,7 +71,6 @@ do_install_append () {
|
||||
if [ -f ${D}${bindir}/mtrace ]; then
|
||||
sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' -e '2s,exec.*perl,exec ${USRBINPATH}/env perl,' ${D}${bindir}/mtrace
|
||||
fi
|
||||
rm -rf ${D}${includedir}/rpcsvc/rquota*
|
||||
# Info dir listing isn't interesting at this point so remove it if it exists.
|
||||
if [ -e "${D}${infodir}/dir" ]; then
|
||||
rm -f ${D}${infodir}/dir
|
||||
|
||||
@@ -33,8 +33,6 @@ siteconfig_do_siteconfig_gencache_prepend = " \
|
||||
|
||||
# nptl needs unwind support in gcc, which can't be built without glibc.
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial libgcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial"
|
||||
# nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
|
||||
#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
|
||||
|
||||
CRYPTPROVIDES = "virtual/crypt"
|
||||
CRYPTPROVIDES_class-nativesdk = ""
|
||||
@@ -80,8 +78,6 @@ do_configure_prepend() {
|
||||
sed -e "s#@BASH@#/bin/sh#" -i ${S}/elf/ldd.bash.in
|
||||
}
|
||||
|
||||
GLIBC_ADDONS ?= "nptl,libidn"
|
||||
|
||||
# Enable backtrace from abort()
|
||||
do_configure_append_arm () {
|
||||
echo "CFLAGS-abort.c = -fasynchronous-unwind-tables" >> ${B}/configparms
|
||||
|
||||
@@ -1,123 +0,0 @@
|
||||
From c1beab8a11985f96f5eb644e7103d343b705afc6 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 18 Mar 2015 01:57:01 +0000
|
||||
Subject: [PATCH 21/27] eglibc: Install PIC archives
|
||||
|
||||
Forward port from eglibc
|
||||
|
||||
2008-02-07 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* Makerules (install-extras, install-map): New variables.
|
||||
(installed-libcs): Add libc_pic.a.
|
||||
(install-lib): Include _pic.a files for versioned shared
|
||||
libraries.
|
||||
(install-map-nosubdir, install-extras-nosubdir): Add rules for
|
||||
installing extra files.
|
||||
(install-no-libc.a-nosubdir): Depend on install-map-nosubdir and
|
||||
install-extras-nosubdir.
|
||||
|
||||
2008-04-01 Maxim Kuvyrkov <maxim@codesourcery.com>
|
||||
|
||||
* Makerules (install-lib): Don't install libpthread_pic.a.
|
||||
(install-map): Don't install libpthread_pic.map.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Makerules | 42 ++++++++++++++++++++++++++++++++++++++++--
|
||||
1 file changed, 40 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makerules b/Makerules
|
||||
index ef6abeac6d..eeaa667f49 100644
|
||||
--- a/Makerules
|
||||
+++ b/Makerules
|
||||
@@ -778,6 +778,9 @@ ifeq ($(build-shared),yes)
|
||||
$(common-objpfx)libc.so: $(common-objpfx)libc.map
|
||||
endif
|
||||
common-generated += libc.so libc_pic.os
|
||||
+ifndef subdir
|
||||
+install-extras := soinit.o sofini.o
|
||||
+endif
|
||||
ifdef libc.so-version
|
||||
$(common-objpfx)libc.so$(libc.so-version): $(common-objpfx)libc.so
|
||||
$(make-link)
|
||||
@@ -1029,6 +1032,7 @@ endif
|
||||
|
||||
install: check-install-supported
|
||||
|
||||
+installed-libcs := $(installed-libcs) $(inst_libdir)/libc_pic.a
|
||||
install: $(installed-libcs)
|
||||
$(installed-libcs): $(inst_libdir)/lib$(libprefix)%: lib $(+force)
|
||||
$(make-target-directory)
|
||||
@@ -1057,6 +1061,22 @@ versioned := $(strip $(foreach so,$(install-lib.so),\
|
||||
install-lib.so-versioned := $(filter $(versioned), $(install-lib.so))
|
||||
install-lib.so-unversioned := $(filter-out $(versioned), $(install-lib.so))
|
||||
|
||||
+# Install the _pic.a files for versioned libraries, and corresponding
|
||||
+# .map files.
|
||||
+# libpthread_pic.a breaks mklibs, so don't install it and its map.
|
||||
+install-lib := $(install-lib) $(install-lib.so-versioned:%.so=%_pic.a)
|
||||
+install-lib := $(filter-out libpthread_pic.a,$(install-lib))
|
||||
+# Despite having a soname libhurduser and libmachuser do not use symbol
|
||||
+# versioning, so don't install the corresponding .map files.
|
||||
+ifeq ($(build-shared),yes)
|
||||
+install-map := $(patsubst %.so,%.map,\
|
||||
+ $(foreach L,$(install-lib.so-versioned),$(notdir $L)))
|
||||
+install-map := $(filter-out libhurduser.map libmachuser.map libpthread.map,$(install-map))
|
||||
+ifndef subdir
|
||||
+install-map := $(install-map) libc.map
|
||||
+endif
|
||||
+endif
|
||||
+
|
||||
# For versioned libraries, we install three files:
|
||||
# $(inst_libdir)/libfoo.so -- for linking, symlink or ld script
|
||||
# $(inst_slibdir)/libfoo.so.NN -- for loading by SONAME, symlink
|
||||
@@ -1311,9 +1331,22 @@ $(addprefix $(inst_includedir)/,$(headers-nonh)): $(inst_includedir)/%: \
|
||||
endif # headers-nonh
|
||||
endif # headers
|
||||
|
||||
+ifdef install-map
|
||||
+$(addprefix $(inst_libdir)/,$(patsubst lib%.map,lib%_pic.map,$(install-map))): \
|
||||
+ $(inst_libdir)/lib%_pic.map: $(common-objpfx)lib%.map $(+force)
|
||||
+ $(do-install)
|
||||
+endif
|
||||
+
|
||||
+ifdef install-extras
|
||||
+$(addprefix $(inst_libdir)/libc_pic/,$(install-extras)): \
|
||||
+ $(inst_libdir)/libc_pic/%.o: $(elf-objpfx)%.os $(+force)
|
||||
+ $(do-install)
|
||||
+endif
|
||||
+
|
||||
.PHONY: install-bin-nosubdir install-bin-script-nosubdir \
|
||||
install-rootsbin-nosubdir install-sbin-nosubdir install-lib-nosubdir \
|
||||
- install-data-nosubdir install-headers-nosubdir
|
||||
+ install-data-nosubdir install-headers-nosubdir install-map-nosubdir \
|
||||
+ install-extras-nosubdir
|
||||
install-bin-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin))
|
||||
install-bin-script-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin-script))
|
||||
install-rootsbin-nosubdir: \
|
||||
@@ -1326,6 +1359,10 @@ install-data-nosubdir: $(addprefix $(inst_datadir)/,$(install-data))
|
||||
install-headers-nosubdir: $(addprefix $(inst_includedir)/,$(headers))
|
||||
install-others-nosubdir: $(install-others)
|
||||
install-others-programs-nosubdir: $(install-others-programs)
|
||||
+install-map-nosubdir: $(addprefix $(inst_libdir)/,\
|
||||
+ $(patsubst lib%.map,lib%_pic.map,$(install-map)))
|
||||
+install-extras-nosubdir: $(addprefix $(inst_libdir)/libc_pic/,\
|
||||
+ $(install-extras))
|
||||
|
||||
# We need all the `-nosubdir' targets so that `install' in the parent
|
||||
# doesn't depend on several things which each iterate over the subdirs.
|
||||
@@ -1335,7 +1372,8 @@ install-%:: install-%-nosubdir ;
|
||||
|
||||
.PHONY: install install-no-libc.a-nosubdir
|
||||
install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir \
|
||||
- install-lib-nosubdir install-others-nosubdir
|
||||
+ install-lib-nosubdir install-others-nosubdir \
|
||||
+ install-map-nosubdir install-extras-nosubdir
|
||||
ifeq ($(build-programs),yes)
|
||||
install-no-libc.a-nosubdir: install-bin-nosubdir install-bin-script-nosubdir \
|
||||
install-rootsbin-nosubdir install-sbin-nosubdir \
|
||||
--
|
||||
2.16.1
|
||||
|
||||
@@ -35,7 +35,6 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
|
||||
file://0018-eglibc-Help-bootstrap-cross-toolchain.patch \
|
||||
file://0019-eglibc-Clear-cache-lines-on-ppc8xx.patch \
|
||||
file://0020-eglibc-Resolve-__fpscr_values-on-SH4.patch \
|
||||
file://0021-eglibc-Install-PIC-archives.patch \
|
||||
file://0022-eglibc-Forward-port-cross-locale-generation-support.patch \
|
||||
file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \
|
||||
file://0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch \
|
||||
@@ -76,14 +75,11 @@ COMPATIBLE_HOST_libc-musl_class-target = "null"
|
||||
GLIBCPIE ??= ""
|
||||
|
||||
EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
|
||||
--without-cvs --disable-profile \
|
||||
--disable-profile \
|
||||
--disable-debug --without-gd \
|
||||
--enable-clocale=gnu \
|
||||
--enable-add-ons=libidn \
|
||||
--with-headers=${STAGING_INCDIR} \
|
||||
--without-selinux \
|
||||
--enable-obsolete-rpc \
|
||||
--enable-obsolete-nsl \
|
||||
--enable-tunables \
|
||||
--enable-bind-now \
|
||||
--enable-stack-protector=strong \
|
||||
@@ -113,22 +109,10 @@ do_configure () {
|
||||
CPPFLAGS="" oe_runconf
|
||||
}
|
||||
|
||||
rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
|
||||
yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
|
||||
rusers.x spray.x nfs_prot.x rquota.x key_prot.x"
|
||||
|
||||
do_compile () {
|
||||
# -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
|
||||
unset LDFLAGS
|
||||
base_do_compile
|
||||
(
|
||||
cd ${S}/sunrpc/rpcsvc
|
||||
for r in ${rpcsvc}; do
|
||||
h=`echo $r|sed -e's,\.x$,.h,'`
|
||||
rm -f $h
|
||||
${B}/sunrpc/cross-rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
|
||||
done
|
||||
)
|
||||
echo "Adjust ldd script"
|
||||
if [ -n "${RTLDLIST}" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user