diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-02 23:43:21 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-03 05:51:11 +0000 |
commit | 0c153250617ed0d50f1ee4ac1e7aa53bad9e87af (patch) | |
tree | 8a37d98758f8b8344861694659e24f5ca245cc90 /net-dns | |
parent | net-libs/socket_wrapper: add 1.4.2 (diff) | |
download | gentoo-0c153250617ed0d50f1ee4ac1e7aa53bad9e87af.tar.gz gentoo-0c153250617ed0d50f1ee4ac1e7aa53bad9e87af.tar.bz2 gentoo-0c153250617ed0d50f1ee4ac1e7aa53bad9e87af.zip |
net-dns/maradns: fix totally broken patch
In commit 73937e86b92dcf813bf021a83451e2ae4dbc423c, a version bump was
applied, and a patch file in FILESDIR which was applied to the old
version was "rebased" against the new release and applied in-place for
both the old and new versions.
Result: stable ebuild does not compile because patch doesn't match.
Fixes: 73937e86b92dcf813bf021a83451e2ae4dbc423c
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/maradns/files/maradns-3.5.0022-flags.patch | 23 | ||||
-rw-r--r-- | net-dns/maradns/files/maradns-3.5.0036-flags.patch | 56 | ||||
-rw-r--r-- | net-dns/maradns/maradns-3.5.0036.ebuild | 2 |
3 files changed, 73 insertions, 8 deletions
diff --git a/net-dns/maradns/files/maradns-3.5.0022-flags.patch b/net-dns/maradns/files/maradns-3.5.0022-flags.patch index 923417538778..9f01795fd2bb 100644 --- a/net-dns/maradns/files/maradns-3.5.0022-flags.patch +++ b/net-dns/maradns/files/maradns-3.5.0022-flags.patch @@ -1,15 +1,23 @@ -Rebased on 2024-01-20, version 3.5.0036 - From 15470045421448a7a6813e2a4a96e18bba3b0aa4 Mon Sep 17 00:00:00 2001 From: Victor Kustov <ktrace@yandex.ru> Date: Wed, 27 Jul 2022 21:28:31 +0300 Subject: [PATCH] 2nd +--- + build/Makefile.linux | 32 ++++++++++++++++---------------- + 1 file changed, 16 insertions(+), 16 deletions(-) + diff --git a/build/Makefile.linux b/build/Makefile.linux -index 9d8117e..22a7518 100644 +index 965c7fb..572dccc 100644 --- a/build/Makefile.linux +++ b/build/Makefile.linux -@@ -29,29 +29,27 @@ Q="DEFINES=-DSELECT_PROBLEM" +@@ -24,32 +24,32 @@ EXECS=server/maradns + # end the Solaris section + # Non-Solaris version of "M" + V="VERSION=$(VERSION)" +-Q="DEFINES=-DSELECT_PROBLEM" ++Q="$(LDFLAGS) DEFINES=-DSELECT_PROBLEM" + # Debug FLAGS = -O2 -Wall -DSELECT_PROBLEM @@ -26,9 +34,7 @@ index 9d8117e..22a7518 100644 - make $(M) $(V) COMPILED=\"$(COMPILED)\" ; \ - cd ../tools ; make $(M) ; \ - cd ../deadwood-*/src/ ; make FLAGS=-O2 ; \ -- cd ../tools/blockhash ; make CFLAGS=-O2 ; \ -- cd ../../../coLunacyDNS/ ; make ; \ -- cd ../tcp ; make $(M) $(V) ; cat ../00README.FIRST +- cd ../../tcp ; make $(M) $(V) ; cat ../00README.FIRST + cd libs ; $(MAKE) $(M) ; cd ../dns ; $(MAKE) $(M) ; \ + cd ../rng ; $(MAKE) $(M) ; cd ../parse ; $(MAKE) $(M) ; \ + cd ../qual ; $(MAKE) $(M) ; cd ../server ; \ @@ -54,3 +60,6 @@ index 9d8117e..22a7518 100644 clean: rm -f $(OBJECTS) core $(EXECS) ; \ +-- +2.35.1 + diff --git a/net-dns/maradns/files/maradns-3.5.0036-flags.patch b/net-dns/maradns/files/maradns-3.5.0036-flags.patch new file mode 100644 index 000000000000..923417538778 --- /dev/null +++ b/net-dns/maradns/files/maradns-3.5.0036-flags.patch @@ -0,0 +1,56 @@ +Rebased on 2024-01-20, version 3.5.0036 + +From 15470045421448a7a6813e2a4a96e18bba3b0aa4 Mon Sep 17 00:00:00 2001 +From: Victor Kustov <ktrace@yandex.ru> +Date: Wed, 27 Jul 2022 21:28:31 +0300 +Subject: [PATCH] 2nd + +diff --git a/build/Makefile.linux b/build/Makefile.linux +index 9d8117e..22a7518 100644 +--- a/build/Makefile.linux ++++ b/build/Makefile.linux +@@ -29,29 +29,27 @@ Q="DEFINES=-DSELECT_PROBLEM" + # Debug + + FLAGS = -O2 -Wall -DSELECT_PROBLEM +-M="CC=$(CC) $(FLAGS)" +-D="CC=$(CC) $(FLAGS) -DDEBUG -DTHREADS" ++M="CC=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" ++D="CC=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DDEBUG -DTHREADS" + #FLAGS = -g + + all: +- cd libs ; make $(M) ; cd ../dns ; make $(M) ; \ +- cd ../rng ; make $(M) ; cd ../parse ; make $(M) ; \ +- cd ../qual ; make $(M) ; cd ../server ; \ +- make $(M) $(V) COMPILED=\"$(COMPILED)\" ; \ +- cd ../tools ; make $(M) ; \ +- cd ../deadwood-*/src/ ; make FLAGS=-O2 ; \ +- cd ../tools/blockhash ; make CFLAGS=-O2 ; \ +- cd ../../../coLunacyDNS/ ; make ; \ +- cd ../tcp ; make $(M) $(V) ; cat ../00README.FIRST ++ cd libs ; $(MAKE) $(M) ; cd ../dns ; $(MAKE) $(M) ; \ ++ cd ../rng ; $(MAKE) $(M) ; cd ../parse ; $(MAKE) $(M) ; \ ++ cd ../qual ; $(MAKE) $(M) ; cd ../server ; \ ++ $(MAKE) $(M) $(V) COMPILED=\"$(COMPILED)\" ; \ ++ cd ../tools ; $(MAKE) $(M) ; \ ++ cd ../deadwood-*/src/ ; $(MAKE) $(M) ; \ ++ cd ../../tcp ; $(MAKE) $(M) $(V) ; cat ../00README.FIRST + + debug: +- cd libs ; make $(D) DEBUG="-DDEBUG -DTHREADS" ; \ +- cd ../dns ; make $(D) ; cd ../rng ; make $(D) ; \ +- cd ../parse ; make $(D) ; cd ../qual ; make $(D) ; \ ++ cd libs ; $(MAKE) $(D) ; \ ++ cd ../dns ; $(MAKE) $(D) ; cd ../rng ; $(MAKE) $(D) ; \ ++ cd ../parse ; $(MAKE) $(D) ; cd ../qual ; $(MAKE) $(D) ; \ + cd ../server ; \ +- make $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \ +- cd ../tools ; make $(D) ; \ +- cd ../tcp ; make $(D) $(V) ; cat ../00README.FIRST ++ $(MAKE) $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \ ++ cd ../tools ; $(MAKE) $(D) ; \ ++ cd ../tcp ; $(MAKE) $(D) $(V) ; cat ../00README.FIRST + + clean: + rm -f $(OBJECTS) core $(EXECS) ; \ diff --git a/net-dns/maradns/maradns-3.5.0036.ebuild b/net-dns/maradns/maradns-3.5.0036.ebuild index 0eea6659b14e..fc926f30ad71 100644 --- a/net-dns/maradns/maradns-3.5.0036.ebuild +++ b/net-dns/maradns/maradns-3.5.0036.ebuild @@ -25,7 +25,7 @@ DEPEND=" RDEPEND="${DEPEND}" PATCHES=( - "${FILESDIR}"/${PN}-3.5.0022-flags.patch + "${FILESDIR}"/${PN}-3.5.0036-flags.patch ) src_configure() { |