From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/c-client/files/
Date: Sat, 04 Jan 2025 22:47:53 +0000 (UTC) [thread overview]
Message-ID: <1736030828.f159c9eb1c0f0d76068b0cb98fce620fcecfd992.conikost@gentoo> (raw)
commit: f159c9eb1c0f0d76068b0cb98fce620fcecfd992
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri Jan 3 15:36:27 2025 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Jan 4 22:47:08 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f159c9eb
net-libs/c-client: remove unused patches
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
.../files/c-client-2006k_GENTOO_amd64-so-fix.patch | 13 -----
.../c-client-2007f-implicit-declaration-fix.patch | 34 -----------
.../c-client/files/c-client-2007f-ldflags.patch | 33 -----------
.../files/c-client-2007f-openssl-1.1.patch | 66 ----------------------
4 files changed, 146 deletions(-)
diff --git a/net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch b/net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch
deleted file mode 100644
index 79b067d21f94..000000000000
--- a/net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -r 7c3e6c6ef2ba src/osdep/unix/Makefile
---- a/src/osdep/unix/Makefile Thu Feb 21 18:51:32 2008 +0100
-+++ b/src/osdep/unix/Makefile Thu Feb 21 18:53:15 2008 +0100
-@@ -962,6 +962,9 @@ onceenv:
- -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" > OSCFLAGS
- echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
- echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
-+ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \
-+ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \
-+ >> ARCHIVE
- echo $(OS) > OSTYPE
- ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
- ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)
diff --git a/net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch b/net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch
deleted file mode 100644
index 74e223d0f86c..000000000000
--- a/net-libs/c-client/files/c-client-2007f-implicit-declaration-fix.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-This patch solves build issues with -Werror=implicit-function-declaration
-enabled.
-
-- safe_flock is a function from flocklnx.c but header file for consumers
- is missing, the simplest was to add function prototype to other
- header file.
-- utime.h is needed also in multiple places but os_slx.h header file is
- used in all of them
-
-Bug: https://bugs.gentoo.org/870478
-
-diff --git a/src/osdep/unix/os_slx.h b/src/osdep/unix/os_slx.h
-index b5f39ff..adad223 100644
---- a/src/osdep/unix/os_slx.h
-+++ b/src/osdep/unix/os_slx.h
-@@ -46,6 +46,7 @@
- #include <sys/types.h>
- #include <dirent.h>
- #include <time.h> /* for struct tm */
-+#include <utime.h>
- #include <fcntl.h>
- #include <syslog.h>
- #include <sys/file.h>
-@@ -57,6 +58,7 @@
-
- #define direct dirent
-
-+int safe_flock(int, int);
- #define flock safe_flock
-
-
---
-2.35.1
-
diff --git a/net-libs/c-client/files/c-client-2007f-ldflags.patch b/net-libs/c-client/files/c-client-2007f-ldflags.patch
deleted file mode 100644
index 2f1cf506db75..000000000000
--- a/net-libs/c-client/files/c-client-2007f-ldflags.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/src/osdep/unix/Makefile~ 2011-06-07 16:04:29.000000000 +0300
-+++ b/src/osdep/unix/Makefile 2011-06-07 15:55:31.000000000 +0300
-@@ -954,23 +954,24 @@
-
- # Once-only environment setup
-
--once: onceenv ckp$(PASSWDTYPE) ssl$(SSLTYPE) osdep.c
-+once: ssl$(SSLTYPE) onceenv ckp$(PASSWDTYPE) osdep.c
-
- onceenv:
- @echo Once-only environment setup...
- echo $(CC) > CCTYPE
-- echo $(BASECFLAGS) '$(EXTRACFLAGS)' -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS
-- echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \
-+ echo `$(CAT) CFLAGS` $(BASECFLAGS) '$(EXTRACFLAGS)' -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS
-+ echo `$(CAT) OSCFLAGS` -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \
- -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \
- -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" \
- -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \
- -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" \
- -DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \
- -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS
-- echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
-+ echo $(EXTRALIBS) `$(CAT) LDFLAGS` > LIBS
-+ echo $(EXTRALDFLAGS) `$(CAT) LDFLAGS` -lcrypt $(BASELDFLAGS) > LDFLAGS
- echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
-- echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \
-- -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \
-+ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` $(EXTRALDFLAGS) `$(CAT) OSFLAGS` -shared \
-+ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" `$(CAT) LIBS` $(BASELDFLAGS) \
- >> ARCHIVE
- echo $(OS) > OSTYPE
- ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
diff --git a/net-libs/c-client/files/c-client-2007f-openssl-1.1.patch b/net-libs/c-client/files/c-client-2007f-openssl-1.1.patch
deleted file mode 100644
index 918f0bd3fbd5..000000000000
--- a/net-libs/c-client/files/c-client-2007f-openssl-1.1.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -Nru a/src/osdep/unix/ssl_unix.c b/src/osdep/unix/ssl_unix.c
---- a/src/osdep/unix/ssl_unix.c 2011-07-23 02:20:10.000000000 +0200
-+++ b/src/osdep/unix/ssl_unix.c 2018-09-22 09:34:26.492765776 +0200
-@@ -59,7 +59,7 @@
- static SSLSTREAM *ssl_start(TCPSTREAM *tstream,char *host,unsigned long flags);
- static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags);
- static int ssl_open_verify (int ok,X509_STORE_CTX *ctx);
--static char *ssl_validate_cert (X509 *cert,char *host);
-+static char *ssl_validate_cert (X509 *cert,char *host, char *cert_subj);
- static long ssl_compare_hostnames (unsigned char *s,unsigned char *pat);
- static char *ssl_getline_work (SSLSTREAM *stream,unsigned long *size,
- long *contd);
-@@ -210,6 +210,7 @@
- BIO *bio;
- X509 *cert;
- unsigned long sl,tl;
-+ char cert_subj[250];
- char *s,*t,*err,tmp[MAILTMPLEN];
- sslcertificatequery_t scq =
- (sslcertificatequery_t) mail_parameters (NIL,GET_SSLCERTIFICATEQUERY,NIL);
-@@ -266,13 +267,17 @@
- if (SSL_write (stream->con,"",0) < 0)
- return ssl_last_error ? ssl_last_error : "SSL negotiation failed";
- /* need to validate host names? */
-- if (!(flags & NET_NOVALIDATECERT) &&
-- (err = ssl_validate_cert (cert = SSL_get_peer_certificate (stream->con),
-- host))) {
-- /* application callback */
-- if (scq) return (*scq) (err,host,cert ? cert->name : "???") ? NIL : "";
-- /* error message to return via mm_log() */
-- sprintf (tmp,"*%.128s: %.255s",err,cert ? cert->name : "???");
-+ if (!(flags & NET_NOVALIDATECERT)) {
-+ cert_subj[0] = '\0';
-+ cert = SSL_get_peer_certificate(stream->con);
-+ if (cert)
-+ X509_NAME_oneline(X509_get_subject_name(cert), cert_subj, sizeof(cert_subj));
-+ err = ssl_validate_cert (cert, host, cert_subj);
-+ if (err)
-+ /* application callback */
-+ if (scq) return (*scq) (err,host,cert ? cert_subj : "???") ? NIL : "";
-+ /* error message to return via mm_log() */
-+ sprintf (tmp,"*%.128s: %.255s",err,cert ? cert_subj : "???");
- return ssl_last_error = cpystr (tmp);
- }
- return NIL;
-@@ -313,7 +318,7 @@
- * Returns: NIL if validated, else string of error message
- */
-
--static char *ssl_validate_cert (X509 *cert,char *host)
-+static char *ssl_validate_cert (X509 *cert,char *host, char *cert_subj)
- {
- int i,n;
- char *s,*t,*ret;
-@@ -322,9 +327,9 @@
- /* make sure have a certificate */
- if (!cert) ret = "No certificate from server";
- /* and that it has a name */
-- else if (!cert->name) ret = "No name in certificate";
-+ else if (cert_subj[0] == '\0') ret = "No name in certificate";
- /* locate CN */
-- else if (s = strstr (cert->name,"/CN=")) {
-+ else if (s = strstr (cert_subj,"/CN=")) {
- if (t = strchr (s += 4,'/')) *t = '\0';
- /* host name matches pattern? */
- ret = ssl_compare_hostnames (host,s) ? NIL :
next reply other threads:[~2025-01-04 22:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-04 22:47 Conrad Kostecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-01-15 9:50 [gentoo-commits] repo/gentoo:master commit in: net-libs/c-client/files/ David Seifert
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=1736030828.f159c9eb1c0f0d76068b0cb98fce620fcecfd992.conikost@gentoo \
--to=conikost@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