* [Buildroot] [PATCH 1/1] package/beecrypt: fix build with gcc 14
@ 2024-06-15 20:42 Fabrice Fontaine
2024-06-16 8:57 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-06-15 20:42 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following build failure with gcc 14:
blockmode.c: In function 'blockEncryptCTR':
blockmode.c:162:42: error: implicit declaration of function 'swapu32' [-Wimplicit-function-declaration]
162 | buf[i] = swapu32(fdback[j]);
| ^~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/651e0e31305b1f211071d94ea74f7b7a5793b03e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/beecrypt/0004-beecrypt-4.2.1-c99.patch | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 package/beecrypt/0004-beecrypt-4.2.1-c99.patch
diff --git a/package/beecrypt/0004-beecrypt-4.2.1-c99.patch b/package/beecrypt/0004-beecrypt-4.2.1-c99.patch
new file mode 100644
index 0000000000..489ce437f6
--- /dev/null
+++ b/package/beecrypt/0004-beecrypt-4.2.1-c99.patch
@@ -0,0 +1,17 @@
+Add missing header to fix C99 conformance in blockmode.c
+
+Upstream: https://sourceforge.net/p/beecrypt/patches/13
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+
+diff --git a/blockmode.c b/blockmode.c
+index 46d1fde..9998c23 100644
+--- a/blockmode.c
++++ b/blockmode.c
+@@ -29,6 +29,7 @@
+ # include "config.h"
+ #endif
+
++#include "beecrypt/endianness.h"
+ #include "beecrypt/blockmode.h"
+
+ int blockEncryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks)
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/beecrypt: fix build with gcc 14
2024-06-15 20:42 [Buildroot] [PATCH 1/1] package/beecrypt: fix build with gcc 14 Fabrice Fontaine
@ 2024-06-16 8:57 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2024-06-16 8:57 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
Fabrice, All,
On 2024-06-15 22:42 +0200, Fabrice Fontaine spake thusly:
> Fix the following build failure with gcc 14:
>
> blockmode.c: In function 'blockEncryptCTR':
> blockmode.c:162:42: error: implicit declaration of function 'swapu32' [-Wimplicit-function-declaration]
> 162 | buf[i] = swapu32(fdback[j]);
> | ^~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/651e0e31305b1f211071d94ea74f7b7a5793b03e
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/beecrypt/0004-beecrypt-4.2.1-c99.patch | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
> create mode 100644 package/beecrypt/0004-beecrypt-4.2.1-c99.patch
>
> diff --git a/package/beecrypt/0004-beecrypt-4.2.1-c99.patch b/package/beecrypt/0004-beecrypt-4.2.1-c99.patch
> new file mode 100644
> index 0000000000..489ce437f6
> --- /dev/null
> +++ b/package/beecrypt/0004-beecrypt-4.2.1-c99.patch
> @@ -0,0 +1,17 @@
> +Add missing header to fix C99 conformance in blockmode.c
> +
> +Upstream: https://sourceforge.net/p/beecrypt/patches/13
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Thanks for this effort.
However, beecrypt 4.2.1 was the last version to be released, in
2015-07-12, almost nine years ago now. After that, there has been
no development activity on that package.
I looked on Github and Gtilab in case there was something there that
would vaguely resemble a new maintenance effort, but there is
virtually nothing of interest there.
Using a cryptography library that has had no release in almost 9
years is not a good idea, to say the least.
beecrypt only installs a library, and nothing in the tree depends
on it.
I suggest we just drop that package instead.
Regards,
Yann E. MORIN.
> +diff --git a/blockmode.c b/blockmode.c
> +index 46d1fde..9998c23 100644
> +--- a/blockmode.c
> ++++ b/blockmode.c
> +@@ -29,6 +29,7 @@
> + # include "config.h"
> + #endif
> +
> ++#include "beecrypt/endianness.h"
> + #include "beecrypt/blockmode.h"
> +
> + int blockEncryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks)
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-16 8:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-15 20:42 [Buildroot] [PATCH 1/1] package/beecrypt: fix build with gcc 14 Fabrice Fontaine
2024-06-16 8:57 ` Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.