[opensaml2] 02/05: New patch Provide-PKG_INSTALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch

Etienne Dysli Metref edm-guest at moszumanska.debian.org
Mon Oct 24 07:32:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

edm-guest pushed a commit to branch debian/wheezy-backports-sloppy
in repository opensaml2.

commit 759d492d3817dac3b93244ccfa3d6d732feceab6
Author: Etienne Dysli Metref <etienne.dysli-metref at switch.ch>
Date:   Fri Sep 30 10:20:06 2016 +0200

    New patch Provide-PKG_INSTALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch
    
    Provide the two macros PKG_INSTALLDIR and PKG_CHECK_VAR which
    pkg-config < 0.27 does not have, in order to build for wheezy.
---
 ...ALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch | 75 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 76 insertions(+)

diff --git a/debian/patches/Provide-PKG_INSTALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch b/debian/patches/Provide-PKG_INSTALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch
new file mode 100644
index 0000000..7046273
--- /dev/null
+++ b/debian/patches/Provide-PKG_INSTALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch
@@ -0,0 +1,75 @@
+From: Etienne Dysli Metref <etienne.dysli-metref at switch.ch>
+Date: Thu, 20 Oct 2016 11:44:10 +0200
+Subject: Provide PKG_INSTALLDIR and PKG_CHECK_VAR macros to build with older
+ pkg-config
+
+Macros copied from '/usr/share/aclocal/pkg.m4', provided by jessie's
+pkg-config 0.28-1, into 'm4/pkg_newer_macros.m4'. Enables building the
+package with wheezy's older pkg-config.
+---
+ m4/pkg_newer_macros.m4 | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 56 insertions(+)
+ create mode 100644 m4/pkg_newer_macros.m4
+
+diff --git a/m4/pkg_newer_macros.m4 b/m4/pkg_newer_macros.m4
+new file mode 100644
+index 0000000..7cb119b
+--- /dev/null
++++ b/m4/pkg_newer_macros.m4
+@@ -0,0 +1,56 @@
++# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
++# serial 1 (pkg-config-0.24)
++# 
++# Copyright © 2004 Scott James Remnant <scott at netsplit.com>.
++#
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 2 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful, but
++# WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++# General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++#
++# As a special exception to the GNU General Public License, if you
++# distribute this file as part of a program that contains a
++# configuration script generated by Autoconf, you may include it under
++# the same distribution terms that you use for the rest of that program.
++
++# PKG_INSTALLDIR(DIRECTORY)
++# -------------------------
++# Substitutes the variable pkgconfigdir as the location where a module
++# should install pkg-config .pc files. By default the directory is
++# $libdir/pkgconfig, but the default can be changed by passing
++# DIRECTORY. The user can override through the --with-pkgconfigdir
++# parameter.
++AC_DEFUN([PKG_INSTALLDIR],
++[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
++m4_pushdef([pkg_description],
++    [pkg-config installation directory @<:@]pkg_default[@:>@])
++AC_ARG_WITH([pkgconfigdir],
++    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
++    [with_pkgconfigdir=]pkg_default)
++AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
++m4_popdef([pkg_default])
++m4_popdef([pkg_description])
++]) dnl PKG_INSTALLDIR
++
++# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
++# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
++# -------------------------------------------
++# Retrieves the value of the pkg-config variable for the given module.
++AC_DEFUN([PKG_CHECK_VAR],
++[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
++AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
++
++_PKG_CONFIG([$1], [variable="][$3]["], [$2])
++AS_VAR_COPY([$1], [pkg_cv_][$1])
++
++AS_VAR_IF([$1], [""], [$5], [$4])dnl
++])# PKG_CHECK_VAR
diff --git a/debian/patches/series b/debian/patches/series
index 59822b8..7596772 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -19,3 +19,4 @@ Refactor-test-source-generation.patch
 Derive-correct-test-data-paths-from-srcdir.patch
 Enable-skipping-tests-which-require-network-access.patch
 Enable-the-dot-feature-of-Doxygen.patch
+Provide-PKG_INSTALLDIR-and-PKG_CHECK_VAR-macros-to-build-.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/opensaml2.git



More information about the Pkg-shibboleth-devel mailing list