public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/openldap/, net-nds/openldap/files/
Date: Tue, 18 Feb 2025 04:05:30 +0000 (UTC)	[thread overview]
Message-ID: <1739851506.ebf52f19f7d27d8ed019a06fa49944cb56605780.sam@gentoo> (raw)

commit:     ebf52f19f7d27d8ed019a06fa49944cb56605780
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 18 04:03:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 18 04:05:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebf52f19

net-nds/openldap: fix another Modern C issue

Closes: https://bugs.gentoo.org/938581
Thanks-to: Attila Tóth <atoth <AT> atoth.sote.hu>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/openldap-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch   | 12 ++++++++++++
 net-nds/openldap/openldap-2.5.19.ebuild                      |  1 +
 net-nds/openldap/openldap-2.6.8-r1.ebuild                    |  1 +
 net-nds/openldap/openldap-2.6.9.ebuild                       |  1 +
 4 files changed, 15 insertions(+)

diff --git a/net-nds/openldap/files/openldap-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch b/net-nds/openldap/files/openldap-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
new file mode 100644
index 000000000000..8f369d3b22a4
--- /dev/null
+++ b/net-nds/openldap/files/openldap-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/938581#c5
+--- a/servers/slapd/back-sql/sql-wrap.c
++++ b/servers/slapd/back-sql/sql-wrap.c
+@@ -37,7 +37,7 @@ backsql_PrintErrors( SQLHENV henv, SQLHD
+ {
+ 	SQLCHAR	msg[SQL_MAX_MESSAGE_LENGTH];		/* msg. buffer    */
+ 	SQLCHAR	state[SQL_SQLSTATE_SIZE];		/* statement buf. */
+-	SDWORD	iSqlCode;				/* return code    */
++	SQLINTEGER	iSqlCode;			/* return code    */
+ 	SWORD	len = SQL_MAX_MESSAGE_LENGTH - 1;	/* return length  */ 
+ 
+ 	Debug( LDAP_DEBUG_TRACE, "Return code: %d\n", rc );

diff --git a/net-nds/openldap/openldap-2.5.19.ebuild b/net-nds/openldap/openldap-2.5.19.ebuild
index 12f3fe5fecbb..350620e9508e 100644
--- a/net-nds/openldap/openldap-2.5.19.ebuild
+++ b/net-nds/openldap/openldap-2.5.19.ebuild
@@ -148,6 +148,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-2.6.1-system-mdb.patch
 	"${FILESDIR}"/${PN}-2.6.1-cloak.patch
 	"${FILESDIR}"/${PN}-2.6.1-flags.patch
+	"${FILESDIR}"/${PN}-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
 	#"${FILESDIR}"/${PN}-2.6.x-slapd-pointer-types.patch # needs backport
 )
 

diff --git a/net-nds/openldap/openldap-2.6.8-r1.ebuild b/net-nds/openldap/openldap-2.6.8-r1.ebuild
index 684b983b7614..a001cc4d9e3f 100644
--- a/net-nds/openldap/openldap-2.6.8-r1.ebuild
+++ b/net-nds/openldap/openldap-2.6.8-r1.ebuild
@@ -149,6 +149,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-2.6.1-flags.patch
 	"${FILESDIR}"/${PN}-2.6.1-fix-missing-mapping.v2.patch
 	"${FILESDIR}"/${PN}-2.6.x-gnutls-pointer-error.patch
+	"${FILESDIR}"/${PN}-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
 )
 
 openldap_filecount() {

diff --git a/net-nds/openldap/openldap-2.6.9.ebuild b/net-nds/openldap/openldap-2.6.9.ebuild
index 7a273c10f7f3..b6bac7149c3e 100644
--- a/net-nds/openldap/openldap-2.6.9.ebuild
+++ b/net-nds/openldap/openldap-2.6.9.ebuild
@@ -151,6 +151,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-2.6.1-cloak.patch
 	"${FILESDIR}"/${PN}-2.6.1-flags.patch
 	"${FILESDIR}"/${PN}-2.6.1-fix-missing-mapping.v2.patch
+	"${FILESDIR}"/${PN}-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
 )
 
 openldap_filecount() {


             reply	other threads:[~2025-02-18  4:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-18  4:05 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-18  3:39 [gentoo-commits] repo/gentoo:master commit in: net-nds/openldap/, net-nds/openldap/files/ Sam James
2024-08-25  0:57 Robin H. Johnson
2023-02-09 23:48 Robin H. Johnson
2023-01-30 16:46 Mike Gilbert
2022-12-01  5:17 Sam James
2022-11-25  7:05 Sam James
2022-05-09 23:08 Sam James
2022-03-20 21:04 Sam James
2022-03-19 18:07 Robin H. Johnson
2021-05-02 11:22 Mikle Kolyada
2021-03-25 13:14 Sam James
2019-02-21 19:47 Patrick McLean
2017-02-20  0:36 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1739851506.ebf52f19f7d27d8ed019a06fa49944cb56605780.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox