Remove ancient PIE patch

Originally added by commit 207484f5d447b8b291e04a7304b16a997e71d10b.
I think those flags are not neede anymore. Some of those became defaults
anyway. Others are part of compilation flags used by the system. Nothing
else should be required. Checking by checksec(8) tool did not reveal any
differences with or without this patch.
This commit is contained in:
Petr Menšík 2023-01-19 16:47:19 +01:00
parent 90b4cd1957
commit 4bcdb122d8
2 changed files with 2 additions and 20 deletions

View File

@ -1,17 +0,0 @@
diff --git a/bin/named/Makefile.am b/bin/named/Makefile.am
index 57a023b..085f2f7 100644
--- a/bin/named/Makefile.am
+++ b/bin/named/Makefile.am
@@ -32,9 +32,12 @@ AM_CPPFLAGS += \
endif HAVE_LIBXML2
AM_CPPFLAGS += \
+ -fpie \
-DNAMED_LOCALSTATEDIR=\"${localstatedir}\" \
-DNAMED_SYSCONFDIR=\"${sysconfdir}\"
+AM_LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
+
sbin_PROGRAMS = named
nodist_named_SOURCES = xsl.c

View File

@ -89,9 +89,7 @@ Source48: setup-named-softhsm.sh
Source49: named-chroot.files
# Common patches
# FIXME: Is this still required or useful? Added by commit:
# https://src.fedoraproject.org/rpms/bind/c/bbeea42ab3194cda396fdf32e9ee516cec4bb3ca
#Patch10: bind-9.5-PIE.patch
# Red Hat specific documentation is not relevant to upstream
Patch16: bind-9.16-redhat_doc.patch
# Later, many conflicts
#Patch22: bind-9.11-fips-tests.patch
@ -959,6 +957,7 @@ fi;
- Own logrotate and chroot %_datadir
- Install files with timestamp preservation
- Skip PIE patch, remove some unused defines
- Remove PIE patch altogether
* Mon Jan 16 2023 Petr Menšík <pemensik@redhat.com> - 32:9.19.8-1
- Update to 9.19.8