pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia mencoder, mplayer, gmplayer: avoid text rel...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a47f37e54c83
branches:  trunk
changeset: 381045:a47f37e54c83
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sun May 27 15:27:13 2018 +0000

description:
mencoder, mplayer, gmplayer: avoid text relocations on NetBSD/i386 8.0.

* specify --disable-sse4 to avoid non-PIE asm ops in libmpcodecs/vf_ass.c
  that cause text relocations on NetBSD/i386
* explicitly pull pkgsrc/multimedia/libass to avoid internal libass
  (which seems usually enabled by configure's autodetect)
* specify -fpic in configure for NetBSD/i386 to enable __PIC__ blocks
  in some sources
* while here, use -mtune rather than -mcpu for not only gcc4 but
  also 5.x and later

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

diffstat:

 multimedia/gmplayer/Makefile              |   4 ++--
 multimedia/gmplayer/distinfo              |   4 ++--
 multimedia/mencoder/Makefile              |   3 ++-
 multimedia/mplayer-share/Makefile.cflags  |   4 ++--
 multimedia/mplayer-share/Makefile.common  |   8 +++++++-
 multimedia/mplayer-share/Makefile.depends |   3 ++-
 multimedia/mplayer-share/distinfo         |   4 ++--
 multimedia/mplayer-share/patches/patch-aa |  31 +++++++++++++++++++++++--------
 multimedia/mplayer/Makefile               |   3 ++-
 9 files changed, 44 insertions(+), 20 deletions(-)

diffs (220 lines):

diff -r 19b035652469 -r a47f37e54c83 multimedia/gmplayer/Makefile
--- a/multimedia/gmplayer/Makefile      Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/gmplayer/Makefile      Sun May 27 15:27:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.137 2018/04/16 14:34:56 wiz Exp $
+# $NetBSD: Makefile,v 1.138 2018/05/27 15:27:13 tsutsui Exp $
 #
 # NOTE: if you are updating both mplayer and gmplayer, you must ensure
 # that *both* distinfo files contain the correct, up-to-date files and
@@ -8,7 +8,7 @@
 #
 
 PKGNAME=       gmplayer-${MPLAYER_VERSION}
-PKGREVISION=   6
+PKGREVISION=   7
 
 SKIN_SITES=    http://www1.mplayerhq.hu/MPlayer/skins/         \
                http://www2.mplayerhq.hu/MPlayer/skins/         \
diff -r 19b035652469 -r a47f37e54c83 multimedia/gmplayer/distinfo
--- a/multimedia/gmplayer/distinfo      Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/gmplayer/distinfo      Sun May 27 15:27:13 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.99 2018/04/12 15:56:20 triaxx Exp $
+$NetBSD: distinfo,v 1.100 2018/05/27 15:27:13 tsutsui Exp $
 
 SHA1 (mplayer/Abyss-1.7.tar.bz2) = 46d122cb60496eecbc96f26a0cfe0bda883fd725
 RMD160 (mplayer/Abyss-1.7.tar.bz2) = ca1e1c77177dc23300d011c1e00711c6bb81756a
@@ -285,7 +285,7 @@
 SHA512 (mplayer/xmmplayer-1.5.tar.bz2) = 170a7aec3b0cd284d8f7fb79e72f2463efc84b05710aa70f3360b145e86e424138f2c11abaa2db6a2e937822ed91396d4833ea59685d7067bfc916578187e30f
 Size (mplayer/xmmplayer-1.5.tar.bz2) = 74184 bytes
 SHA1 (patch-Makefile) = be30a8e90383d6af5902380587b5075fd9c73b83
-SHA1 (patch-aa) = b1492302b7d4e41f362453b6316b17df1300827c
+SHA1 (patch-aa) = bd9b8a10923a7aa8ace18cb848727044e72d937d
 SHA1 (patch-ae) = 286f5ac075ea4123a1a6276f97e02a4dda9b3e67
 SHA1 (patch-an) = 330c427e30b686165fda15a85b730a3f53e0d217
 SHA1 (patch-gui_interface.c) = 04c347b6cb0a54132e6b089142c8ed282f583a1c
diff -r 19b035652469 -r a47f37e54c83 multimedia/mencoder/Makefile
--- a/multimedia/mencoder/Makefile      Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mencoder/Makefile      Sun May 27 15:27:13 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.67 2016/02/25 15:49:44 jperkin Exp $
+# $NetBSD: Makefile,v 1.68 2018/05/27 15:27:13 tsutsui Exp $
 
 PKGNAME=       mencoder-${MPLAYER_VERSION}
+PKGREVISION=   1
 
 COMMENT=       Simple movie encoder for MPlayer-playable movies
 
diff -r 19b035652469 -r a47f37e54c83 multimedia/mplayer-share/Makefile.cflags
--- a/multimedia/mplayer-share/Makefile.cflags  Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mplayer-share/Makefile.cflags  Sun May 27 15:27:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.cflags,v 1.8 2016/02/07 13:34:33 leot Exp $
+# $NetBSD: Makefile.cflags,v 1.9 2018/05/27 15:27:13 tsutsui Exp $
 
 # This must be included after everything else to truly clear ${CFLAGS}
 # in the non-runtime-cpu-detection case. If ${CFLAGS} is non-empty, the
@@ -13,7 +13,7 @@
 
 .    include "../../mk/compiler.mk"
 
-.    if !empty(CC_VERSION:Mgcc-4*)
+.    if !empty(CC_VERSION:Mgcc-[4567]*)
 CFLAGS+=       -O3 -ffast-math -fomit-frame-pointer -mtune=pentiumpro
 .    else
 CFLAGS+=       -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro
diff -r 19b035652469 -r a47f37e54c83 multimedia/mplayer-share/Makefile.common
--- a/multimedia/mplayer-share/Makefile.common  Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mplayer-share/Makefile.common  Sun May 27 15:27:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.60 2018/04/04 12:26:24 triaxx Exp $
+# $NetBSD: Makefile.common,v 1.61 2018/05/27 15:27:13 tsutsui Exp $
 # used by multimedia/gmplayer/Makefile
 # used by multimedia/mencoder/Makefile
 # used by multimedia/mplayer/Makefile
@@ -50,6 +50,12 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+# avoid text relocations caused by asm ops in #if HAVE_SSE4_INTERNAL block
+# in libmpcodecs/vf_ass.c
+.if !empty(MACHINE_PLATFORM:MNetBSD-[89].*-i386)
+CONFIGURE_ARGS+=       --disable-sse4
+.endif
+
 # The configure script misdetects endianness on mipseb
 .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb"
 CONFIGURE_ARGS+=       --enable-big-endian
diff -r 19b035652469 -r a47f37e54c83 multimedia/mplayer-share/Makefile.depends
--- a/multimedia/mplayer-share/Makefile.depends Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mplayer-share/Makefile.depends Sun May 27 15:27:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.depends,v 1.21 2016/03/05 09:03:02 ryoon Exp $
+# $NetBSD: Makefile.depends,v 1.22 2018/05/27 15:27:13 tsutsui Exp $
 #
 
 DEPENDS+=      mplayer-share>=${MPLAYER_VERSION}:../../multimedia/mplayer-share
@@ -7,4 +7,5 @@
 .include "../../fonts/fontconfig/buildlink3.mk"
 .include "../../graphics/freetype2/buildlink3.mk"
 .include "../../multimedia/ffmpeg3/buildlink3.mk"
+.include "../../multimedia/libass/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
diff -r 19b035652469 -r a47f37e54c83 multimedia/mplayer-share/distinfo
--- a/multimedia/mplayer-share/distinfo Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mplayer-share/distinfo Sun May 27 15:27:13 2018 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.93 2018/04/04 11:02:07 triaxx Exp $
+$NetBSD: distinfo,v 1.94 2018/05/27 15:27:13 tsutsui Exp $
 
 SHA1 (mplayer/MPlayer-1.3.0.tar.xz) = 11db20434a4e1aabb9c52f7712241dae1b3730e3
 RMD160 (mplayer/MPlayer-1.3.0.tar.xz) = b6688b186f41267ca3cec59c67afe34396c51ade
 SHA512 (mplayer/MPlayer-1.3.0.tar.xz) = 10007e471a941f8a3dabf6149e6e44fc1a364a9ccb5cd08c670fc22560e5053a15f3249e9d3e18cdda06b6b7e77e537026b5d33dc356e928c63747d6ed73dbae
 Size (mplayer/MPlayer-1.3.0.tar.xz) = 13278984 bytes
 SHA1 (patch-Makefile) = be30a8e90383d6af5902380587b5075fd9c73b83
-SHA1 (patch-aa) = b1492302b7d4e41f362453b6316b17df1300827c
+SHA1 (patch-aa) = bd9b8a10923a7aa8ace18cb848727044e72d937d
 SHA1 (patch-ae) = 286f5ac075ea4123a1a6276f97e02a4dda9b3e67
 SHA1 (patch-an) = 330c427e30b686165fda15a85b730a3f53e0d217
 SHA1 (patch-gui_interface.c) = 04c347b6cb0a54132e6b089142c8ed282f583a1c
diff -r 19b035652469 -r a47f37e54c83 multimedia/mplayer-share/patches/patch-aa
--- a/multimedia/mplayer-share/patches/patch-aa Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mplayer-share/patches/patch-aa Sun May 27 15:27:13 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.34 2016/02/07 13:34:33 leot Exp $
+$NetBSD: patch-aa,v 1.35 2018/05/27 15:27:14 tsutsui Exp $
 
 o Handle properly sh3 and evbarm ports on NetBSD.
 o Fix CPU family detection on NetBSD with /proc mounted with "-o linux"
@@ -8,8 +8,9 @@
 o Add necessary libs for aalib support even if the aa option is turned on with
   --enable-aa.
 o Add support for dvb capture on NetBSD.
+o Explicitly enable PIE to avoid text relocations on NetBSD/i386 8.x
 
---- configure.orig     2016-01-08 12:39:01.000000000 +0000
+--- configure.orig     2016-02-13 21:05:42.000000000 +0000
 +++ configure
 @@ -1640,7 +1640,7 @@ else
        cc_name=$cc_name_tmp
@@ -55,7 +56,7 @@
      arch='sh4'
      iproc='sh4'
      ;;
-@@ -2783,23 +2789,23 @@ fi # if darwin && test "$cc_vendor" = "g
+@@ -2806,23 +2812,23 @@ fi # if darwin && test "$cc_vendor" = "g
  _install_strip="-s"
  if test -z "$CFLAGS" || test "$_profile" != "" || test "$_debug" != ""; then
    if test "$cc_vendor" = "intel" ; then
@@ -85,7 +86,7 @@
      WARNFLAGS="-W -Wall $WARNFLAGS"
      _install_strip=
    fi
-@@ -2807,8 +2813,8 @@ else
+@@ -2830,8 +2836,8 @@ else
    warn_cflags=yes
  fi
  
@@ -96,7 +97,21 @@
  
  # On glibc, add some more CPPFLAGS for enabling required functionality.
  cpp_condition_check features.h "defined __GLIBC__" &&
-@@ -4591,7 +4597,11 @@ if test "$_x11" = auto && test "$_x11_he
+@@ -2878,10 +2884,11 @@ if test $relocatable = "auto" ; then
+   elif win32 && ! wine ; then
+     relocatable=no
+     res_comment="unnecessary and broken on win32"
+-  elif x86_32 && cflag_check -pie ; then
++  elif x86_32 && cflag_check -fpic -fpie ; then
+     extra_ldflags="$extra_ldflags -pie"
++    extra_cflags="$extra_cflags -fpic -fpie"
+     relocatable=yes
+-    res_comment="non-PIC"
++    res_comment="fast PIC"
+   elif x86_64 && cflag_check -fpie -pie ; then
+     extra_ldflags="$extra_ldflags -fpie -pie"
+     extra_cflags="$extra_cflags -fpie"
+@@ -4615,7 +4622,11 @@ if test "$_x11" = auto && test "$_x11_he
             -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \
             -L/usr/lib ; do
      if netbsd; then
@@ -109,7 +124,7 @@
      else
        ld_tmp="$I -lXext -lX11 $ld_pthread"
      fi
-@@ -4994,6 +5004,8 @@ if test "$_aa" = yes ; then
+@@ -5018,6 +5029,8 @@ if test "$_aa" = yes ; then
    def_aa='#define CONFIG_AA 1'
    if cygwin ; then
      libs_mplayer="$libs_mplayer $(aalib-config --libs | cut -d " " -f 2,5,6)"
@@ -118,7 +133,7 @@
    fi
    vomodules="aa $vomodules"
  else
-@@ -5081,7 +5093,6 @@ EOF
+@@ -5105,7 +5118,6 @@ EOF
        extra_cflags="$extra_cflags $inc_tmp" && break
    done
  fi
@@ -126,7 +141,7 @@
  if test "$_dvb" = yes ; then
    _dvbin=yes
    inputmodules="dvb $inputmodules"
-@@ -5090,14 +5101,29 @@ if test "$_dvb" = yes ; then
+@@ -5114,14 +5126,29 @@ if test "$_dvb" = yes ; then
    aomodules="mpegpes(dvb) $aomodules"
    vomodules="mpegpes(dvb) $vomodules"
  else
diff -r 19b035652469 -r a47f37e54c83 multimedia/mplayer/Makefile
--- a/multimedia/mplayer/Makefile       Sun May 27 15:24:32 2018 +0000
+++ b/multimedia/mplayer/Makefile       Sun May 27 15:27:13 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.100 2016/02/07 13:34:34 leot Exp $
+# $NetBSD: Makefile,v 1.101 2018/05/27 15:27:13 tsutsui Exp $
 
 PKGNAME=       mplayer-${MPLAYER_VERSION}
+PKGREVISION=   1
 
 COMMENT=       Fast, cross-platform movie player
 



Home | Main Index | Thread Index | Old Index