svn commit: r550261 - in head/misc/librepo: . files
Yuri Victorovich
yuri at FreeBSD.org
Sun Sep 27 10:39:07 UTC 2020
Author: yuri
Date: Sun Sep 27 10:39:06 2020
New Revision: 550261
URL: https://svnweb.freebsd.org/changeset/ports/550261
Log:
misc/librepo: Fix SEGV by patching sources to make 2 functions be properly declared and called.
Added:
head/misc/librepo/files/patch-librepo_yum.c (contents, props changed)
Modified:
head/misc/librepo/Makefile
head/misc/librepo/files/patch-librepo_downloader.c
Modified: head/misc/librepo/Makefile
==============================================================================
--- head/misc/librepo/Makefile Sun Sep 27 10:34:41 2020 (r550260)
+++ head/misc/librepo/Makefile Sun Sep 27 10:39:06 2020 (r550261)
@@ -2,7 +2,7 @@
PORTNAME= librepo
DISTVERSION= 1.12.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc
MAINTAINER= yuri at FreeBSD.org
Modified: head/misc/librepo/files/patch-librepo_downloader.c
==============================================================================
--- head/misc/librepo/files/patch-librepo_downloader.c Sun Sep 27 10:34:41 2020 (r550260)
+++ head/misc/librepo/files/patch-librepo_downloader.c Sun Sep 27 10:39:06 2020 (r550261)
@@ -1,13 +1,18 @@
+https://github.com/rpm-software-management/librepo/issues/200
+
--- librepo/downloader.c.orig 2020-08-22 20:15:59 UTC
+++ librepo/downloader.c
@@ -18,9 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+-#define _XOPEN_SOURCE 500 // Because of fdopen() and ftruncate()
+-#define _DEFAULT_SOURCE // Because of futimes()
+-#define _BSD_SOURCE // Because of futimes()
+#if __FreeBSD__
- #define _XOPEN_SOURCE 500 // Because of fdopen() and ftruncate()
- #define _DEFAULT_SOURCE // Because of futimes()
- #define _BSD_SOURCE // Because of futimes()
++//#define _XOPEN_SOURCE 500 // Because of fdopen() and ftruncate()
++//#define _DEFAULT_SOURCE // Because of futimes()
++//#define _BSD_SOURCE // Because of futimes()
+#endif
#include <glib.h>
Added: head/misc/librepo/files/patch-librepo_yum.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/librepo/files/patch-librepo_yum.c Sun Sep 27 10:39:06 2020 (r550261)
@@ -0,0 +1,15 @@
+Otherwise realpath(3) declaration isn't found: https://github.com/rpm-software-management/librepo/issues/202
+
+--- librepo/yum.c.orig 2020-09-27 10:18:54 UTC
++++ librepo/yum.c
+@@ -18,8 +18,8 @@
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+-#define _POSIX_SOURCE
+-#define _DEFAULT_SOURCE
++//#define _POSIX_SOURCE
++//#define _DEFAULT_SOURCE
+ #define BITS_IN_BYTE 8
+
+ #include <stdio.h>
More information about the svn-ports-all
mailing list