pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/rpm



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Apr 23 08:18:15 UTC 2017

Modified Files:
        pkgsrc/misc/rpm: Makefile PLIST buildlink3.mk distinfo
        pkgsrc/misc/rpm/patches: patch-configure.ac patch-lib_backend_db3.c
            patch-lib_header.c patch-lib_rpmrc.c patch-misc_fnmatch.c
            patch-misc_fts.c
Added Files:
        pkgsrc/misc/rpm/patches: patch-installplatform
Removed Files:
        pkgsrc/misc/rpm: PLIST.Linux PLIST.NetBSD PLIST.SunOS
        pkgsrc/misc/rpm/patches: patch-lib_cpio.c patch-misc_fts.h

Log Message:
RPM 4.13.0.1

Security fixes
* Fix several out of bounds reads in the OpenPGP parser
* Fix handling of OpenPGP reserved tag (should be rejected)
* Fix various crashes from malformed packages with invalid tags

General bugfixes
* Fix %transfiletriggerpostun nondeterministic behavior
* Fix rpmdb cleanup on signal (regression introduced in 4.13.0)

Package building
* Fix debuginfo GDB index generation (regression introduced in 4.13.0)
* Fix malformed packages being generated around 4GB size boundary (regression introduced in 4.12.0)
* Fix special %doc/%license directory inheriting default file permissions (regression introduced in 4.13.0)

Build process
* Fix API documentation generation with Doxygen >= 1.8.8


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 pkgsrc/misc/rpm/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/misc/rpm/PLIST
cvs rdiff -u -r1.1 -r0 pkgsrc/misc/rpm/PLIST.Linux
cvs rdiff -u -r1.2 -r0 pkgsrc/misc/rpm/PLIST.NetBSD
cvs rdiff -u -r1.3 -r0 pkgsrc/misc/rpm/PLIST.SunOS
cvs rdiff -u -r1.12 -r1.13 pkgsrc/misc/rpm/buildlink3.mk
cvs rdiff -u -r1.16 -r1.17 pkgsrc/misc/rpm/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/misc/rpm/patches/patch-configure.ac
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/rpm/patches/patch-installplatform
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/rpm/patches/patch-lib_backend_db3.c \
    pkgsrc/misc/rpm/patches/patch-lib_header.c \
    pkgsrc/misc/rpm/patches/patch-misc_fnmatch.c \
    pkgsrc/misc/rpm/patches/patch-misc_fts.c
cvs rdiff -u -r1.1 -r0 pkgsrc/misc/rpm/patches/patch-lib_cpio.c \
    pkgsrc/misc/rpm/patches/patch-misc_fts.h
cvs rdiff -u -r1.1 -r1.2 pkgsrc/misc/rpm/patches/patch-lib_rpmrc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/rpm/Makefile
diff -u pkgsrc/misc/rpm/Makefile:1.91 pkgsrc/misc/rpm/Makefile:1.92
--- pkgsrc/misc/rpm/Makefile:1.91       Sun Sep 18 17:02:12 2016
+++ pkgsrc/misc/rpm/Makefile    Sun Apr 23 08:18:14 2017
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.91 2016/09/18 17:02:12 wiedi Exp $
+# $NetBSD: Makefile,v 1.92 2017/04/23 08:18:14 adam Exp $
 
-DISTNAME=      rpm-4.12.0.1
-PKGREVISION=   4
+DISTNAME=      rpm-4.13.0.1
 CATEGORIES=    misc
-MASTER_SITES=  http://rpm.org/releases/rpm-4.12.x/
+MASTER_SITES=  http://ftp.rpm.org/releases/rpm-4.13.x/
 EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -15,26 +14,38 @@ CONFLICTS+=         rpm2cpio<1.0nb1
 
 NOT_FOR_PLATFORM+=     Interix-*-* # getmntent() is nonpublic; needs porting
 
-MAKE_JOBS_SAFE=                no
-
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            automake bash:run gmake msgfmt perl:run pkg-config
+USE_TOOLS+=            autoconf bash:run gmake msgfmt perl:run pkg-config
 GNU_CONFIGURE=         yes
-
-GMAKE_REQD+=           3.82nb1
-GMAKE=                 ${TOOLS_GMAKE}
-
-REPLACE_BASH+=         scripts/*
-REPLACE_PERL+=         scripts/*
-
-# To avoid build directory references.
-CONFIGURE_ENV+=                MYPATH=/sbin:/bin:/usr/sbin:/usr/bin
-
 # this is needed in addition of USE_PKGLOCALEDIR
 CONFIGURE_ARGS+=       --datadir=${PREFIX}/${PKGLOCALEDIR}
-CONFIGURE_ARGS+=       --without-lua
 CONFIGURE_ARGS+=       --with-external-db
+CONFIGURE_ARGS+=       --with-vendor=pkgsrc
+CONFIGURE_ARGS+=       --without-lua
+# avoid build directory references
+CONFIGURE_ENV+=                MYPATH=/sbin:/bin:/usr/sbin:/usr/bin
+# rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm.
+CONFIGURE_ENV+=                varprefix=${RPM_DB_PREFIX:Q}
+CONFIGURE_ENV.Darwin+= ac_cv_func_fdatasync=no
+
+PKGCONFIG_OVERRIDE=    rpm.pc.in
+
+GMAKE_REQD=            3.82nb1
+
+REPLACE_BASH+=         installplatform
+REPLACE_BASH+=         scripts/brp-python-bytecompile
+REPLACE_BASH+=         scripts/check-prereqs
+REPLACE_BASH+=         scripts/check-rpaths-worker
+REPLACE_BASH+=         scripts/find-debuginfo.sh
+REPLACE_BASH+=         scripts/fontconfig.prov
+REPLACE_BASH+=         scripts/mono-find-provides
+REPLACE_BASH+=         scripts/mono-find-requires
+REPLACE_BASH+=         scripts/pkgconfigdeps.sh
+REPLACE_BASH+=         scripts/pythondeps.sh
+REPLACE_BASH+=         scripts/rpmdb_loadcvt
+REPLACE_PERL+=         scripts/perl.prov
+REPLACE_PERL+=         scripts/perl.req
 
 BDB_ACCEPTED=          db4 db5
 .include "../../mk/bdb.buildlink3.mk"
@@ -43,8 +54,6 @@ BUILDLINK_TRANSFORM+= l:db:db4
 .else
 BUILDLINK_TRANSFORM+=  l:db:db5
 .endif
-# The rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm.
-CONFIGURE_ENV+=                varprefix=${RPM_DB_PREFIX:Q}
 
 LDFLAGS+=              ${PTHREAD_LDFLAGS}
 
@@ -52,25 +61,36 @@ MAKE_FLAGS+=                MANDIR=${PREFIX}/${PKGMAND
 MAKE_FLAGS+=           ROOT=${DESTDIR}
 
 RPMDIR=                        ${RPM_DB_PREFIX}/lib/rpm
-FILES_SUBST+=          RPMDIR=${RPMDIR:Q}
+FILES_SUBST+=          RPMDIR=${RPMDIR}
 
 # The configure script doesn't detect whether libintl.so has any
 # library dependencies.
-#
 BROKEN_GETTEXT_DETECTION=      yes
 
-BUILDLINK_TRANSFORM.SunOS+=    rm:-fstack-protector
-CFLAGS.SunOS+=                 -fno-stack-protector
-
-pre-configure:
-       set -e; cd ${WRKSRC}; \
-       aclocal; autoheader; automake -a --foreign -i; autoconf
+CHECK_PORTABILITY_SKIP=        tests/rpmtests
 
 SUBST_CLASSES+=                mkd
 SUBST_STAGE.mkd=       post-build
-SUBST_MESSAGE.mkd=     Fixing workdir tools references in macros file
+SUBST_MESSAGE.mkd=     Fixing workdir tools references in macros file.
 SUBST_FILES.mkd=       macros
-SUBST_SED.mkd+=                -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},'
+SUBST_SED.mkd=         -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},'
+
+# __progname without 'extern' segfaults on some platforms (e.g. Darwin)
+SUBST_CLASSES+=                progname
+SUBST_STAGE.progname=  pre-configure
+SUBST_MESSAGE.progname=        Fixing __progname declarations to include 'extern'.
+SUBST_FILES.progname=  lib/poptALL.c
+SUBST_FILES.progname+= rpm2archive.c
+SUBST_FILES.progname+= rpm2cpio.c
+SUBST_FILES.progname+= rpmbuild.c
+SUBST_FILES.progname+= rpmqv.c
+SUBST_FILES.progname+= rpmspec.c
+SUBST_FILES.progname+= tools/rpmdeps.c
+SUBST_FILES.progname+= tools/rpmgraph.c
+SUBST_SED.progname=    -e 's,^const char \*__progname;,extern &,'
+
+pre-configure:
+       cd ${WRKSRC} && autoconf
 
 .include "../../archivers/libarchive/buildlink3.mk"
 .include "../../converters/libiconv/buildlink3.mk"
@@ -81,5 +101,4 @@ SUBST_SED.mkd+=              -e 's,${TOOLS_CMD.mkdir
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../sysutils/file/buildlink3.mk" # for libmagic.
-
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/misc/rpm/PLIST
diff -u pkgsrc/misc/rpm/PLIST:1.10 pkgsrc/misc/rpm/PLIST:1.11
--- pkgsrc/misc/rpm/PLIST:1.10  Sun Mar 15 05:34:56 2015
+++ pkgsrc/misc/rpm/PLIST       Sun Apr 23 08:18:14 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2015/03/15 05:34:56 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.11 2017/04/23 08:18:14 adam Exp $
 bin/gendiff
 bin/rpm
 bin/rpm2archive
@@ -53,6 +53,7 @@ lib/librpmbuild.la
 lib/librpmio.la
 lib/librpmsign.la
 lib/pkgconfig/rpm.pc
+lib/rpm-plugins/ima.la
 lib/rpm-plugins/syslog.la
 lib/rpm/appdata.prov
 lib/rpm/brp-compress
@@ -97,11 +98,72 @@ lib/rpm/mono-find-provides
 lib/rpm/mono-find-requires
 lib/rpm/ocaml-find-provides.sh
 lib/rpm/ocaml-find-requires.sh
-lib/rpm/osgideps.pl
 lib/rpm/perl.prov
 lib/rpm/perl.req
-lib/rpm/perldeps.pl
 lib/rpm/pkgconfigdeps.sh
+lib/rpm/platform/aarch64/macros
+lib/rpm/platform/alpha/macros
+lib/rpm/platform/alphaev5/macros
+lib/rpm/platform/alphaev56/macros
+lib/rpm/platform/alphaev6/macros
+lib/rpm/platform/alphaev67/macros
+lib/rpm/platform/alphapca56/macros
+lib/rpm/platform/amd64/macros
+lib/rpm/platform/armv3l/macros
+lib/rpm/platform/armv4b/macros
+lib/rpm/platform/armv4l/macros
+lib/rpm/platform/armv5tejl/macros
+lib/rpm/platform/armv5tel/macros
+lib/rpm/platform/armv6hl/macros
+lib/rpm/platform/armv6l/macros
+lib/rpm/platform/armv7hl/macros
+lib/rpm/platform/armv7hnl/macros
+lib/rpm/platform/armv7l/macros
+lib/rpm/platform/athlon/macros
+lib/rpm/platform/geode/macros
+lib/rpm/platform/i386/macros
+lib/rpm/platform/i486/macros
+lib/rpm/platform/i586/macros
+lib/rpm/platform/i686/macros
+lib/rpm/platform/ia32e/macros
+lib/rpm/platform/ia64/macros
+lib/rpm/platform/m68k/macros
+lib/rpm/platform/mips/macros
+lib/rpm/platform/mips64/macros
+lib/rpm/platform/mips64el/macros
+lib/rpm/platform/mips64r6/macros
+lib/rpm/platform/mips64r6el/macros
+lib/rpm/platform/mipsel/macros
+lib/rpm/platform/mipsr6/macros
+lib/rpm/platform/mipsr6el/macros
+lib/rpm/platform/noarch/macros
+lib/rpm/platform/pentium3/macros
+lib/rpm/platform/pentium4/macros
+lib/rpm/platform/ppc/macros
+lib/rpm/platform/ppc32dy4/macros
+lib/rpm/platform/ppc64/macros
+lib/rpm/platform/ppc64iseries/macros
+lib/rpm/platform/ppc64le/macros
+lib/rpm/platform/ppc64p7/macros
+lib/rpm/platform/ppc64pseries/macros
+lib/rpm/platform/ppc8260/macros
+lib/rpm/platform/ppc8560/macros
+lib/rpm/platform/ppciseries/macros
+lib/rpm/platform/ppcpseries/macros
+lib/rpm/platform/riscv64/macros
+lib/rpm/platform/s390/macros
+lib/rpm/platform/s390x/macros
+lib/rpm/platform/sh/macros
+lib/rpm/platform/sh3/macros
+lib/rpm/platform/sh4/macros
+lib/rpm/platform/sh4a/macros
+lib/rpm/platform/sparc/macros
+lib/rpm/platform/sparc64/macros
+lib/rpm/platform/sparc64v/macros
+lib/rpm/platform/sparcv8/macros
+lib/rpm/platform/sparcv9/macros
+lib/rpm/platform/sparcv9v/macros
+lib/rpm/platform/x86_64/macros
 lib/rpm/pythondeps.sh
 lib/rpm/rpm.daily
 lib/rpm/rpm.log
@@ -112,7 +174,6 @@ lib/rpm/rpmdeps
 lib/rpm/rpmpopt-${PKGVERSION}
 lib/rpm/rpmrc
 lib/rpm/script.req
-lib/rpm/tcl.req
 lib/rpm/tgpg
 man/fr/man8/rpm.8
 man/ja/man8/rpm.8

Index: pkgsrc/misc/rpm/buildlink3.mk
diff -u pkgsrc/misc/rpm/buildlink3.mk:1.12 pkgsrc/misc/rpm/buildlink3.mk:1.13
--- pkgsrc/misc/rpm/buildlink3.mk:1.12  Mon May  7 01:53:48 2012
+++ pkgsrc/misc/rpm/buildlink3.mk       Sun Apr 23 08:18:14 2017
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2012/05/07 01:53:48 dholland Exp $
+# $NetBSD: buildlink3.mk,v 1.13 2017/04/23 08:18:14 adam Exp $
 
 BUILDLINK_TREE+=       rpm
 
@@ -10,7 +10,7 @@ BUILDLINK_ABI_DEPENDS.rpm+=   rpm>=2.5.4nb
 BUILDLINK_PKGSRCDIR.rpm?=      ../../misc/rpm
 BUILDLINK_DEPMETHOD.rpm?=      build
 
-BUILDLINK_CPPFLAGS.rpm= -I${BUILDLINK_PREFIX.rpm}/include/rpm
+BUILDLINK_CPPFLAGS.rpm+=       -I${BUILDLINK_PREFIX.rpm}/include/rpm
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"

Index: pkgsrc/misc/rpm/distinfo
diff -u pkgsrc/misc/rpm/distinfo:1.16 pkgsrc/misc/rpm/distinfo:1.17
--- pkgsrc/misc/rpm/distinfo:1.16       Tue Nov  3 23:49:49 2015
+++ pkgsrc/misc/rpm/distinfo    Sun Apr 23 08:18:14 2017
@@ -1,17 +1,16 @@
-$NetBSD: distinfo,v 1.16 2015/11/03 23:49:49 agc Exp $
+$NetBSD: distinfo,v 1.17 2017/04/23 08:18:14 adam Exp $
 
-SHA1 (rpm-4.12.0.1.tar.bz2) = d416bdb249b246b00b2d5d34c66e7f5a68a62524
-RMD160 (rpm-4.12.0.1.tar.bz2) = c57a676d467d0984b13bdca7df803e26609055fd
-SHA512 (rpm-4.12.0.1.tar.bz2) = ae751b04cec2463f1f259aec4b4750fca1e4cef6144b7e612d0c94f7b6a2864ed119547568f6acebb7fefddb7b040b6021c1f32cf465963db0b627f524c5760f
-Size (rpm-4.12.0.1.tar.bz2) = 4129093 bytes
+SHA1 (rpm-4.13.0.1.tar.bz2) = 9566f95f38fcb214e439c552f378c2f64ba0aff9
+RMD160 (rpm-4.13.0.1.tar.bz2) = 9a9b47b89ddb00b22a46ec3530c39dcc7ee1f85d
+SHA512 (rpm-4.13.0.1.tar.bz2) = b7475dd0803e06a5dd6a95d0bf8add6ff0d8f0620dd389c4d87a85becb0eb4637aa4ff8c48e18d4844ff6feefa25d642d9f876cd210006cb2144006d34a91b91
+Size (rpm-4.13.0.1.tar.bz2) = 4305261 bytes
 SHA1 (patch-build_rpmfc.c) = 10e3196d7d2dcc17f7c2be0acbea01f00354eee3
-SHA1 (patch-configure.ac) = c6301dce864ad1ade8bc21c2d00f2c9754594b2d
-SHA1 (patch-lib_backend_db3.c) = 241c9193723253bbe037e61c54992f66aa825136
-SHA1 (patch-lib_cpio.c) = e5f0a60e33832175ab393562be89aba998513ae8
-SHA1 (patch-lib_header.c) = 091dc42741fd5f34edcf9b90f1e9d76087be56b4
-SHA1 (patch-lib_rpmrc.c) = cf9e1349d84dea4f60b7db574e31e14799d4e75c
-SHA1 (patch-misc_fnmatch.c) = d4a8d81fe4a0cb97946e4037c5d8a4299a4411a7
-SHA1 (patch-misc_fts.c) = c0555292deb60c1bd661f082ca7318d6623541bc
-SHA1 (patch-misc_fts.h) = ec4ee0ea18f5d210eb32d9f22c90e43d2ede0c53
+SHA1 (patch-configure.ac) = 40f497407fd0af7ac0a17152b8751a7a02817b88
+SHA1 (patch-installplatform) = f9aed911d6c4695a13cedb63378bcd262b92ba99
+SHA1 (patch-lib_backend_db3.c) = 61c202b330baadaf5f68a22806e08f02a184e01a
+SHA1 (patch-lib_header.c) = e882a7578a844081dce9d534e4d458e89bc0d2f7
+SHA1 (patch-lib_rpmrc.c) = 6e8c26311a596aba2aff142d94823d5b1304750f
+SHA1 (patch-misc_fnmatch.c) = f05137fc4c65986edf7dbcc87c8567ff18bf14eb
+SHA1 (patch-misc_fts.c) = becd8e4cacb126930f7f2c6446855164db6b4537
 SHA1 (patch-rpmio_rpmfileutil.c) = fd1debee2c38e866b8098223bab304a66b76eb23
 SHA1 (patch-system.h) = 215e3cfaafc1573c527b7f430b3807093550c39e

Index: pkgsrc/misc/rpm/patches/patch-configure.ac
diff -u pkgsrc/misc/rpm/patches/patch-configure.ac:1.3 pkgsrc/misc/rpm/patches/patch-configure.ac:1.4
--- pkgsrc/misc/rpm/patches/patch-configure.ac:1.3      Sun Mar 15 05:34:56 2015
+++ pkgsrc/misc/rpm/patches/patch-configure.ac  Sun Apr 23 08:18:15 2017
@@ -1,7 +1,20 @@
-$NetBSD: patch-configure.ac,v 1.3 2015/03/15 05:34:56 ryoon Exp $
+$NetBSD: patch-configure.ac,v 1.4 2017/04/23 08:18:15 adam Exp $
 
---- configure.ac.orig  2014-09-15 07:39:14.000000000 +0000
+Avoid -fstack-protector, it is not portable.
+Redefine MYPATH to avoid build directory references.
+Detect dirfd() and setprogname() functions.
+
+--- configure.ac.orig  2016-11-02 08:42:29.000000000 +0000
 +++ configure.ac
+@@ -37,7 +37,7 @@ fi
+ AS=${AS-as}
+ AC_SUBST(AS)
+ if test "$GCC" = yes; then
+-    cflags_to_try="-fno-strict-aliasing -fstack-protector -Wempty-body"
++    cflags_to_try="-fno-strict-aliasing -Wempty-body"
+     AC_MSG_CHECKING([supported compiler flags])
+     old_cflags=$CFLAGS
+     echo
 @@ -84,7 +84,7 @@ dnl
  if test "$cross_compiling" = "yes"; then
      MYPATH=":"
@@ -11,13 +24,12 @@ $NetBSD: patch-configure.ac,v 1.3 2015/0
  fi
  
  dnl
-@@ -547,6 +547,9 @@ AC_CHECK_FUNCS(fdatasync)
+@@ -547,6 +547,8 @@ AC_CHECK_FUNCS(fdatasync)
  AC_CHECK_FUNCS(lutimes)
  AC_CHECK_FUNCS(mergesort)
  AC_CHECK_FUNCS(getauxval)
 +AC_CHECK_FUNCS(dirfd)
 +AC_CHECK_FUNCS(setprogname)
-+AC_CHECK_FUNCS(htonll)
  
  AC_REPLACE_FUNCS(stpcpy stpncpy)
  

Index: pkgsrc/misc/rpm/patches/patch-lib_backend_db3.c
diff -u pkgsrc/misc/rpm/patches/patch-lib_backend_db3.c:1.2 pkgsrc/misc/rpm/patches/patch-lib_backend_db3.c:1.3
--- pkgsrc/misc/rpm/patches/patch-lib_backend_db3.c:1.2 Sun Mar 15 05:34:56 2015
+++ pkgsrc/misc/rpm/patches/patch-lib_backend_db3.c     Sun Apr 23 08:18:15 2017
@@ -1,6 +1,8 @@
-$NetBSD: patch-lib_backend_db3.c,v 1.2 2015/03/15 05:34:56 ryoon Exp $
+$NetBSD: patch-lib_backend_db3.c,v 1.3 2017/04/23 08:18:15 adam Exp $
 
---- lib/backend/db3.c.orig     2014-06-30 08:47:13.000000000 +0000
+Add missing include.
+
+--- lib/backend/db3.c.orig     2017-02-16 09:40:09.000000000 +0000
 +++ lib/backend/db3.c
 @@ -7,6 +7,7 @@ static int _debug = 1; /* XXX if < 0 deb
  #include "system.h"
@@ -8,5 +10,5 @@ $NetBSD: patch-lib_backend_db3.c,v 1.2 2
  #include <errno.h>
 +#include <signal.h>
  #include <sys/wait.h>
+ #include <popt.h>
  #include <db.h>
- 
Index: pkgsrc/misc/rpm/patches/patch-lib_header.c
diff -u pkgsrc/misc/rpm/patches/patch-lib_header.c:1.2 pkgsrc/misc/rpm/patches/patch-lib_header.c:1.3
--- pkgsrc/misc/rpm/patches/patch-lib_header.c:1.2      Sun Mar 15 05:34:56 2015
+++ pkgsrc/misc/rpm/patches/patch-lib_header.c  Sun Apr 23 08:18:15 2017
@@ -1,4 +1,4 @@
-$NetBSD: patch-lib_header.c,v 1.2 2015/03/15 05:34:56 ryoon Exp $
+$NetBSD: patch-lib_header.c,v 1.3 2017/04/23 08:18:15 adam Exp $
 
 * Detect htonll in configure script.
 
@@ -8,7 +8,7 @@ $NetBSD: patch-lib_header.c,v 1.2 2015/0
  #define       ENTRY_IN_REGION(_e)     ((_e)->info.offset < 0)
  
  /* Convert a 64bit value to network byte order. */
