From patchwork Thu Jan 2 11:43:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 1217055 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ohMtu+U5"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47pR626twnz9sR8 for ; Thu, 2 Jan 2020 22:44:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6CBD587994; Thu, 2 Jan 2020 11:44:38 +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 HpiZBLB6Thvy; Thu, 2 Jan 2020 11:44:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6AC898798A; Thu, 2 Jan 2020 11:44:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 264071BF3A4 for ; Thu, 2 Jan 2020 11:44:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 200C720499 for ; Thu, 2 Jan 2020 11:44:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W1sHm4hV-gRD for ; Thu, 2 Jan 2020 11:44:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by silver.osuosl.org (Postfix) with ESMTPS id 1569620454 for ; Thu, 2 Jan 2020 11:44:33 +0000 (UTC) Received: by mail-pg1-f181.google.com with SMTP id b9so21757237pgk.12 for ; Thu, 02 Jan 2020 03:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o0XpiuPVJqFoZuhb0D/sWJkCqWPBhqjToBfZ0pKW6L4=; b=ohMtu+U5hf321mnov9azcKlom7cj1mqcuYrP/TPEeACZUtvCOqfYSUzTYP4d8gFsUv ENZPPuCsZCFohgQpXtYsZ2Gpgmc6V5kXnn+OVjmOnBAnSQrSaxJ6syTNEmqhEPI5kjHn 45VbWK5ba5jSdaWWQ3eEw8cS+hsSU1lYznsjSR14GApnFZRHKdIt0EsbT19Y8FYdA6It IItEmJdE3imbkevW9nBqFJaVODITw7sJNYQEtC88G3p+vZWfkrKs5eCKNvgNYaaqLGgj t2l5OBbXgABXsrBbqwxkElPb/wMVHiagl03jz2BL52v5f1w3otdtLjxTJB3D2AyiLQLQ RMZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o0XpiuPVJqFoZuhb0D/sWJkCqWPBhqjToBfZ0pKW6L4=; b=FSIn6topAn2WqIF76ULrXyHK7E/ljKv4qxKhcBerAZte6In6hM0Hm4iMYNYKiowcsm 5+2C0EQUmjY4/FDZLR0MROjnDNiPwR7uJ4UPg8/Jzumw0e++YVy4gMKGnF7+y5y8OJE3 8dSdxrk4K9EURuqadnB5jXRl9o7lnTG4LFj38xKp6bMn5ftHl0iq1OrgVyDrunWn3rOS CqJqvKbrIPrIkL48rIL+Vx9coLP7ekWj0nOu4E+VkEwfAhXDVCdBv5HoNcDsv5fWUJ45 tOtYZyD9ow6s3WDbcknmImb+l0ah6FcNOdcSzkGTTg+HqLZ7GTr95ZqYIvyMTuCqAyu0 jjfw== X-Gm-Message-State: APjAAAWbaNsfx6MzP6edtfjAI1G1oLeuMJEFMdsNDVqaDx0rJxvcLYIe jveOy+musP1q02Dd+nzeQ2pD1G+6 X-Google-Smtp-Source: APXvYqy8yrwim7ysx43xq59zEX7MJimoM46P7icIeD6Y3jGeG3xKB8mMRFfJqfoE1EnzSuZtl4QrEg== X-Received: by 2002:a63:f04c:: with SMTP id s12mr78047564pgj.408.1577965472151; Thu, 02 Jan 2020 03:44:32 -0800 (PST) Received: from localhost.localdomain (150.sub-174-193-143.myvzw.com. [174.193.143.150]) by smtp.gmail.com with ESMTPSA id z26sm32836851pfa.90.2020.01.02.03.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 03:44:31 -0800 (PST) From: Christopher McCrory To: buildroot@buildroot.org Date: Thu, 2 Jan 2020 11:43:46 +0000 Message-Id: <20200102114347.2403649-1-chrismcc@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH 1/2] package/perl-dbd-mysql: bump to version 4.050 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" version 4.046_01 fixes compiling against mariadb and also introduces a patch that brakes with cross compiling, see patch 0001. Also the buildroot host-perl ModuleManager gets somthing wrong looking for libraries. Instead of checking in the build sysroot, it looks in the host systems /lib, /usr/lib, etc. For a successful build, the host system will also need the matching mysql libraries installed. Running ldd on mysql.so should show libmysqlclient, and libmariadb for MariaDB. If the result spits out an error about missing libraries, this is the reason. This is probably the only builtroot package where this is an issue. Signed-off-by: Christopher McCrory --- ...001-Allow-cross-compile-on-buildroot.patch | 46 +++++++++++++++++++ package/perl-dbd-mysql/perl-dbd-mysql.hash | 4 +- package/perl-dbd-mysql/perl-dbd-mysql.mk | 14 +++++- 3 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 package/perl-dbd-mysql/0001-Allow-cross-compile-on-buildroot.patch diff --git a/package/perl-dbd-mysql/0001-Allow-cross-compile-on-buildroot.patch b/package/perl-dbd-mysql/0001-Allow-cross-compile-on-buildroot.patch new file mode 100644 index 0000000000..0431e0092a --- /dev/null +++ b/package/perl-dbd-mysql/0001-Allow-cross-compile-on-buildroot.patch @@ -0,0 +1,46 @@ +From e6689e55fb56a83f227e59d3fa258553d32524fa Mon Sep 17 00:00:00 2001 +From: Christopher McCrory +Date: Thu, 2 Jan 2020 07:53:20 +0000 +Subject: [PATCH 1/1] Allow cross compile on buildroot + +starting in 4.046_01 Devel::CheckLib is used to check if all needed libraries +are available. It is not cross compile friendly. Disable it and hope for the +best. + +Signed-off-by: Christopher McCrory +--- + Makefile.PL | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 0bf733c..668d722 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -9,7 +9,8 @@ use Config; + use Getopt::Long; + use ExtUtils::MakeMaker; + use Data::Dumper; +-use Devel::CheckLib; ++# broken on cross compile ++# use Devel::CheckLib; + use File::Path; + use File::Copy; + use File::Basename; +@@ -207,9 +208,11 @@ MSG + + print "Checking if libs are available for compiling...\n"; + +-assert_lib( +- LIBS => ($opt->{'embedded'} ? $opt->{'embedded'} : $opt->{libs}), +-); ++print "Skipping, broken on cross compile\n"; ++ ++#assert_lib( ++# LIBS => ($opt->{'embedded'} ? $opt->{'embedded'} : $opt->{libs}), ++#); + + print "Looks good.\n\n"; + +-- +2.18.1 + diff --git a/package/perl-dbd-mysql/perl-dbd-mysql.hash b/package/perl-dbd-mysql/perl-dbd-mysql.hash index 51de476095..a2048ce5ff 100644 --- a/package/perl-dbd-mysql/perl-dbd-mysql.hash +++ b/package/perl-dbd-mysql/perl-dbd-mysql.hash @@ -1,6 +1,6 @@ # retrieved by scancpan from http://cpan.metacpan.org/ -md5 bdf4f4d899b8af29ebd8ebfb7438d05f DBD-mysql-4.046.tar.gz -sha256 6165652ec959d05b97f5413fa3dff014b78a44cf6de21ae87283b28378daf1f7 DBD-mysql-4.046.tar.gz +md5 29b1f61321d0892885ccfd0e7bc07f7f DBD-mysql-4.050.tar.gz +sha256 4f48541ff15a0a7405f76adc10f81627c33996fbf56c95c26c094444c0928d78 DBD-mysql-4.050.tar.gz # computed by scancpan sha256 7a9ba29702b957805cfa8aa63bca43175625824263232dbade0010d385ab888c LICENSE diff --git a/package/perl-dbd-mysql/perl-dbd-mysql.mk b/package/perl-dbd-mysql/perl-dbd-mysql.mk index 98521a78cf..c17788598c 100644 --- a/package/perl-dbd-mysql/perl-dbd-mysql.mk +++ b/package/perl-dbd-mysql/perl-dbd-mysql.mk @@ -4,9 +4,19 @@ # ################################################################################ -PERL_DBD_MYSQL_VERSION = 4.046 +# version 4.046_01 fixes compiling against mariadb and also introduces a patch +# that brakes with cross compiling, see patch 0001. +# Also the buildroot host-perl ModuleManager gets somthing wrong looking for +# libraries. Instead of checking in the build sysroot, it looks in the host +# systems /lib, /usr/lib, etc. For a successful build, the host system will +# also need the matching mysql libraries installed. Running ldd on mysql.so +# should show libmysqlclient, and libmariadb for MariaDB. If the result spits +# out an error about missing libraries, this is the reason. +# This is probably the only builtroot package where this is an issue. + +PERL_DBD_MYSQL_VERSION = 4.050 PERL_DBD_MYSQL_SOURCE = DBD-mysql-$(PERL_DBD_MYSQL_VERSION).tar.gz -PERL_DBD_MYSQL_SITE = $(BR2_CPAN_MIRROR)/authors/id/C/CA/CAPTTOFU +PERL_DBD_MYSQL_SITE = $(BR2_CPAN_MIRROR)/authors/id/D/DV/DVEEDEN PERL_DBD_MYSQL_DEPENDENCIES = \ host-perl-dbi \ mysql