Index: head/misc/librepo/Makefile =================================================================== --- head/misc/librepo/Makefile (revision 550260) +++ head/misc/librepo/Makefile (revision 550261) @@ -1,44 +1,44 @@ # $FreeBSD$ PORTNAME= librepo DISTVERSION= 1.12.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MAINTAINER= yuri@FreeBSD.org COMMENT= Library downloading repository metadata LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libassuan.so:security/libassuan \ libcurl.so:ftp/curl \ libgpg-error.so:security/libgpg-error \ libgpgme.so:security/gpgme USES= gettext-runtime gnome cmake localbase:ldflags pkgconfig USE_GNOME= glib20 libxml2 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= rpm-software-management CMAKE_OFF= ENABLE_DOCS ENABLE_TESTS OPTIONS_DEFINE= PYTHON ZCHUNK OPTIONS_DEFAULT= ZCHUNK OPTIONS_SUB= yes PYTHON_USES= python PYTHON_CMAKE_BOOL= ENABLE_PYTHON PYTHON_CMAKE_ON= -DPYTHON_DESIRED=${PYTHON_MAJOR_VER} ZCHUNK_DESC= Build with zchunk support ZCHUNK_CMAKE_BOOL= WITH_ZCHUNK ZCHUNK_LIB_DEPENDS= libzck.so:archivers/zchunk post-patch: @${RLN} ${FILESDIR}/xattr.c ${WRKSRC}/librepo/xattr.c @${RLN} ${FILESDIR}/xattr.h ${WRKSRC}/librepo/xattr.h .include Index: head/misc/librepo/files/patch-librepo_downloader.c =================================================================== --- head/misc/librepo/files/patch-librepo_downloader.c (revision 550260) +++ head/misc/librepo/files/patch-librepo_downloader.c (revision 550261) @@ -1,23 +1,28 @@ +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 #include @@ -31,7 +33,7 @@ #include #include #include -#include +#include "xattr.h" #include #include Index: head/misc/librepo/files/patch-librepo_yum.c =================================================================== --- head/misc/librepo/files/patch-librepo_yum.c (nonexistent) +++ head/misc/librepo/files/patch-librepo_yum.c (revision 550261) @@ -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 Property changes on: head/misc/librepo/files/patch-librepo_yum.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property