pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_config_h.in not up-to-date
7+ messages / 3 participants
[nested] [flat]
Commits from this thread:
2021-02-20 a899ec1cb2 Fix inconsistent configure data for --with-ssl
* pg_config_h.in not up-to-date
@ 2021-02-19 06:40 Antonin Houska <ah@cybertec.at>
0 siblings, 1 reply; 7+ messages in thread
From: Antonin Houska @ 2021-02-19 06:40 UTC (permalink / raw)
To: pgsql-hackers
When I run "autoreconf" on the master branch, git generates the diff
below. Shouldn't it just be applied? I suppose someone changed configure.ac
and forgot to update the generated file.
--
Antonin Houska
Web: https://www.cybertec-postgresql.com
Attachments:
pg_config_h.in.diff (text/x-diff, 470B) download
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 55cab4d2bf..806eabac81 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -899,7 +899,7 @@
/* Define to select named POSIX semaphores. */
#undef USE_NAMED_POSIX_SEMAPHORES
-/* Define to build with OpenSSL support. (--with-ssl=openssl) */
+/* Define to 1 if you have OpenSSL support. */
#undef USE_OPENSSL
/* Define to 1 to build with PAM support. (--with-pam) */
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pg_config_h.in not up-to-date
@ 2021-02-19 06:42 Tom Lane <tgl@sss.pgh.pa.us>
parent: Antonin Houska <ah@cybertec.at>
0 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2021-02-19 06:42 UTC (permalink / raw)
To: Antonin Houska <ah@cybertec.at>; +Cc: pgsql-hackers@postgresql.org, Michael Paquier <michael@paquier.xyz>
Antonin Houska <ah@cybertec.at> writes:
> When I run "autoreconf" on the master branch, git generates the diff
> below. Shouldn't it just be applied? I suppose someone changed configure.ac
> and forgot to update the generated file.
Yeah, looks like fe61df7f8 is at fault. Michael?
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pg_config_h.in not up-to-date
@ 2021-02-19 07:13 Michael Paquier <michael@paquier.xyz>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Paquier @ 2021-02-19 07:13 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Antonin Houska <ah@cybertec.at>; pgsql-hackers
On Fri, Feb 19, 2021 at 01:42:38AM -0500, Tom Lane wrote:
> Antonin Houska <ah@cybertec.at> writes:
>> When I run "autoreconf" on the master branch, git generates the diff
>> below. Shouldn't it just be applied? I suppose someone changed configure.ac
>> and forgot to update the generated file.
>
> Yeah, looks like fe61df7f8 is at fault. Michael?
Indeed, thanks. It looks like a "git add" that was fat-fingered. I
would like to make things more consistent with the attached.
Thoughts?
--
Michael
Attachments:
openssl-autoconf.patch (text/x-diff, 1.0K) download
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 55cab4d2bf..3c1c515d3c 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -899,7 +899,7 @@
/* Define to select named POSIX semaphores. */
#undef USE_NAMED_POSIX_SEMAPHORES
-/* Define to build with OpenSSL support. (--with-ssl=openssl) */
+/* Define to 1 to build with OpenSSL support. (--with-ssl=openssl). */
#undef USE_OPENSSL
/* Define to 1 to build with PAM support. (--with-pam) */
diff --git a/configure.ac b/configure.ac
index 07da84d401..9a7d836ead 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1234,7 +1234,7 @@ if test "$with_ssl" = openssl ; then
# thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
# function was removed.
AC_CHECK_FUNCS([CRYPTO_lock])
- AC_DEFINE([USE_OPENSSL], 1, [Define to 1 if you have OpenSSL support.])
+ AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl).])
elif test "$with_ssl" != no ; then
AC_MSG_ERROR([--with-ssl must specify openssl])
fi
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pg_config_h.in not up-to-date
@ 2021-02-19 07:21 Tom Lane <tgl@sss.pgh.pa.us>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2021-02-19 07:21 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: Antonin Houska <ah@cybertec.at>; pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> Indeed, thanks. It looks like a "git add" that was fat-fingered. I
> would like to make things more consistent with the attached.
+1, but I think the first period in this comment is redundant:
+ AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl).])
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pg_config_h.in not up-to-date
@ 2021-02-19 07:34 Michael Paquier <michael@paquier.xyz>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Paquier @ 2021-02-19 07:34 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Antonin Houska <ah@cybertec.at>; pgsql-hackers
On Fri, Feb 19, 2021 at 02:21:21AM -0500, Tom Lane wrote:
> Michael Paquier <michael@paquier.xyz> writes:
> > Indeed, thanks. It looks like a "git add" that was fat-fingered. I
> > would like to make things more consistent with the attached.
>
> +1, but I think the first period in this comment is redundant:
>
> + AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl).])
I guess that you mean the second period here to be more consistent
with the others? That would mean the following diff:
+ AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl)])
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pg_config_h.in not up-to-date
@ 2021-02-19 14:57 Tom Lane <tgl@sss.pgh.pa.us>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2021-02-19 14:57 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: Antonin Houska <ah@cybertec.at>; pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Fri, Feb 19, 2021 at 02:21:21AM -0500, Tom Lane wrote:
>> +1, but I think the first period in this comment is redundant:
>> + AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl).])
> I guess that you mean the second period here to be more consistent
> with the others? That would mean the following diff:
> + AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl)])
Hm. It should be consistent with the rest, for sure. Personally I'd put
the only period at the end, but I suppose we should stick with the
prevailing style if there is one.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pg_config_h.in not up-to-date
@ 2021-02-20 01:20 Michael Paquier <michael@paquier.xyz>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Michael Paquier @ 2021-02-20 01:20 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Antonin Houska <ah@cybertec.at>; pgsql-hackers
On Fri, Feb 19, 2021 at 09:57:22AM -0500, Tom Lane wrote:
> Hm. It should be consistent with the rest, for sure. Personally I'd put
> the only period at the end, but I suppose we should stick with the
> prevailing style if there is one.
Thanks. I have just used the same style as XML, LDAP and LLVM then.
Thanks Antonin for the report.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2021-02-20 01:20 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 06:40 pg_config_h.in not up-to-date Antonin Houska <ah@cybertec.at>
2021-02-19 06:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-02-19 07:13 ` Michael Paquier <michael@paquier.xyz>
2021-02-19 07:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-02-19 07:34 ` Michael Paquier <michael@paquier.xyz>
2021-02-19 14:57 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-02-20 01:20 ` Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox