All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 09/17] perl: Fix build for musl
Date: Fri, 10 Apr 2015 18:20:40 -0700	[thread overview]
Message-ID: <7a740cb2794d437107399a32af3144b92fdab269.1428714999.git.raj.khem@gmail.com> (raw)
In-Reply-To: <9f232e6f50da95ec02e84c6c25a321250e439d79.1428714999.git.raj.khem@gmail.com>
In-Reply-To: <cover.1428714999.git.raj.khem@gmail.com>

The changes are covered under "${TARGET_OS}" = "linux-musl"

Change-Id: I24a1a8e07abb35c7e3d64b372addfb3bd6f7731c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/perl/perl_5.20.0.bb | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/meta/recipes-devtools/perl/perl_5.20.0.bb b/meta/recipes-devtools/perl/perl_5.20.0.bb
index db65202..d100ff9 100644
--- a/meta/recipes-devtools/perl/perl_5.20.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.20.0.bb
@@ -165,6 +165,29 @@ do_configure() {
                        -e "s,-fstack-protector,-fno-stack-protector,g" \
                     config.sh-${TARGET_ARCH}-${TARGET_OS}
         fi
+        # Fixups for musl
+        if [ "${TARGET_OS}" = "linux-musl" -o "${TARGET_OS}" = "linux-musleabi" ]; then
+                sed -i -e "s,\(d_libm_lib_version=\)'define',\1'undef',g" \
+                       -e "s,\(d_stdio_ptr_lval=\)'define',\1'undef',g" \
+                       -e "s,\(d_stdio_ptr_lval_sets_cnt=\)'define',\1'undef',g" \
+                       -e "s,\(d_stdiobase=\)'define',\1'undef',g" \
+                       -e "s,\(d_stdstdio=\)'define',\1'undef',g" \
+                       -e "s,\(d_getnetbyname_r=\)'define',\1'undef',g" \
+                       -e "s,\(getprotobyname_r=\)'define',\1'undef',g" \
+                       -e "s,\(getpwent_r=\)'define',\1'undef',g" \
+                       -e "s,\(getservent_r=\)'define',\1'undef',g" \
+                       -e "s,\(gethostent_r=\)'define',\1'undef',g" \
+                       -e "s,\(getnetent_r=\)'define',\1'undef',g" \
+                       -e "s,\(getnetbyaddr_r=\)'define',\1'undef',g" \
+                       -e "s,\(getprotoent_r=\)'define',\1'undef',g" \
+                       -e "s,\(getprotobynumber_r=\)'define',\1'undef',g" \
+                       -e "s,\(getgrent_r=\)'define',\1'undef',g" \
+                       -e "s,\(i_fcntl=\)'undef',\1'define',g" \
+                       -e "s,\(h_fcntl=\)'false',\1'true',g" \
+                       -e "s,-fstack-protector,-fno-stack-protector,g" \
+                       -e "s,-lnsl,,g" \
+                    config.sh-${TARGET_ARCH}-${TARGET_OS}
+        fi
 
 	${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '', 'do_nolargefile', d)}
 
-- 
2.1.4



  parent reply	other threads:[~2015-04-11  1:21 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-11  1:20 [PATCH 00/17] musl fixes to run core-image-sato and core-image-weston Khem Raj
2015-04-11  1:20 ` [PATCH 01/17] mtd-utils: update to latest and fix static inlining Khem Raj
2015-04-11  1:20 ` [PATCH 02/17] var/volatile: Mount it if doing ro-rfs Khem Raj
2015-04-11  1:20 ` [PATCH 03/17] libproxy: Include select.h for posix compliance Khem Raj
2015-04-11  1:20 ` [PATCH 04/17] ppp: Add extra include dirs Khem Raj
2015-04-11  1:20 ` [PATCH 05/17] musl: Enable NLS Khem Raj
2015-04-11  1:20 ` [PATCH 06/17] vte: Pass _GNU_SOURCE via CFLAGS Khem Raj
2015-04-11  1:20 ` [PATCH 07/17] libfm-extra: Add own nls.m4 Khem Raj
2015-04-11  1:20 ` [PATCH 08/17] connman: Fix builds to compile on musl Khem Raj
2015-04-13 13:50   ` Burton, Ross
2015-04-14  3:45     ` Khem Raj
2015-04-11  1:20 ` Khem Raj [this message]
2015-04-11  1:20 ` [PATCH 10/17] iptables: Fix build " Khem Raj
2015-04-11  1:20 ` [PATCH 11/17] xserver-xorg: Use __GLIBC__ instread of __linux__ to denote glibc dependent code Khem Raj
2015-04-11  1:20 ` [PATCH 12/17] pulseaudio: Fix build with musl Khem Raj
2015-04-11  1:20 ` [PATCH 13/17] sudo: Disable hardening for musl Khem Raj
2015-04-12  8:30   ` Bernhard Reutner-Fischer
2015-04-12  9:26     ` Khem Raj
2015-04-12 10:56       ` Bernhard Reutner-Fischer
2015-04-12 15:43         ` Khem Raj
2015-04-11  1:20 ` [PATCH 14/17] xserver-xf86-config: Preload graphics driver modules " Khem Raj
2015-04-20 11:20   ` Burton, Ross
2015-04-11  1:20 ` [PATCH 15/17] kbd: Mark glibc headers under __GLIBC__ Khem Raj
2015-04-11  1:20 ` [PATCH 16/17] gdb: Refresh patches against git Khem Raj
2015-04-11  1:20 ` [PATCH 17/17] e2fsprogs: Delete identical binaries and create symlinks instead Khem Raj
2015-04-11  9:02   ` Martin Jansa
2015-04-11 15:01     ` Khem Raj
2015-04-11 15:28       ` Martin Jansa
2015-04-11 16:14         ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a740cb2794d437107399a32af3144b92fdab269.1428714999.git.raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.