Removing rm regress.def

Started by Christoph Berg7 months ago4 messages
#1Christoph Berg
myon@debian.org
1 attachment(s)

pgxs.mk is cleaning up a file "regress.def" if PORTNAME=win, but the
only reference to that file I could find is in the original commit
from 1999 adding that "rm" rule (and several commits moving the rule
around later).

Given that the PORTNAME is wrong (should be win32), it's probably safe
to just delete the rule.

Christoph

Attachments:

0001-pgxs.mk-Remove-bogus-PORTNAME-win-rule.patchtext/x-diff; charset=us-asciiDownload
From f8393e2308d7f91e15fc412848dd70157a68e29a Mon Sep 17 00:00:00 2001
From: Christoph Berg <myon@debian.org>
Date: Fri, 20 Jun 2025 14:12:38 +0200
Subject: [PATCH] pgxs.mk: Remove bogus PORTNAME=win rule

PORTNAME should be win32, but the file we are cleaning up never gets
created. The only reference to regress.def is removing the file.
This seems to have been wrong since 7a6b562fdf from 1999.
---
 src/makefiles/pgxs.mk | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk
index 0de3737e789..039cee3dfe5 100644
--- a/src/makefiles/pgxs.mk
+++ b/src/makefiles/pgxs.mk
@@ -376,10 +376,7 @@ endif
 ifdef REGRESS
 # things created by various check targets
 	rm -rf $(pg_regress_clean_files)
-ifeq ($(PORTNAME), win)
-	rm -f regress.def
 endif
-endif # REGRESS
 ifdef TAP_TESTS
 	rm -rf tmp_check/
 endif
-- 
2.47.2

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christoph Berg (#1)
Re: Removing rm regress.def

Christoph Berg <myon@debian.org> writes:

pgxs.mk is cleaning up a file "regress.def" if PORTNAME=win, but the
only reference to that file I could find is in the original commit
from 1999 adding that "rm" rule (and several commits moving the rule
around later).

Given that the PORTNAME is wrong (should be win32), it's probably safe
to just delete the rule.

Yeah, seems quite bogus. It's harmless though, so I don't
see a need to back-patch, do you?

regards, tom lane

#3Christoph Berg
myon@debian.org
In reply to: Tom Lane (#2)
Re: Removing rm regress.def

Re: Tom Lane

Yeah, seems quite bogus. It's harmless though, so I don't
see a need to back-patch, do you?

Other than it being confusing, it doesn't hurt.

Christoph

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christoph Berg (#3)
Re: Removing rm regress.def

Christoph Berg <myon@debian.org> writes:

Re: Tom Lane

Yeah, seems quite bogus. It's harmless though, so I don't
see a need to back-patch, do you?

Other than it being confusing, it doesn't hurt.

OK, applied to master only.

regards, tom lane