ax_boost_base.m4 and secondary architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi fellow packagers!

On behalf of secondary architectures maintainers I have a small request
to you:

If your package uses Boost then next time you will make changes please 
take a look at m4/ax_boost_base.m4 file.

There can be such piece of code there:

----------------------------------------------------------------------------------------
    dnl On 64-bit systems check for system libraries in both lib64 and lib.
    dnl The former is specified by FHS, but e.g. Debian does not adhere to
    dnl this (as it rises problems for generic multi-arch support).
    dnl The last entry in the list is chosen by default when no libraries
    dnl are found, e.g. when only header-only libraries are installed!
    libsubdirs="lib"
    ax_arch=`uname -m`
    if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
        libsubdirs="lib64 lib lib64"
    fi
----------------------------------------------------------------------------------------

Small patch which would add "-o $ax_arch = aarch64" (and probably also
"-o $ax_arch = ppc64le" for little endian PPC64) would make your package
automatically buildable for us.

Attached is an example fix for 'flush' package.
diff --git a/flush-aarch64.patch b/flush-aarch64.patch
new file mode 100644
index 0000000..3e71d15
--- /dev/null
+++ b/flush-aarch64.patch
@@ -0,0 +1,13 @@
+Index: flush-0.9.12/m4/ax_boost_base.m4
+===================================================================
+--- flush-0.9.12.orig/m4/ax_boost_base.m4
++++ flush-0.9.12/m4/ax_boost_base.m4
+@@ -91,7 +91,7 @@ if test "x$want_boost" = "xyes"; then
+     dnl are found, e.g. when only header-only libraries are installed!
+     libsubdirs="lib"
+     ax_arch=`uname -m`
+-    if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
++    if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64 -o $ax_arch = aarch64; then
+         libsubdirs="lib64 lib lib64"
+     fi
+ 
diff --git a/flush.spec b/flush.spec
index aff2f27..580733c 100644
--- a/flush.spec
+++ b/flush.spec
@@ -10,6 +10,7 @@ Source0:		http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{
 Source1:		%{name}.desktop
 Patch0:			%{name}-dbus1.patch
 Patch1:			%{name}-dbus2.patch
+Patch2:			%{name}-aarch64.patch
 
 BuildRequires:		bison-devel
 BuildRequires:		flex
@@ -23,6 +24,7 @@ BuildRequires:		libnotify-devel
 BuildRequires:		desktop-file-utils
 BuildRequires:		libtorrent
 BuildRequires:		dbus-c++-devel
+BuildRequires:		autoconf
 
 Requires:		hicolor-icon-theme
 
@@ -46,8 +48,10 @@ Features:
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
+autoconf
 %configure
 
 make %{?_smp_mflags}
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux