diff --git a/doxygen-1.8.10-drop-qt-arch-x86-64-definition.patch b/doxygen-1.8.10-drop-qt-arch-x86-64-definition.patch new file mode 100644 index 0000000..08a212f --- /dev/null +++ b/doxygen-1.8.10-drop-qt-arch-x86-64-definition.patch @@ -0,0 +1,35 @@ +From 031780293d2838da2643b46878061598ebb56822 Mon Sep 17 00:00:00 2001 +From: Marcin Juszkiewicz +Date: Thu, 8 Oct 2015 10:24:36 +0200 +Subject: [PATCH] DO NOT hardcode x86-64 architecture. + +doxygen built on most of architectures by pure luck and order of Qt5 +qatomics_arch.h header where check for QT_ARCH_X86_64 was *after* most +of other architectures. + +But not after AArch64 where it failed due to attempt of using x86-64 +atomics code. + +https://github.com/doxygen/doxygen/pull/402 + +Signed-off-by: Marcin Juszkiewicz +--- + addon/doxywizard/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt +index eb97388..9971679 100644 +--- a/addon/doxywizard/CMakeLists.txt ++++ b/addon/doxywizard/CMakeLists.txt +@@ -45,7 +45,7 @@ include_directories( + set(GENERATED_SRC_WIZARD ${GENERATED_SRC}/doxywizard) + file(MAKE_DIRECTORY ${GENERATED_SRC_WIZARD}) + +-add_definitions(-DQT_ARCH_X86_64 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DUNICODE) ++add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DUNICODE) + if (NOT Qt5Core_FOUND) + include(${QT_USE_FILE}) + endif() +-- +2.6.0 + diff --git a/doxygen.spec b/doxygen.spec index e76ab60..f05723f 100644 --- a/doxygen.spec +++ b/doxygen.spec @@ -2,7 +2,7 @@ Summary: A documentation system for C/C++ Name: doxygen Epoch: 1 Version: 1.8.10 -Release: 2%{?dist} +Release: 3%{?dist} # No version is specified. License: GPL+ @@ -12,6 +12,7 @@ Source0: ftp://ftp.stack.nl/pub/users/dimitri/%{name}-%{version}.src.tar.gz Source1: doxywizard.png Source2: doxywizard.desktop Patch1: doxygen-1.8.10-install.patch +Patch2: doxygen-1.8.10-drop-qt-arch-x86-64-definition.patch BuildRequires: perl BuildRequires: tex(dvips) @@ -63,6 +64,7 @@ Requires: texlive-epstopdf-bin %prep %setup -q %patch1 -p1 -b .config +%patch2 -p1 # convert into utf-8 iconv --from=ISO-8859-1 --to=UTF-8 LANGUAGE.HOWTO > LANGUAGE.HOWTO.new @@ -117,6 +119,10 @@ desktop-file-install \ %changelog +* Thu Oct 08 2015 Marcin Juszkiewicz - 1:1.8.10-3 +- drop QT_ARCH_X86_64 hardcoded definition to get doxygen built on aarch64 + (it built by pure luck on other architectures) + * Wed Sep 23 2015 Than Ngo - 1.8.10-2 - fix broken deps