public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mediawriter] epel10: Fix build on rawhide due to symbol collision
Date: Tue, 29 Sep 2026 15:27:45 GMT	[thread overview]
Message-ID: <179069566519.1.2659289944238841463.rpms-mediawriter-2aeddd3a3ebe@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mediawriter
Branch : epel10
Commit : 2aeddd3a3ebeee3dba2eb2128b24a2efab10a2bc
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2021-01-26T11:13:47+01:00
Stats  : +142/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mediawriter/c/2aeddd3a3ebeee3dba2eb2128b24a2efab10a2bc?branch=epel10

Log:
Fix build on rawhide due to symbol collision

---
diff --git a/mediawriter-md5.patch b/mediawriter-md5.patch
new file mode 100644
index 0000000..d5344db
--- /dev/null
+++ b/mediawriter-md5.patch
@@ -0,0 +1,140 @@
+diff --git a/lib/isomd5/libcheckisomd5.c b/lib/isomd5/libcheckisomd5.c
+index 1edb0d7..8e66186 100644
+--- a/lib/isomd5/libcheckisomd5.c
++++ b/lib/isomd5/libcheckisomd5.c
+@@ -226,7 +226,7 @@ static int checkmd5sum(int isofd, char *mediasum, char *computedsum, checkCallba
+     /* rewind, compute md5sum */
+     lseek64(isofd, 0LL, SEEK_SET);
+ 
+-    MD5_Init(&md5ctx);
++    ISOMD5_Init(&md5ctx);
+ 
+     offset = 0;
+     apoff = pvd_offset + APPDATA_OFFSET;
+@@ -267,13 +267,13 @@ static int checkmd5sum(int isofd, char *mediasum, char *computedsum, checkCallba
+             memset(buf+appdata_start_offset, ' ', len);
+         }
+ 
+-        MD5_Update(&md5ctx, buf, nread);
++        ISOMD5_Update(&md5ctx, buf, nread);
+         if (fragmentcount) {
+             current_fragment = offset * (fragmentcount+1) / (isosize - skipsectors*2048);
+             /* if we're onto the next fragment, calculate the previous sum and check */
+             if ( current_fragment != previous_fragment ) {
+                 memcpy(&fragmd5ctx, &md5ctx, sizeof(MD5_CTX));
+-                MD5_Final(fragmd5sum, &fragmd5ctx);
++                ISOMD5_Final(fragmd5sum, &fragmd5ctx);
+                 *computedsum = '\0';
+                 j = (current_fragment-1)*FRAGMENT_SUM_LENGTH/fragmentcount;
+                 for (i=0; i<FRAGMENT_SUM_LENGTH/fragmentcount; i++) {
+@@ -305,7 +305,7 @@ static int checkmd5sum(int isofd, char *mediasum, char *computedsum, checkCallba
+ 
+     free(buf_unaligned);
+ 
+-    MD5_Final(md5sum, &md5ctx);
++    ISOMD5_Final(md5sum, &md5ctx);
+ 
+     *computedsum = '\0';
+     for (i=0; i<16; i++) {
+diff --git a/lib/isomd5/md5.c b/lib/isomd5/md5.c
+index 4fba281..40aad1a 100644
+--- a/lib/isomd5/md5.c
++++ b/lib/isomd5/md5.c
+@@ -24,7 +24,7 @@
+ #include <string.h>
+ #include "md5.h"
+ 
+-void MD5_Transform(uint32 *buf, uint32 const *in);
++void ISOMD5_Transform(uint32 *buf, uint32 const *in);
+ 
+ volatile union {
+     uint32_t i;
+@@ -56,7 +56,7 @@ static void byteReverse(unsigned char *buf, unsigned longs)
+  * Start MD5 accumulation.  Set bit count to 0 and buffer to mysterious
+  * initialization constants.
+  */
+-void MD5_Init(struct MD5Context *ctx)
++void ISOMD5_Init(struct MD5Context *ctx)
+ {
+         ctx->buf[0] = 0x67452301U;
+         ctx->buf[1] = 0xefcdab89U;
+@@ -77,7 +77,7 @@ void MD5_Init(struct MD5Context *ctx)
+  * Update context to reflect the concatenation of another buffer full
+  * of bytes.
+  */
+-void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
++void ISOMD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
+ {
+         uint32 t;
+ 
+@@ -102,7 +102,7 @@ void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
+                 }
+                 memcpy(p, buf, t);
+                 if (ctx->doByteReverse) byteReverse(ctx->in, 16);
+-                MD5_Transform(ctx->buf, (uint32 *) ctx->in);
++                ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
+                 buf += t;
+                 len -= t;
+         }
+@@ -111,7 +111,7 @@ void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
+         while (len >= 64) {
+                 memcpy(ctx->in, buf, 64);
+                 if (ctx->doByteReverse) byteReverse(ctx->in, 16);
+-                MD5_Transform(ctx->buf, (uint32 *) ctx->in);
++                ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
+                 buf += 64;
+                 len -= 64;
+         }
+@@ -125,7 +125,7 @@ void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
+  * Final wrapup - pad to 64-byte boundary with the bit pattern 
+  * 1 0* (64-bit count of bits processed, MSB-first)
+  */
+-void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
++void ISOMD5_Final(unsigned char digest[16], struct MD5Context *ctx)
+ {
+         unsigned count;
+         unsigned char *p;
+@@ -146,7 +146,7 @@ void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
+                 /* Two lots of padding:  Pad the first block to 64 bytes */
+                 memset(p, 0, count);
+                 if (ctx->doByteReverse) byteReverse(ctx->in, 16);
+-                MD5_Transform(ctx->buf, (uint32 *) ctx->in);
++                ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
+ 
+                 /* Now fill the next block with 56 bytes */
+                 memset(ctx->in, 0, 56);
+@@ -159,7 +159,7 @@ void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
+         /* Append length in bits and transform */
+         memcpy(ctx->in+56, ctx->bits, sizeof(ctx->bits));
+ 
+-        MD5_Transform(ctx->buf, (uint32 *) ctx->in);
++        ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
+         if (ctx->doByteReverse) byteReverse((unsigned char *) ctx->buf, 4);
+         memcpy(digest, ctx->buf, 16);
+         memset(ctx, 0, sizeof(*ctx));    /* In case it's sensitive */
+@@ -184,7 +184,7 @@ void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
+  * reflect the addition of 16 longwords of new data.  ISOMD5_Update blocks
+  * the data and converts bytes into longwords for this routine.
+  */
+-void MD5_Transform(uint32 buf[4], uint32 const in[16])
++void ISOMD5_Transform(uint32 buf[4], uint32 const in[16])
+ {
+         register uint32 a, b, c, d;
+ 
+diff --git a/lib/isomd5/md5.h b/lib/isomd5/md5.h
+index 64161e8..73b65af 100644
+--- a/lib/isomd5/md5.h
++++ b/lib/isomd5/md5.h
+@@ -15,9 +15,9 @@ struct MD5Context {
+ 	int doByteReverse;
+ };
+ 
+-void MD5_Init(struct MD5Context *);
+-void MD5_Update(struct MD5Context *, unsigned const char *, unsigned);
+-void MD5_Final(unsigned char digest[16], struct MD5Context *);
++void ISOMD5_Init(struct MD5Context *);
++void ISOMD5_Update(struct MD5Context *, unsigned const char *, unsigned);
++void ISOMD5_Final(unsigned char digest[16], struct MD5Context *);
+ 
+ /*
+  * This is needed to make RSAREF happy on some MS-DOS compilers.

diff --git a/mediawriter.spec b/mediawriter.spec
index c370493..34e8b72 100644
--- a/mediawriter.spec
+++ b/mediawriter.spec
@@ -7,6 +7,8 @@ License:        GPLv2+
 URL:            https://github.com/FedoraQt/MediaWriter
 Source0:        https://github.com/FedoraQt/MediaWriter/archive/MediaWriter-%{version}.tar.gz
 
+Patch0:         mediawriter-md5.patch
+
 Provides:       liveusb-creator = %{version}-%{release}
 Obsoletes:      liveusb-creator <= 3.95.4-2
 

                 reply	other threads:[~2026-09-29 15:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179069566519.1.2659289944238841463.rpms-mediawriter-2aeddd3a3ebe@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.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