Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg4 ffmpeg4: Enable section_data_rel_ro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ed584587db76
branches:  trunk
changeset: 434911:ed584587db76
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jun 26 21:02:27 2020 +0000

description:
ffmpeg4: Enable section_data_rel_ro on NetBSD

Seems to resolve text relocation issues on aarch64.

Thanks to an upstream commit fixing the exact problem we're having
(on Linux...) from 2014 for the hitn...

Bump PKGREVISION.

diffstat:

 multimedia/ffmpeg4/Makefile                |   7 ++-----
 multimedia/ffmpeg4/patches/patch-configure |  15 +++++++++------
 2 files changed, 11 insertions(+), 11 deletions(-)

diffs (76 lines):

diff -r 48523b0f9e08 -r ed584587db76 multimedia/ffmpeg4/Makefile
--- a/multimedia/ffmpeg4/Makefile       Fri Jun 26 20:02:23 2020 +0000
+++ b/multimedia/ffmpeg4/Makefile       Fri Jun 26 21:02:27 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2020/06/26 03:11:40 jklos Exp $
+# $NetBSD: Makefile,v 1.33 2020/06/26 21:02:27 nia Exp $
 
 PKGNAME=       ${DISTNAME:S/ffmpeg/ffmpeg4/}
+PKGREVISION=   1
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://ffmpeg.org/
 COMMENT=       Decoding, encoding and streaming software (v4.x)
@@ -50,10 +51,6 @@
 NOT_PAX_MPROTECT_SAFE+=        bin/ffmpeg4
 .endif
 
-.if ${MACHINE_ARCH} == "aarch64"
-NOT_PAX_MPROTECT_SAFE+= bin/ffmpeg4
-.endif
-
 # configure script uses uname -m to detect arch, as opposed to uname -p in
 # GNU/configure. Unable to detect NetBSD/macppc hosts correctly.
 CONFIGURE_ARGS+=       --arch=${MACHINE_ARCH}
diff -r 48523b0f9e08 -r ed584587db76 multimedia/ffmpeg4/patches/patch-configure
--- a/multimedia/ffmpeg4/patches/patch-configure        Fri Jun 26 20:02:23 2020 +0000
+++ b/multimedia/ffmpeg4/patches/patch-configure        Fri Jun 26 21:02:27 2020 +0000
@@ -1,8 +1,10 @@
-$NetBSD: patch-configure,v 1.5 2020/06/16 16:54:45 adam Exp $
+$NetBSD: patch-configure,v 1.6 2020/06/26 21:02:27 nia Exp $
 
 Sun audio support.
 
-Enable PIC on NetBSD, even on i386 to avoid text relocations.
+Enable PIC and section_data_rel_ro on NetBSD, even on i386,
+to avoid text relocations.
+
 Do not use 'rsync'.
 
 Portability fixes.
@@ -46,15 +48,16 @@
                          expensive_optimization_flag=""
                      else
                          expensive_optimization_flag="-fno-expensive-optimizations"
-@@ -5330,6 +5332,7 @@ case $target_os in
+@@ -5330,6 +5332,8 @@ case $target_os in
          ;;
      netbsd)
          disable symver
++        enable section_data_rel_ro
 +        enable pic
          oss_indev_extralibs="-lossaudio"
          oss_outdev_extralibs="-lossaudio"
          enabled gcc || check_ldflags -Wl,-zmuldefs
-@@ -5728,10 +5731,13 @@ done
+@@ -5728,10 +5732,13 @@ done
  check_cc pragma_deprecated "" '_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")'
  
  # The global variable ensures the bits appear unchanged in the object file.
@@ -71,7 +74,7 @@
  
  check_cc const_nan math.h "struct { double d; } static const bar[] = { { NAN } }"
  
-@@ -6114,6 +6120,7 @@ check_headers malloc.h
+@@ -6114,6 +6121,7 @@ check_headers malloc.h
  check_headers mftransform.h
  check_headers net/udplite.h
  check_headers poll.h
@@ -79,7 +82,7 @@
  check_headers sys/param.h
  check_headers sys/resource.h
  check_headers sys/select.h
-@@ -6537,7 +6544,6 @@ enabled makeinfo \
+@@ -6537,7 +6545,6 @@ enabled makeinfo \
  disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html || disable texi2html
  perl -v            > /dev/null 2>&1 && enable perl      || disable perl
  pod2man --help     > /dev/null 2>&1 && enable pod2man   || disable pod2man



Home | Main Index | Thread Index | Old Index