pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg3 ffmpeg3: avoid text relocations on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88e5230b55cc
branches:  trunk
changeset: 308632:88e5230b55cc
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sun May 27 15:24:32 2018 +0000

description:
ffmpeg3: avoid text relocations on NetBSD/i386.

* explicitly specify --disable-asm on NetBSD/i386
* explicitly enable pic even for NetBSD/i386 as other architecture

Bump PKGREVISION.  Ok'ed by wiz@ in PR pkg/53319.

diffstat:

 multimedia/ffmpeg3/Makefile                |   7 ++++---
 multimedia/ffmpeg3/distinfo                |   4 ++--
 multimedia/ffmpeg3/patches/patch-configure |  16 ++++++----------
 3 files changed, 12 insertions(+), 15 deletions(-)

diffs (75 lines):

diff -r d9d424f4f7f5 -r 88e5230b55cc multimedia/ffmpeg3/Makefile
--- a/multimedia/ffmpeg3/Makefile       Sun May 27 15:22:55 2018 +0000
+++ b/multimedia/ffmpeg3/Makefile       Sun May 27 15:24:32 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2018/04/17 22:29:44 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2018/05/27 15:24:32 tsutsui Exp $
 
 PKGNAME=       ${DISTNAME:S/ffmpeg/ffmpeg3/}
-PKGREVISION=   5
+PKGREVISION=   6
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://ffmpeg.mplayerhq.hu/
 COMMENT=       Decoding, encoding and streaming software (v3.x)
@@ -41,10 +41,11 @@
 
 .include "../../mk/compiler.mk"
 
-# disable asm on i386 for non-gcc and gcc < 4.2
+# disable asm on i386 for non-gcc and gcc < 4.2, or to avoid text relocations
 .if ${MACHINE_ARCH} == "i386"
 .  if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
    || !empty(MACHINE_PLATFORM:MSunOS-*-i386) \
+   || !empty(MACHINE_PLATFORM:MNetBSD-*-i386) \
    || !empty(CC_VERSION:Mgcc-[123]*) \
    || !empty(CC_VERSION:Mgcc-4.[01].*) \
    || empty(CC_VERSION:Mgcc*)
diff -r d9d424f4f7f5 -r 88e5230b55cc multimedia/ffmpeg3/distinfo
--- a/multimedia/ffmpeg3/distinfo       Sun May 27 15:22:55 2018 +0000
+++ b/multimedia/ffmpeg3/distinfo       Sun May 27 15:24:32 2018 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.26 2018/02/26 07:40:28 adam Exp $
+$NetBSD: distinfo,v 1.27 2018/05/27 15:24:32 tsutsui Exp $
 
 SHA1 (ffmpeg-3.4.2.tar.xz) = baef74d93683c6b2029ac36b900732795216e066
 RMD160 (ffmpeg-3.4.2.tar.xz) = 97751ae03808242ced7cc9495f999a3b1760325c
 SHA512 (ffmpeg-3.4.2.tar.xz) = 9fb6df5ddde8af51b929180192d29210695deeef61211fb8a69206bdeabba729cd47e346e4dcf6f27c3416ed77383d30b51933e75fc515466404f85d105bb301
 Size (ffmpeg-3.4.2.tar.xz) = 8478376 bytes
 SHA1 (patch-Makefile) = 0c35f53878b0420aeea49d8ccb249279e705eb40
-SHA1 (patch-configure) = ed50009ff973844427af7b5720af6493ebfce298
+SHA1 (patch-configure) = a30c25267dec3642a010d7cb66fc98e8c5c0bdea
 SHA1 (patch-doc_Makefile) = 50ee7aaf74f8a5c439b11f141b5408322659543a
 SHA1 (patch-libavformat_sctp.c) = 22bad9c7dc152aec3c60e0009899af241f495535
 SHA1 (patch-libavutil_common.h) = d0f1093bc82567807b39dde990ee347f90a082c9
diff -r d9d424f4f7f5 -r 88e5230b55cc multimedia/ffmpeg3/patches/patch-configure
--- a/multimedia/ffmpeg3/patches/patch-configure        Sun May 27 15:22:55 2018 +0000
+++ b/multimedia/ffmpeg3/patches/patch-configure        Sun May 27 15:24:32 2018 +0000
@@ -1,22 +1,18 @@
-$NetBSD: patch-configure,v 1.5 2017/10/18 20:25:41 adam Exp $
+$NetBSD: patch-configure,v 1.6 2018/05/27 15:24:32 tsutsui Exp $
 
-Enable PIC on non-i386 NetBSD.
+Enable PIC on NetBSD, even on i386 to avoid text relocations.
 
---- configure.orig     2017-10-15 15:59:36.000000000 +0000
+--- configure.orig     2018-02-12 00:29:18.000000000 +0000
 +++ configure
-@@ -4939,6 +4939,11 @@ case $target_os in
+@@ -4940,6 +4940,7 @@ case $target_os in
          ;;
      netbsd)
          disable symver
-+        # NetBSD/macppc *really* needs PIC enabled.  ffmpeg has repeatedly
-+        # broken time and time again because PIC support has been removed
-+        # from architectures that need it.  So, if you touch this, please
-+        # be careful and make sure that your changes work.
-+        test "${subarch}" != "x86_32" && enable pic
++        enable pic
          oss_indev_extralibs="-lossaudio"
          oss_outdev_extralibs="-lossaudio"
          enabled gcc || check_ldflags -Wl,-zmuldefs
-@@ -5359,10 +5364,13 @@ check_cc <<EOF && enable attribute_may_a
+@@ -5360,10 +5361,13 @@ check_cc <<EOF && enable attribute_may_a
  union { int x; } __attribute__((may_alias)) x;
  EOF
  



Home | Main Index | Thread Index | Old Index