View Issue Details

IDProjectCategoryView StatusLast Update
0011613Talerotherpublic2026-07-07 14:43
Reporteradridg Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0011613: gnunet: patches for FreeBSD
Description(I realize this is probably not the right BT for gnunet -- even though it's under that domain)

I just packaged gnunet (as a dependency of Taler) for FreeBSD. Aside from directly-packaging related things. such as library-directories and include-directories needing some help, there were only two code-related changes.
Additional InformationPatches:

```
--- src/include/platform.h.orig 2026-07-07 11:14:06 UTC
+++ src/include/platform.h
@@ -183,8 +183,12 @@
 
 /* FreeBSD_kernel is not defined on the now discontinued kFreeBSD */
 #if defined(BSD) && defined(__FreeBSD__) && defined(__FreeBSD_kernel__)
+#ifndef __BYTE_ORDER
 #define __BYTE_ORDER BYTE_ORDER
+#endif
+#ifndef __BIG_ENDIAN
 #define __BIG_ENDIAN BIG_ENDIAN
+#endif
 #endif
 
 #ifdef DARWIN
--- src/lib/util/disk.c.orig 2026-07-07 11:15:07 UTC
+++ src/lib/util/disk.c
@@ -380,7 +380,7 @@ GNUNET_DISK_file_backup (const char *fil)
   target = GNUNET_malloc (slen);
   num = 0;
 
-#if HAVE_RENAMEAT2
+#if HAVE_RENAMEAT2 && defined(RENAME_EXCHANGE)
   {
     int fd;
 
```

The first because those defines are already-defined on FreeBSD (apparently not on kFreeBSD) and they cause warnings about redefined-macros, and the second because FreeBSD has a `renameat2()`, but not all the flags that Linux does.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-07-07 14:43 adridg New Issue