Name grep
Description GNU grep, egrep and fgrep
Version 3.11-4build1
Package Base
Homepage https://www.gnu.org/software/grep/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Santiago Ruano Rincón <santiago@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/grep/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/01-disable-egrep-fgrep-warnings.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/02-man_egrep_fgrep_rgrep.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/05-grep-wrapper-sh.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/1019724-handle-backslash-warning.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/XFAIL-test-regex.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/clean.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/grep-dirfd.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/grep/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6', 'libpcre2-8-0']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dh-sequence-movetousr', 'gettext', 'libpcre2-dev', 'texinfo <!nodoc>']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash fc0fdc5983ea3d3579ccf335e51dec69684a0dd9bb915734999c5733add9507a
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
export MAKEINFO = true
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -O3
export DEB_CPPFLAGS_MAINT_APPEND = -DHAVE_DYNAMIC_LIBPCRE
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

export LIBS=-Wl,--no-as-needed -ldl -Wl,--as-needed

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildopts.mk

USE_INCLUDED_REGEX = --without-included-regex
ifeq (musl,$(DEB_HOST_ARCH_LIBC))
	USE_INCLUDED_REGEX = --with-included-regex
endif

%:
	dh $@

override_dh_auto_clean:
	[ ! -f Makefile ] || dh_auto_clean

# remove this after trixie has been released.
# for the moment, dh-sequence-movetousr is a Build-Dependency, so it would make
# it easier to backport grep, if needed.
override_dh_auto_configure:
	dh_auto_configure -- --exec-prefix=/ $(USE_INCLUDED_REGEX)