From e54997251bdd9e0d51ca40ec96b337b086951aa3 Mon Sep 17 00:00:00 2001 From: lagertonne Date: Sat, 1 Jan 2022 10:58:48 +0100 Subject: [PATCH] debian: Build package without auto_build --- debian/control | 2 +- debian/rules | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index e0b0d66..4a381f1 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: ifupdown-ng Section: unknown Priority: optional Maintainer: unknown -Build-Depends: debhelper-compat (= 13), libbsd0, libbsd-dev +Build-Depends: debhelper-compat (= 13), libbsd0, libbsd-dev, pkg-config Standards-Version: 4.6.0 Homepage: https://github.com/ifupdown-ng/ifupdown-ng #Vcs-Browser: https://salsa.debian.org/debian/ifupdown-ng diff --git a/debian/rules b/debian/rules index a1fa31a..3af708a 100755 --- a/debian/rules +++ b/debian/rules @@ -15,10 +15,12 @@ %: - export LIBBSD_CFLAGS="$(pkg-config --cflags libbsd-overlay)" - export LIBBSD_LIBS="$(pkg-config --cflags --libs libbsd-overlay)" dh $@ +override_dh_auto_build: + make \ + LIBBSD_CFLAGS="-isystem /usr/include/bsd -DLIBBSD_OVERLAY -lbsd " \ + LIBBSD_LIBS="-isystem /usr/include/bsd -DLIBBSD_OVERLAY -lbsd " # dh_make generated override targets # This is example for Cmake (See https://bugs.debian.org/641051 )