Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Do not use pkg-config in Makefile.am to enable cross building
· 8256fd70
Andreas Tille
authored
Jul 26, 2019
8256fd70
debhelper-compat 12
· adf640fc
Andreas Tille
authored
Jul 26, 2019
adf640fc
Upload to unstable
· 5265461c
Andreas Tille
authored
Jul 26, 2019
5265461c
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
5265461c
crac (2.5.2+dfsg-2) unstable; urgency=medium
[ Helmut Grohne ]
* Do not use pkg-config in Makefile.am to enable cross building
Closes: #933024
[ Andreas Tille ]
* debhelper-compat 12
-- Andreas Tille <tille@debian.org> Fri, 26 Jul 2019 22:40:52 +0200
crac (2.5.2+dfsg-1) unstable; urgency=medium
[ Andreas Tille ]
...
...
debian/compat
deleted
100644 → 0
View file @
8192f407
12
debian/control
View file @
5265461c
...
...
@@ -3,7 +3,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.
Uploaders: Andreas Tille <tille@debian.org>
Section: science
Priority: optional
Build-Depends: debhelper (
>
= 12
~
),
Build-Depends: debhelper
-compat
(= 12),
zlib1g-dev,
libhts-dev,
libjellyfish-2.0-dev,
...
...
debian/patches/cross.patch
0 → 100644
View file @
5265461c
Author: Helmut Grohne <helmut@subdivi.de>
Last-Update: Thu, 25 Jul 2019 21:31:15 +0200
Bug-Debian: https://bugs.debian.org/933024
Description: crac fails to cross build from source, because it uses the build
architecture pkg-config in its Makefile.am files. Doing so is an
anti-pattern. You should never call pkg-config from a Makefile.am.
Instead such checks should be performed at configure time. The attached
patch implements that and makes crac cross buildable. Please consider
applying it.
--- a/configure.ac
+++ b/configure.ac
@@ -282,6 +282,7 @@
AC_ARG_WITH([libProgressBar-prefix],
[with_libProgressBar_prefix=""])
dnl Check if we need included ProgressBar library.
+PKG_CHECK_MODULES([PROGRESSBAR],[libProgressBar])
PB_OK=0
AS_IF([test "x$with_included_ProgressBar" == "xcheck"],
[AS_IF([test "x$with_libProgressBar_prefix" != "x"],
@@ -315,6 +316,7 @@
AC_CHECK_LIB([z], [gzread], ,
AC_CHECK_LIB([hts], [hts_hopen], ,
[AC_MSG_ERROR([htslib not found, see http://www.htslib.org/])])
+PKG_CHECK_MODULES([GKARRAYS],[libGkArrays])
GK_OK=1
AS_IF([test "x$with_included_GkArrays" != "xyes"],
[AC_CHECK_LIB([GkArrays],
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -149,11 +149,11 @@
if INCLUDED_JELLYFISH
endif
if INCLUDED_GKARRAYS
- AM_LDFLAGS += `pkg-config --libs libGkArrays`
- AM_CPPFLAGS += `pkg-config --cflags libGkArrays`
+ AM_LDFLAGS += $(GKARRAYS_LIBS)
+ AM_CPPFLAGS += $(GKARRAYS_CFLAGS)
if INCLUDED_PROGRESSBAR
- AM_LDFLAGS += `pkg-config --libs libProgressBar`
- AM_CPPFLAGS += `pkg-config --cflags libProgressBar`
+ AM_LDFLAGS += $(PROGRESSBAR_LIBS)
+ AM_CPPFLAGS += $(PROGRESSBAR_CFLAGS)
endif
endif
--- a/src/libReadsInfo/Makefile.am
+++ b/src/libReadsInfo/Makefile.am
@@ -124,7 +124,7 @@
libReadsInfo_a_SOURCES =
libReadsInfo_a_CPPFLAGS = -I@abs_top_srcdir@ -I@abs_top_srcdir@/src -I@abs_top_srcdir@/src/libSSA
if INCLUDED_GKARRAYS
- libReadsInfo_a_CPPFLAGS += `pkg-config --cflags libGkArrays`
+ libReadsInfo_a_CPPFLAGS += $(GKARRAYS_CFLAGS)
endif
--- a/src/libSSA/Makefile.am
+++ b/src/libSSA/Makefile.am
@@ -101,7 +101,7 @@
bin_PROGRAMS = crac-index
crac_index_SOURCES = cracIndex.cpp cracIndex.h
-AM_CPPFLAGS = -I@abs_top_srcdir@ -I@abs_srcdir@/karkkainen_bwt `pkg-config --cflags libGkArrays`
+AM_CPPFLAGS = -I@abs_top_srcdir@ -I@abs_srcdir@/karkkainen_bwt $(GKARRAYS_CFLAGS)
AM_LDFLAGS = -lm -lpthread -lSSA -L@abs_builddir@/
LDADD = libSSA.a
debian/patches/series
View file @
5265461c
...
...
@@ -3,3 +3,4 @@ use_debian_packaged_libjellyfish.patch
skip_failed_test_bug-14958.patch
use_debian_packages_libgtarrays.patch
reproducible_build.patch
cross.patch