From patchwork Mon Aug 27 15:28:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 180234 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 200FD2C00C3 for ; Tue, 28 Aug 2012 01:29:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4317CA02BC; Mon, 27 Aug 2012 15:29:48 +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 CrjkZ4+ywhJK; Mon, 27 Aug 2012 15:29:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id AECE9A02D2; Mon, 27 Aug 2012 15:29:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CFCF48F753 for ; Mon, 27 Aug 2012 15:28:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7F0BB911D0 for ; Mon, 27 Aug 2012 15:28:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KU1zonpJFH37 for ; Mon, 27 Aug 2012 15:28:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id 73038911C4 for ; Mon, 27 Aug 2012 15:28:53 +0000 (UTC) Received: by wgbds1 with SMTP id ds1so2434778wgb.4 for ; Mon, 27 Aug 2012 08:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=sccoQAnsrfcyKlvHFnZOdA3QHtTaEsHxKWsQ7t1ekFc=; b=sqxEDERw7sUZuPo4Ev5+i1ILGuHtMcqnX2qPehoqE5PT9EUNlCdb2lloEFG5vy6Ix+ ic8FNgNuZyPvIpobm3LVTM6SV8uc7fi0qUdOyTXZi1LNuJftMu2V9C0V1Zcg8hUM2g7O PWIrR9PqCfCC5sYTNfw3yuEfG8+LdR8Gx6W/X9Wf6ddxvdsrYzTHuh+YEItF53ZfxfGL /9JDnKqoay875AMS1JpC3/efarduLQEjKJREDtYHnvp0roOiTd8WoQOn3ShxDBHPTwUj SXR2yNZj0Ft/eaa1MwI3WHOraRjFmyYlUxOke7ny0tqlCxtoyYRBjjgBziz/4hiC6yFd QPuw== Received: by 10.180.84.104 with SMTP id x8mr26257602wiy.20.1346081331675; Mon, 27 Aug 2012 08:28:51 -0700 (PDT) Received: from xubuntu-12.04 (6.135.193.77.rev.sfr.net. [77.193.135.6]) by mx.google.com with ESMTPS id j6sm23403614wiy.4.2012.08.27.08.28.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 08:28:51 -0700 (PDT) From: Francois Perrad To: buildroot@busybox.net Date: Mon, 27 Aug 2012 17:28:12 +0200 Message-Id: <1346081293-18845-8-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1346081293-18845-1-git-send-email-francois.perrad@gadz.org> References: <1346081293-18845-1-git-send-email-francois.perrad@gadz.org> Subject: [Buildroot] [PATCH 8/9] microperl: bump version to 5.16.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Francois Perrad --- package/microperl/microperl-fix-build.patch | 76 +++++++++++++++++++++++++++ package/microperl/microperl.mk | 8 +-- 2 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 package/microperl/microperl-fix-build.patch diff --git a/package/microperl/microperl-fix-build.patch b/package/microperl/microperl-fix-build.patch new file mode 100644 index 0000000..fe01395 --- /dev/null +++ b/package/microperl/microperl-fix-build.patch @@ -0,0 +1,76 @@ +Backport of http://perl5.git.perl.org/perl.git/commitdiff/d40eae8f110fb9900e82648a2c44710def9f117d + +Signed-off-by: Francois Perrad + +From: Nicholas Clark +Date: Fri, 27 Jul 2012 17:36:40 +0200 +Subject: [PATCH] Restore microperl, which has been unable to build since January. + +microperl was broken by commit 82ad65bb0613be64 on 2012-01-16, which used +IN_LOCALE_COMPILETIME for the first time in the C code. Unlike +IN_LOCALE_RUNTIME, it had no fallback definition for microperl. + +Commit f90a9a0230170cc0 on 2012-01-28 added the first use of Strtol(), +which means that microperl now needs to assume that the system has strtol(). +(Which is not unreasonable, as it's part of C89). +--- + perl.h | 1 + + uconfig.h | 2 +- + uconfig.sh | 2 +- + uconfig64.sh | 2 +- + 4 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/perl.h b/perl.h +index e532af2..9e92ae4 100644 +--- a/perl.h ++++ b/perl.h +@@ -5311,6 +5311,7 @@ typedef struct am_table_short AMTS; + #define RESTORE_NUMERIC_STANDARD() /**/ + #define Atof my_atof + #define IN_LOCALE_RUNTIME 0 ++#define IN_LOCALE_COMPILETIME 0 + + #endif /* !USE_LOCALE_NUMERIC */ + +diff --git a/uconfig.h b/uconfig.h +index 20b1f23..60c7ca7 100644 +--- a/uconfig.h ++++ b/uconfig.h +@@ -527,7 +527,7 @@ + * This symbol, if defined, indicates that the strtol routine is available + * to provide better numeric string conversion than atoi() and friends. + */ +-/*#define HAS_STRTOL / **/ ++#define HAS_STRTOL /**/ + + /* HAS_STRXFRM: + * This symbol, if defined, indicates that the strxfrm() routine is +diff --git a/uconfig.sh b/uconfig.sh +index e96b7e8..d761d5c 100644 +--- a/uconfig.sh ++++ b/uconfig.sh +@@ -424,7 +424,7 @@ d_strftime='undef' + d_strlcat='undef' + d_strlcpy='undef' + d_strtod='undef' +-d_strtol='undef' ++d_strtol='define' + d_strtold='undef' + d_strtoll='undef' + d_strtoq='undef' +diff --git a/uconfig64.sh b/uconfig64.sh +index 80e6f7f..f57c979 100644 +--- a/uconfig64.sh ++++ b/uconfig64.sh +@@ -425,7 +425,7 @@ d_strftime='undef' + d_strlcat='undef' + d_strlcpy='undef' + d_strtod='undef' +-d_strtol='undef' ++d_strtol='define' + d_strtold='undef' + d_strtoll='undef' + d_strtoq='undef' +-- +1.7.9.5 + diff --git a/package/microperl/microperl.mk b/package/microperl/microperl.mk index c0f6029..b601754 100644 --- a/package/microperl/microperl.mk +++ b/package/microperl/microperl.mk @@ -4,8 +4,8 @@ # ############################################################# -MICROPERL_VERSION_MAJOR = 14 -MICROPERL_VERSION = 5.$(MICROPERL_VERSION_MAJOR).2 +MICROPERL_VERSION_MAJOR = 16 +MICROPERL_VERSION = 5.$(MICROPERL_VERSION_MAJOR).1 MICROPERL_SITE = http://www.cpan.org/src/5.0 MICROPERL_SOURCE = perl-$(MICROPERL_VERSION).tar.bz2 MICROPERL_LICENSE = Artistic @@ -50,7 +50,6 @@ MICROPERL_BASE_MODS += \ # some common modules (from lib/) MICROPERL_BASE_MODS += \ Benchmark.pm \ - Carp.pm \ Class/Struct.pm \ Exporter.pm Exporter/Heavy.pm \ File/Basename.pm \ @@ -63,6 +62,7 @@ MICROPERL_BASE_MODS += \ # other common modules (from dist/) MICROPERL_MODS += \ + Carp.pm \ Dumpvalue.pm \ Env.pm \ autouse.pm \ @@ -155,7 +155,7 @@ endef define MICROPERL_BUILD_CMDS $(MAKE) -f Makefile.micro -C $(@D) \ - CC="$(HOSTCC)" bitcount.h + CC="$(HOSTCC)" ubitcount.h $(MAKE) -f Makefile.micro -C $(@D) \ CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)" $(MICROPERL_BUILD_EXTENSIONS)