-+#if !defined(HAVE_HTONLL)
++#if !defined(htonll)
  RPM_GNUC_CONST
  static uint64_t htonll(uint64_t n)
  {
Index: pkgsrc/misc/rpm/patches/patch-misc_fnmatch.c
diff -u pkgsrc/misc/rpm/patches/patch-misc_fnmatch.c:1.2 pkgsrc/misc/rpm/patches/patch-misc_fnmatch.c:1.3
--- pkgsrc/misc/rpm/patches/patch-misc_fnmatch.c:1.2    Sun Mar 15 05:34:56 2015
+++ pkgsrc/misc/rpm/patches/patch-misc_fnmatch.c        Sun Apr 23 08:18:15 2017
@@ -1,4 +1,6 @@
-$NetBSD: patch-misc_fnmatch.c,v 1.2 2015/03/15 05:34:56 ryoon Exp $
+$NetBSD: patch-misc_fnmatch.c,v 1.3 2017/04/23 08:18:15 adam Exp $
+
+Add missing include.
 
 --- misc/fnmatch.c.orig        2014-06-30 08:47:14.000000000 +0000
 +++ misc/fnmatch.c
Index: pkgsrc/misc/rpm/patches/patch-misc_fts.c
diff -u pkgsrc/misc/rpm/patches/patch-misc_fts.c:1.2 pkgsrc/misc/rpm/patches/patch-misc_fts.c:1.3
--- pkgsrc/misc/rpm/patches/patch-misc_fts.c:1.2        Fri Sep 20 17:26:14 2013
+++ pkgsrc/misc/rpm/patches/patch-misc_fts.c    Sun Apr 23 08:18:15 2017
@@ -1,28 +1,34 @@
-$NetBSD: patch-misc_fts.c,v 1.2 2013/09/20 17:26:14 ryoon Exp $
+$NetBSD: patch-misc_fts.c,v 1.3 2017/04/23 08:18:15 adam Exp $
 
 * Detect dirfd(3) and setprogname(3) in configure script.
 
---- misc/fts.c.orig    2012-11-18 08:21:06.000000000 +0000
+--- misc/fts.c.orig    2016-11-30 07:03:00.000000000 +0000
 +++ misc/fts.c
-@@ -52,7 +52,9 @@ static char sccsid[] = "@(#)fts.c    8.6 (B
+@@ -32,7 +32,7 @@ static char sccsid[] = "@(#)fts.c    8.6 (B
+ #endif /* LIBC_SCCS and not lint */
+ 
+ /* Conditional to set up proper fstat64 implementation */
+-#if defined(hpux) || defined(sun)
++#if defined(hpux) || defined(sun) || defined(__NetBSD__)
+ #   define FTS_FSTAT64(_fd, _sbp)   fstat((_fd), (_sbp))
+ #else
+ #   define FTS_FSTAT64(_fd, _sbp)   fstat64((_fd), (_sbp))
+@@ -59,11 +59,18 @@ static char sccsid[] = "@(#)fts.c  8.6 (B
  #endif
  #if defined(sun)
  #   define __errno_location() (&errno)
 +# if defined(HAVE_DIRFD)
  #   define dirfd(dirp)                -1
 +# endif
- #   define _STAT_VER          0
- #   define __fxstat64(_stat_ver, _fd, _sbp)   fstat((_fd), (_sbp))
  #endif
-@@ -61,6 +63,11 @@ static char sccsid[] = "@(#)fts.c   8.6 (B
- #   define _STAT_VER          0
- #   define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp))
+ #if defined(__APPLE__)
+ #   define __errno_location() (__error())
  #endif
 +#if defined(__NetBSD__)
-+#   define __errno_location()         (&errno)
-+#   define stat64             stat
-+#   define __fxstat64(_stat_ver, _fd, _sbp)   fstat((_fd), (_sbp))
++#   define __errno_location()  (&errno)
++#   define stat64              stat
++#   define __fxstat64(_stat_ver, _fd, _sbp)    fstat((_fd), (_sbp))
 +#endif
+ 
  #include "system.h"
  #include <stdlib.h>
- #include <string.h>

Index: pkgsrc/misc/rpm/patches/patch-lib_rpmrc.c
diff -u pkgsrc/misc/rpm/patches/patch-lib_rpmrc.c:1.1 pkgsrc/misc/rpm/patches/patch-lib_rpmrc.c:1.2
--- pkgsrc/misc/rpm/patches/patch-lib_rpmrc.c:1.1       Sun Sep 15 12:32:22 2013
+++ pkgsrc/misc/rpm/patches/patch-lib_rpmrc.c   Sun Apr 23 08:18:15 2017
@@ -1,8 +1,20 @@
-$NetBSD: patch-lib_rpmrc.c,v 1.1 2013/09/15 12:32:22 joerg Exp $
+$NetBSD: patch-lib_rpmrc.c,v 1.2 2017/04/23 08:18:15 adam Exp $
 
---- lib/rpmrc.c.orig   2013-09-14 21:00:41.000000000 +0000
+For macros use a path with _arch.
+Preprocessor portability fix.
+
+--- lib/rpmrc.c.orig   2017-02-16 09:40:09.000000000 +0000
 +++ lib/rpmrc.c
-@@ -991,7 +991,7 @@ static void defaultMachine(const char **
+@@ -466,7 +466,7 @@ static void setDefaults(void)
+     if (!macrofiles) {
+       macrofiles = rstrscat(NULL, confdir, "/macros", ":",
+                               confdir, "/macros.d/macros.*", ":",
+-                              confdir, "/platform/%{_target}/macros", ":",
++                              confdir, "/platform/%{_arch}/macros", ":",
+                               confdir, "/fileattrs/*.attr", ":",
+                               confdir, "/" RPMCANONVENDOR "/macros", ":",
+                               SYSCONFDIR "/rpm/macros.*", ":",
+@@ -1028,7 +1028,7 @@ static void defaultMachine(rpmrcCtx ctx,
        else if(rstreq(un.sysname, "Darwin")) { 
  #ifdef __ppc__
            strcpy(un.machine, "ppc");

Added files:

Index: pkgsrc/misc/rpm/patches/patch-installplatform
diff -u /dev/null pkgsrc/misc/rpm/patches/patch-installplatform:1.1
--- /dev/null   Sun Apr 23 08:18:15 2017
+++ pkgsrc/misc/rpm/patches/patch-installplatform       Sun Apr 23 08:18:15 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-installplatform,v 1.1 2017/04/23 08:18:15 adam Exp $
+
+Keep macros in one place across platforms.
+
+--- installplatform.orig       2017-04-23 06:48:59.000000000 +0000
++++ installplatform
+@@ -194,7 +194,7 @@ for ARCH in noarch `grep ^arch_canon $RP
+       LIB=${LIB}64
+   fi
+ 
+-  PPD="${DESTDIR}/${platformdir}/${ARCH}-${OS}"
++  PPD="${DESTDIR}/${platformdir}/${ARCH}"
+   [ -d $PPD ] || mkdir -p $PPD
+ 
+   cat $PLATFORM \



Home | Main Index | Thread Index | Old Index