From patchwork Sat May 2 10:43:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 467237 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 25625140310 for ; Sat, 2 May 2015 20:43:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7C6BD94DA6; Sat, 2 May 2015 10:43:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0E-8z5viLReS; Sat, 2 May 2015 10:43:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7A9E894D83; Sat, 2 May 2015 10:43:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id EC67A1C1F95 for ; Sat, 2 May 2015 10:43:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E8FCD8909D for ; Sat, 2 May 2015 10:43:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PorjMgPNYFPf for ; Sat, 2 May 2015 10:43:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 5E66D89099 for ; Sat, 2 May 2015 10:43:33 +0000 (UTC) Received: from fwd06.aul.t-online.de (fwd06.aul.t-online.de [172.20.26.150]) by mailout05.t-online.de (Postfix) with SMTP id 1E5795AC1CB for ; Sat, 2 May 2015 12:43:31 +0200 (CEST) Received: from fli4l.lan.fli4l (XKmdkUZJrhbclFe7ul+AMMTSWm2fmrfs7Zu-1iTX2eMsDR-z4a9PVcQNBTdLH-Mg1T@[79.247.167.246]) by fwd06.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YoUtK-0L80zg0; Sat, 2 May 2015 12:43:26 +0200 Received: from fli4lbuild64.lan.fli4l ([192.168.1.51]:41019) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1YoUtJ-0000mU-Hv; Sat, 02 May 2015 12:43:25 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 2 May 2015 12:43:23 +0200 Message-Id: <1430563403-22945-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 X-ID: XKmdkUZJrhbclFe7ul+AMMTSWm2fmrfs7Zu-1iTX2eMsDR-z4a9PVcQNBTdLH-Mg1T X-TOI-MSGID: f9b8c6c2-e40d-4b40-b280-30744001136c Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/vlc: Fix strerror_l related compile error X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes http://autobuild.buildroot.net/results/ae3/ae31f4585d2c2f850473c446f1ccfba7699c711b/ http://autobuild.buildroot.net/results/504/504cf78a08315e2fc6eaeb9a29ae791972753830/ http://autobuild.buildroot.net/results/092/09280c5d63da9b8b58916c32e6040a98f7ff0ee8/ http://autobuild.buildroot.net/results/da6/da62d97ea060ce03db94f59a91d84a235d03e8f0/ http://autobuild.buildroot.net/results/7a4/7a40f66b3be8cd71a27df04415c4851cd4426cc3/ Signed-off-by: Bernd Kuhls --- package/vlc/0007-strerror.patch | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/vlc/0007-strerror.patch diff --git a/package/vlc/0007-strerror.patch b/package/vlc/0007-strerror.patch new file mode 100644 index 0000000..5d65ff7 --- /dev/null +++ b/package/vlc/0007-strerror.patch @@ -0,0 +1,41 @@ +Fix compile error + + CCLD vlc +/home/br/br3/output/build/vlc-2.2.1/src/.libs/libvlccore.so: undefined reference to `strerror_l' + +Patch downloaded from +http://patches.osdyson.org/patch/series/view/vlc/2.2.0~rc2-1+dyson2/dyson.patch + +Signed-off-by: Bernd Kuhls + +diff -uNr vlc-2.2.1.org/src/posix/error.c vlc-2.2.1/src/posix/error.c +--- vlc-2.2.1.org/src/posix/error.c 2014-08-14 09:20:04.000000000 +0200 ++++ vlc-2.2.1/src/posix/error.c 2015-05-02 12:35:30.000000000 +0200 +@@ -31,26 +31,7 @@ + + static const char *vlc_strerror_l(int errnum, const char *lname) + { +- int saved_errno = errno; +- locale_t loc = newlocale(LC_MESSAGES_MASK, lname, (locale_t)0); +- +- if (unlikely(loc == (locale_t)0)) +- { +- if (errno == ENOENT) /* fallback to POSIX locale */ +- loc = newlocale(LC_MESSAGES_MASK, "C", (locale_t)0); +- +- if (unlikely(loc == (locale_t)0)) +- { +- assert(errno != EINVAL && errno != ENOENT); +- errno = saved_errno; +- return "Error message unavailable"; +- } +- errno = saved_errno; +- } +- +- const char *buf = strerror_l(errnum, loc); +- +- freelocale(loc); ++ const char *buf = strerror(errnum); + return buf; + } +