From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Thu, 17 May 2018 10:26:27 +0300 Subject: [Buildroot] [PATCH v3 1/2] package/exim: remove libnsl linking and fix native tools build In-Reply-To: <20180517072140.6432-1-romain.naour@gmail.com> References: <20180517072140.6432-1-romain.naour@gmail.com> Message-ID: <20180517072627.wkekm5mbofgjo36h@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Romain, On Thu, May 17, 2018 at 09:21:39AM +0200, Romain Naour wrote: [snip] > -# only glibc provides libnsl, remove -lnsl for all other toolchains > +# Only Exim's nis.so and nisplus.so lookup modules require libnsl, > +# but they are not build by default. > +# libnsl has been deprecated from Glibc and no other libc provide it. > +# There is no libnsl package in Buildroot yet. > +# Remove -lnsl for all toolchains. > # http://bugs.exim.org/show_bug.cgi?id=1564 > -ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) > +# This also fixes a host build issue on recent distributions where > +# libnsl is not installed by default. > define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE > $(SED) 's/-lnsl//g' $(@D)/OS/Makefile-Linux > endef > -endif It only occurred to me now. Since this is now unconditional we should use a regular patch. sed is used here only because the modification used to be conditional, and we don't do conditional patching. But this no longer holds. > # musl does not provide struct ip_options nor struct ip_opts (but it is > # available with both glibc and uClibc) baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -