Package: sed Version: 4.2.2-2 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hello, hurd doesn't define PATH_MAX and upstream decided not to set it themself anymore since 4.2.2. See http://sources.debian.net/src/sed/4.2.2-2/lib/pathmax.h Attached patch01 sets PATH_MAX in d/rules. Alternatively patch02 defines it in pathmax.h above. Thanks for considering.
diff --git a/debian/rules b/debian/rules index 766be62..d88f806 100755 --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,7 @@ tmpdir = $(CURDIR)/debian/tmp DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CONFARGS = --host=$(DEB_HOST_GNU_TYPE) endif @@ -15,6 +16,10 @@ CFLAGS := $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) +ifneq (,$(filter hurd-%,$(DEB_BUILD_ARCH))) + CFLAGS += -DPATH_MAX=8192 +endif + INSTALL = install INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
diff --git a/lib/pathmax.h b/lib/pathmax.h index bd0bc00..5acee3d 100644 --- a/lib/pathmax.h +++ b/lib/pathmax.h @@ -82,4 +82,8 @@ # define PATH_MAX 260 # endif +# ifdef __GNU__ +# define PATH_MAX 8192 +# endif + #endif /* _PATHMAX_H */

