From patchwork Sat Aug 10 18:16:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1145179 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.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="FrUhH1r+"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 465Vfg1VBsz9sDB for ; Sun, 11 Aug 2019 04:16:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A0334860F9; Sat, 10 Aug 2019 18:16:06 +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 pD_0NmDs4KdG; Sat, 10 Aug 2019 18:16:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0535D86151; Sat, 10 Aug 2019 18:16:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9273F1BF2BC for ; Sat, 10 Aug 2019 18:16:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8D2E987CE1 for ; Sat, 10 Aug 2019 18:16:05 +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 5Yy5WWXoIIRM for ; Sat, 10 Aug 2019 18:16:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by hemlock.osuosl.org (Postfix) with ESMTPS id AE960878C8 for ; Sat, 10 Aug 2019 18:16:04 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id z23so8353351wmf.2 for ; Sat, 10 Aug 2019 11:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ockATBy9NmbenYsAYKbUAQXbWGw5iijUDMG093Lt8pY=; b=FrUhH1r+LsOBUdaG9ZltcmBmSOJI7JZBL4XMtkEZhnaMkb9vHjUI24csYAiO9fnn5F a57/H6oL0JctY8hKweOazD/jiqHGpy+RknOXwRMrPN3jPcNpqtuImFXxIAM3b0u0v+Xt sdnLOVHEq772cULarHFHZ6cDQ6VxnqrPUxfHOHlItilgD9bWeK9dKV56DOYK0HlN3H1F r3JMnaK199EGp6C/MIejNSmtSJ7s2LgRWtN5f5pm2tkFht8qv8hHRDgMowbW9phaS9WO La8BOf5wWvjdeS6CuWtQeNXgz1d4tNiFUJLWM5ws13Mkb4HOYZlGEbd3iJOBcbCQFM8t wGTA== 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:mime-version :content-transfer-encoding; bh=ockATBy9NmbenYsAYKbUAQXbWGw5iijUDMG093Lt8pY=; b=afx/dTlj5k2J8pWZEyZcX4c3Y8ehMLvErBTmZC73XCxhGd95oj7aqWpyZcQgcQibnx /AuDRMj2eRUn1gshCaEChGJNnObKbZ2LC7vdyim1QyZsKHVS+FKuyyfw9XnYduaJTFM5 8eCiL3+eXsM92qmwgwDrawv7nkyaqxtjaaPG0VmXjLdMraBYdMJVyYSGzya35i4W0m8K Yv18M06PRgIjpS908+312bDlvRa5OTKe9mZ5khwnGtLUQOFkWm85f2Wo98YO6n21j4Ho DLPrXDxICdSgHbv2ttzHpx5cdoSMWiKLBbS9cJmfYvOTAvff7DG0CuY/pFm+080hwRGm 1ifQ== X-Gm-Message-State: APjAAAWB0ZgPNL3nPUUVzh3Tm3tlOsiTCV6UuhSdJ6Bvkgs1mxfy2pbc rdB0J1yOVHkJXth4fSm3SGWBySVF X-Google-Smtp-Source: APXvYqx3D0smZdSH2Z2Ap0i2snr/G7FN4TnIilLXxkDK4n99K9NA/xqK6xhPtBWv0RdN/TulRX+IZA== X-Received: by 2002:a05:600c:292:: with SMTP id 18mr17943258wmk.51.1565460962668; Sat, 10 Aug 2019 11:16:02 -0700 (PDT) Received: from kali.home (lfbn-ren-1-605-248.w81-53.abo.wanadoo.fr. [81.53.181.248]) by smtp.gmail.com with ESMTPSA id o6sm221545016wra.27.2019.08.10.11.16.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 10 Aug 2019 11:16:01 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 10 Aug 2019 20:16:10 +0200 Message-Id: <20190810181610.19009-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/quazip: fix qztest build error 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: Zoltan Gyarmati , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/2bc996414efa32194f7469840b0117f71a2df55a Signed-off-by: Fabrice Fontaine --- .../quazip/0001-fix-qztest-build-error.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/quazip/0001-fix-qztest-build-error.patch diff --git a/package/quazip/0001-fix-qztest-build-error.patch b/package/quazip/0001-fix-qztest-build-error.patch new file mode 100644 index 0000000000..6bbe820a0d --- /dev/null +++ b/package/quazip/0001-fix-qztest-build-error.patch @@ -0,0 +1,36 @@ +From df8a2c4f18293cb2eafcf81e5dc169a06dccf304 Mon Sep 17 00:00:00 2001 +From: tsteven4 <13596209+tsteven4@users.noreply.github.com> +Date: Tue, 9 Jul 2019 16:42:28 -0600 +Subject: [PATCH] fix qztest build error. + +If int is bigger than quint16 then you will get the following +linker error: + +.obj/testquazip.o: In function `TestQuaZip::setOsCode()': +testquazip.cpp:(.text+0x42bd): undefined reference to `bool QTest::qCompare(int const&, unsigned short const&, char const*, char const*, char const*, int)' +collect2: error: ld returned 1 exit status + +This error indicates the two parameters of QCOMPARE do not have the same type. + +This occurs because integral promotions can be applied to fi.versionCreated. + +[Retrieved from: +https://github.com/stachenov/quazip/commit/df8a2c4f18293cb2eafcf81e5dc169a06dccf304] +Signed-off-by: Fabrice Fontaine +--- + qztest/testquazip.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/qztest/testquazip.cpp b/qztest/testquazip.cpp +index 70a64fc..86f6556 100644 +--- a/qztest/testquazip.cpp ++++ b/qztest/testquazip.cpp +@@ -233,7 +233,7 @@ void TestQuaZip::setOsCode() + checkZip.goToFirstFile(); + QuaZipFileInfo64 fi; + QVERIFY(checkZip.getCurrentFileInfo(&fi)); +- QCOMPARE(fi.versionCreated >> 8, static_cast(osCode)); ++ QCOMPARE(static_cast(fi.versionCreated) >> 8, osCode); + } + + void TestQuaZip::setDataDescriptorWritingEnabled()