From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1C91C1382C5 for ; Tue, 12 Jan 2021 18:33:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63896E0AC5; Tue, 12 Jan 2021 18:33:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 39FC6E0AC5 for ; Tue, 12 Jan 2021 18:33:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AD9F4340C35 for ; Tue, 12 Jan 2021 18:33:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52C1E4C for ; Tue, 12 Jan 2021 18:33:39 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1610476414.833ca5702969a66822d9a7a129722e7d19365779.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: xfce-base/exo/, xfce-base/exo/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: xfce-base/exo/exo-4.16.0.ebuild xfce-base/exo/files/exo-4.16.0-allow-cross.patch X-VCS-Directories: xfce-base/exo/ xfce-base/exo/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 833ca5702969a66822d9a7a129722e7d19365779 X-VCS-Branch: master Date: Tue, 12 Jan 2021 18:33:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aec9c472-afe5-480b-8bbd-e39e17839726 X-Archives-Hash: 129e1342fe6d6a66ea472a1e61ce8ea4 commit: 833ca5702969a66822d9a7a129722e7d19365779 Author: David Michael gmail com> AuthorDate: Fri Jan 8 00:10:54 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jan 12 18:33:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=833ca570 xfce-base/exo: support cross-compiling An execution test in the configure script would fail when cross- compiling, so patch it to support a cache variable that is enabled by default. This requires installing the xfce-dev-tools package for autoconf macro definitions. Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: David Michael gmail.com> Signed-off-by: Michał Górny gentoo.org> xfce-base/exo/exo-4.16.0.ebuild | 14 +++++- xfce-base/exo/files/exo-4.16.0-allow-cross.patch | 59 ++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 2 deletions(-) diff --git a/xfce-base/exo/exo-4.16.0.ebuild b/xfce-base/exo/exo-4.16.0.ebuild index f67b9786796..96c225ee8e5 100644 --- a/xfce-base/exo/exo-4.16.0.ebuild +++ b/xfce-base/exo/exo-4.16.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit xdg-utils +inherit autotools xdg-utils DESCRIPTION="Extensions, widgets and framework library with session support for Xfce" HOMEPAGE="https://www.xfce.org/projects/" @@ -21,9 +21,19 @@ DEPEND="${RDEPEND}" BDEPEND=" dev-util/gtk-doc-am dev-util/intltool + dev-util/xfce4-dev-tools sys-devel/gettext virtual/pkgconfig" +PATCHES=( + "${FILESDIR}/${PN}-4.16.0-allow-cross.patch" +) + +src_prepare() { + default + eautoreconf +} + src_install() { default find "${D}" -name '*.la' -delete || die diff --git a/xfce-base/exo/files/exo-4.16.0-allow-cross.patch b/xfce-base/exo/files/exo-4.16.0-allow-cross.patch new file mode 100644 index 00000000000..098a0b23d64 --- /dev/null +++ b/xfce-base/exo/files/exo-4.16.0-allow-cross.patch @@ -0,0 +1,59 @@ +From c3e6d0a34d9b2be550994c39c264e3f96a2cc43a Mon Sep 17 00:00:00 2001 +From: David Michael +Date: Fri, 8 Jan 2021 18:35:16 -0500 +Subject: [PATCH] configure.ac: Allow cross-compiling + +AC_TRY_RUN fails by default when cross-compiling if it does not +have the fourth parameter. This implements a new cache variable +ac_cv_have_strftime_extension for that test which allows overriding +the result to specify the target system behavior. It defaults to +supporting the extension when cross-compiling. + +Signed-off-by: David Michael +--- + configure.ac.in | 22 ++++++++++++++++------ + 1 file changed, 16 insertions(+), 6 deletions(-) + +diff --git a/configure.ac.in b/configure.ac.in +index b98fce6e..0483c8fa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -133,10 +133,16 @@ + dnl ************************************ + AC_FUNC_MMAP() + +-dnl *************************************** +-dnl *** Check for strftime() extensions *** +-dnl *************************************** +-AC_TRY_RUN([ ++dnl *************************************************************************** ++dnl *** Check for strftime() extensions *** ++dnl *** *** ++dnl *** AC_TRY_RUN must be able to build and execute programs natively on *** ++dnl *** the build system, so it fails when cross-compiling unless given an *** ++dnl *** action in the fourth parameter. This sets its results in a cache *** ++dnl *** variable that users can override to specify target system behavior. *** ++dnl *************************************************************************** ++AC_CACHE_CHECK([for strftime %E and %O modifiers], ++ [ac_cv_have_strftime_extension], [AC_TRY_RUN([ + #include + #include + int +@@ -149,9 +155,13 @@ + return 0; + return 1; + } +-], [ ++ ], ++ [ac_cv_have_strftime_extension=yes], ++ [ac_cv_have_strftime_extension=no], ++ [ac_cv_have_strftime_extension=cross])]) ++if test x"$ac_cv_have_strftime_extension" != x"no"; then + AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.]) +-]) ++fi + + dnl ****************************** + dnl *** Check for i18n support *** +-- +GitLab