Package: cdbs
Version: 0.4.122
Severity: normal
Tags: patch

Hi, 

I've just moved grep packaging (version 2.18-1) to cdbs. One of the
manual settings I had to do is to configure the prefix of
architecture-dependent files (grep installs its binaries in /bin/).
Since I didn't find a specific cdbs autotools variable for this, I'm
using:
DEB_CONFIGURE_EXTRA_FLAGS += --exec-prefix=/

The attached patch adds DEB_CONFIGURE_EXECDIR to autotools-vars.mk

Cheers,

Santiago

PS. I admit that I used to dislike cdbs, but now I think it's useful.
Thanks a lot for you work!

-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (500, 'stable'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

cdbs depends on no packages.

Versions of packages cdbs recommends:
ii  autotools-dev  20130810.1

Versions of packages cdbs suggests:
ii  devscripts  2.14.1

-- debconf-show failed
diff --git a/1/class/autotools-vars.mk.in b/1/class/autotools-vars.mk.in
index 13fff0b..fd493ba 100644
--- a/1/class/autotools-vars.mk.in
+++ b/1/class/autotools-vars.mk.in
@@ -45,6 +45,7 @@ DEB_CONFIGURE_SCRIPT ?= $(CURDIR)/$(DEB_SRCDIR)/configure
 DEB_CONFIGURE_CROSSBUILD_ARGS ?= --build=$(DEB_BUILD_GNU_TYPE) $(if $(cdbs_crossbuild),--host=$(DEB_HOST_GNU_TYPE))
 
 DEB_CONFIGURE_PREFIX ?=/usr
+DEB_CONFIGURE_EXECDIR ?=$(DEB_CONFIGURE_PREFIX)
 DEB_CONFIGURE_INCLUDEDIR ?= "\$${prefix}/include"
 DEB_CONFIGURE_MANDIR ?= "\$${prefix}/share/man"
 DEB_CONFIGURE_INFODIR ?= "\$${prefix}/share/info"
@@ -54,7 +55,15 @@ DEB_CONFIGURE_LIBEXECDIR ?= "\$${prefix}/lib/$(DEB_SOURCE_PACKAGE)"
 # --srcdir=. is required because otherwise configure wants to analyse
 # $0 to see whether a VPATH build is needed.  This tells it with
 # absolute certainly that this is NOT a VPATH build.
-DEB_CONFIGURE_PATH_ARGS ?= --prefix=$(DEB_CONFIGURE_PREFIX) --includedir=$(DEB_CONFIGURE_INCLUDEDIR) --mandir=$(DEB_CONFIGURE_MANDIR) --infodir=$(DEB_CONFIGURE_INFODIR) --sysconfdir=$(DEB_CONFIGURE_SYSCONFDIR) --localstatedir=$(DEB_CONFIGURE_LOCALSTATEDIR) --libexecdir=$(DEB_CONFIGURE_LIBEXECDIR) $(if $(subst $(DEB_SRCDIR),,$(cdbs_make_curbuilddir)),,--srcdir=.)
+DEB_CONFIGURE_PATH_ARGS ?= --prefix=$(DEB_CONFIGURE_PREFIX) \
+						   --exec-prefix=$(DEB_CONFIGURE_EXECDIR) \
+						   --includedir=$(DEB_CONFIGURE_INCLUDEDIR) \
+						   --mandir=$(DEB_CONFIGURE_MANDIR) \
+						   --infodir=$(DEB_CONFIGURE_INFODIR) \
+						   --sysconfdir=$(DEB_CONFIGURE_SYSCONFDIR) \
+						   --localstatedir=$(DEB_CONFIGURE_LOCALSTATEDIR) \
+						   --libexecdir=$(DEB_CONFIGURE_LIBEXECDIR) \
+						   $(if $(subst $(DEB_SRCDIR),,$(cdbs_make_curbuilddir)),,--srcdir=.)
 
 DEB_CONFIGURE_NORMAL_ARGS ?= $(DEB_CONFIGURE_CROSSBUILD_ARGS) $(DEB_CONFIGURE_PATH_ARGS) --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules
 

Attachment: signature.asc
Description: Digital signature

Reply via email to