Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB, SQLite, CMake, CGAL, libxslt updates #1775

Merged
6 commits merged into from
Sep 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions cgal-4.2-cmake-string-replace.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6caf13a..48f010a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -116,7 +116,7 @@ foreach(package ${CGAL_CONFIGURED_PACKAGES})
file(GLOB CONFIGURED_LIBS_IN_PACKAGE ${package}/src/CGAL_*/CMakeLists.txt)
foreach (libconfigfile ${CONFIGURED_LIBS_IN_PACKAGE})
string(REPLACE "${package}/src/" "" libconfigfile ${libconfigfile})
- string(REPLACE "//CMakeLists.txt" "" CGAL_CONFIGURED_LIBRARY_NAME ${libconfigfile})
+ string(REPLACE "/CMakeLists.txt" "" CGAL_CONFIGURED_LIBRARY_NAME ${libconfigfile})
if (NOT ${CGAL_CONFIGURED_LIBRARY_NAME} STREQUAL "CGAL")

message(STATUS "Sources for CGAL component library '${CGAL_CONFIGURED_LIBRARY_NAME}' detected")
2 changes: 2 additions & 0 deletions cgal.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### RPM external cgal 4.2

Source: https://gforge.inria.fr/frs/download.php/32360/%{n}-%{realversion}.tar.bz2
Patch0: cgal-4.2-cmake-string-replace

BuildRequires: cmake
Requires: gmp-static mpfr-static
Expand All @@ -19,6 +20,7 @@ Requires: boost zlib

%prep
%setup -n CGAL-%{realversion}
%patch0 -p1

%build

Expand Down
27 changes: 0 additions & 27 deletions cmake-2.8.9-darwin-no-long-double.patch

This file was deleted.

17 changes: 2 additions & 15 deletions cmake.spec
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
### RPM external cmake 2.8.10
### RPM external cmake 3.3.0
%define downloaddir %(echo %realversion | cut -d. -f1,2)
Source: http://www.cmake.org/files/v%{downloaddir}/%n-%realversion.tar.gz
%define online %(case %cmsplatf in (*onl_*_*) echo true;; (*) echo false;; esac)
Patch1: cmake-2.8.9-darwin-no-long-double
Requires: bz2lib curl expat

#We are using system zlib for the online builds:
%if "%online" != "true"
Requires: zlib
%endif
Requires: bz2lib curl expat zlib

%prep

%setup -n cmake-%realversion
# This patch disables the warning about long doubles that some
# macosx compilers emit. Even if it matters only for macosx,
# we apply it anyway to avoid discrepancies and to avoid that
# it's left behind if cmake version is changed.
%patch1 -p1

%build
cat > build-flags.cmake <<- EOF
Expand Down
44 changes: 44 additions & 0 deletions gdb-disable-makeinfo.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
diff --git a/configure b/configure
index 64d287d..ae1d2b8 100755
--- a/configure
+++ b/configure
@@ -8038,21 +8038,26 @@ fi
done
test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"

-case " $build_configdirs " in
- *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
- *)
+if test "${MAKEINFO}" = "true"; then
+ # Disable makeinfo if requested
+ MAKEINFO=true
+else
+ case " $build_configdirs " in
+ *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
+ *)

- # For an installed makeinfo, we require it to be from texinfo 4.7 or
- # higher, else we use the "missing" dummy.
- if ${MAKEINFO} --version \
- | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
- :
- else
- MAKEINFO="$MISSING makeinfo"
- fi
- ;;
+ # For an installed makeinfo, we require it to be from texinfo 4.7 or
+ # higher, else we use the "missing" dummy.
+ if ${MAKEINFO} --version \
+ | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
+ :
+ else
+ MAKEINFO="$MISSING makeinfo"
+ fi
+ ;;

-esac
+ esac
+fi

# FIXME: expect and dejagnu may become build tools?

8 changes: 5 additions & 3 deletions gdb.spec
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
### RPM external gdb 7.8.1
### RPM external gdb 7.9.1
Source: http://ftp.gnu.org/gnu/%{n}/%{n}-%{realversion}.tar.gz
Patch0: gdb-7.6-fix-pythonhome
Patch1: gdb-disable-makeinfo
Requires: python ncurses zlib xz expat

%prep
%setup -n %n-%realversion
%patch0 -p1

%patch1 -p1

%build
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
Expand All @@ -20,7 +21,8 @@ export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
--with-lzma=yes \
--with-liblzma-prefix=${XZ_ROOT} \
LDFLAGS="-L${PYTHON_ROOT}/lib -L${NCURSES_ROOT}/lib -L${ZLIB_ROOT}/lib -L${EXPAT_ROOT}/lib -L${XZ_ROOT}/lib" \
CFLAGS="-Wno-error=strict-aliasing -I${PYTHON_ROOT}/include -I${NCURSES_ROOT}/include -I${ZLIB_ROOT}/include -I${EXPAT_ROOT}/include -I${XZ_ROOT}/include"
CFLAGS="-Wno-error=strict-aliasing -I${PYTHON_ROOT}/include -I${NCURSES_ROOT}/include -I${ZLIB_ROOT}/include -I${EXPAT_ROOT}/include -I${XZ_ROOT}/include" \
MAKEINFO=true
make %makeprocesses

%install
Expand Down
7 changes: 6 additions & 1 deletion libxslt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ BuildRequires: autotools
%setup -n %{n}-%{realversion}

%build
./autogen.sh --prefix=%{i} --with-libxml-prefix=$LIBXML2_ROOT --with-libxml-include-prefix=$LIBXML2_ROOT/include --with-libxml-libs-prefix=$LIBXML2_ROOT/lib
./autogen.sh \
--prefix=%{i} \
--with-libxml-prefix=$LIBXML2_ROOT \
--with-libxml-include-prefix=$LIBXML2_ROOT/include \
--with-libxml-libs-prefix=$LIBXML2_ROOT/lib \
--without-crypto
make

%install
Expand Down
6 changes: 3 additions & 3 deletions sqlite.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### RPM external sqlite 3.7.17
Source: http://www.sqlite.org/2013/sqlite-autoconf-3071700.tar.gz
### RPM external sqlite 3.8.11.1
Source: https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz

%prep
%setup -n sqlite-autoconf-3071700
%setup -n sqlite-autoconf-3081101

%build
./configure --build="%{_build}" --host="%{_host}" --prefix=%{i} \
Expand Down