pkgsrc-Bugs archive

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

Re: pkg/53319: text relocations fixes for multimedia/mplayer others



The following reply was made to PR pkg/53319; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: o.vd.linden%quicknet.nl@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: pkg/53319: text relocations fixes for multimedia/mplayer others
Date: Tue, 14 Aug 2018 05:50:52 +0900

 > So, the question is why I don't have any problem running these
 > programs with asm *enabled* on -current ? Could be paxctl
 > and FORTIFY_SOURCE related, but why am I not seeing the
 > error messages you were seeing with the programs that were build
 > using the i386 assemebler code ? Were the 8.0 binaries build
 > with stricter options ?
 
 How did you enable x86 asm in ffmpeg3 from pkgsrc-2018Q2?
 
 mplayer doesn't start if it's enabled as the following:
 
 ---
 mirage# uname -a
 NetBSD mirage 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
 mirage# pkg_add -U http://teokurebsd.org/netbsd/packages/i386/8.0_2018Q2/All/ffmpeg3
 ffmpeg3-3.4.2nb6: copying /usr/pkg/share/examples/ffmpeg3/ffserver.conf to /usr/pkg/etc/ffserver.conf
 mirage# mplayer
 MPlayer 1.3.0-5.5.0 (C) 2000-2016 MPlayer Team
 224 audio & 451 video codecs
 Usage:   mplayer [options] [url|path/]filename
 
 Basic options: (complete list in the man page)
  -vo <drv>        select video output driver ('-vo help' for a list)
  -ao <drv>        select audio output driver ('-ao help' for a list)
  vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)
  dvd://<titleno>  play DVD title from device instead of plain file
  -alang/-slang    select DVD audio/subtitle language (by 2-char country code)
  -ss <position>   seek to given (seconds or hh:mm:ss) position
  -nosound         do not play sound
  -fs              fullscreen playback (or -vm, -zoom, details in the man page)
  -x <x> -y <y>    set display resolution (for use with -vm or -zoom)
  -sub <file>      specify subtitle file to use (also see -subfps, -subdelay)
  -playlist <file> specify playlist file
  -vid x -aid y    select video (x) and audio (y) stream to play
  -fps x -srate y  change video (x fps) and audio (y Hz) rate
  -pp <quality>    enable postprocessing filter (details in the man page)
  -framedrop       enable frame dropping (for slow machines)
 
 Basic keys: (complete list in the man page, also check input.conf)
  <-  or  ->       seek backward/forward 10 seconds
  down or up       seek backward/forward  1 minute
  pgdown or pgup   seek backward/forward 10 minutes
  < or >           step backward/forward in playlist
  p or SPACE       pause movie (press any key to continue)
  q or ESC         stop playing and quit program
  + or -           adjust audio delay by +/- 0.1 second
  o                cycle OSD mode:  none / seekbar / seekbar + timer
  * or /           increase or decrease PCM volume
  x or z           adjust subtitle delay by +/- 0.1 second
  r or t           adjust subtitle position up/down, also see -vf expand
 
  * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
 
 mirage# cd /usr/pkgsrc/multimedia/ffmpeg3/
 mirage# pwd
 /usr/pkgsrc/multimedia/ffmpeg3
 mirage# cat CVS/Tag 
 Tpkgsrc-2018Q2
 mirage# cvs diff
 ? work.i386
 cvs diff: Diffing .
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg3/Makefile,v
 retrieving revision 1.33
 diff -u -p -r1.33 Makefile
 --- Makefile    27 May 2018 15:24:32 -0000      1.33
 +++ Makefile    13 Aug 2018 20:29:29 -0000
 @@ -45,7 +45,7 @@ post-install:
  .if ${MACHINE_ARCH} == "i386"
  .  if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
     || !empty(MACHINE_PLATFORM:MSunOS-*-i386) \
 -   || !empty(MACHINE_PLATFORM:MNetBSD-*-i386) \
 +#   || !empty(MACHINE_PLATFORM:MNetBSD-*-i386) \
     || !empty(CC_VERSION:Mgcc-[123]*) \
     || !empty(CC_VERSION:Mgcc-4.[01].*) \
     || empty(CC_VERSION:Mgcc*)
 cvs diff: Diffing patches
 mirage# pkg_add -U work.i386/.packages/ffmpeg3-3.4.2nb6.tgz 
 ffmpeg3-3.4.2nb6: copying /usr/pkg/share/examples/ffmpeg3/ffserver.conf to /usr/pkg/etc/ffserver.conf
 mirage# mplayer 
 /usr/pkg/lib/ffmpeg3/libswscale.so.4: text relocations
 /usr/pkg/lib/ffmpeg3/libswscale.so.4: Cannot write-enable text segment: Permission denied
 mirage# pkg_add -U http://teokurebsd.org/netbsd/packages/i386/8.0_2018Q2/All/ffmpeg3
 ffmpeg3-3.4.2nb6: copying /usr/pkg/share/examples/ffmpeg3/ffserver.conf to /usr/pkg/etc/ffserver.conf
 mirage# mplayer
 MPlayer 1.3.0-5.5.0 (C) 2000-2016 MPlayer Team
 224 audio & 451 video codecs
 Usage:   mplayer [options] [url|path/]filename
 
 Basic options: (complete list in the man page)
  -vo <drv>        select video output driver ('-vo help' for a list)
  -ao <drv>        select audio output driver ('-ao help' for a list)
  vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)
  dvd://<titleno>  play DVD title from device instead of plain file
  -alang/-slang    select DVD audio/subtitle language (by 2-char country code)
  -ss <position>   seek to given (seconds or hh:mm:ss) position
  -nosound         do not play sound
  -fs              fullscreen playback (or -vm, -zoom, details in the man page)
  -x <x> -y <y>    set display resolution (for use with -vm or -zoom)
  -sub <file>      specify subtitle file to use (also see -subfps, -subdelay)
  -playlist <file> specify playlist file
  -vid x -aid y    select video (x) and audio (y) stream to play
  -fps x -srate y  change video (x fps) and audio (y Hz) rate
  -pp <quality>    enable postprocessing filter (details in the man page)
  -framedrop       enable frame dropping (for slow machines)
 
 Basic keys: (complete list in the man page, also check input.conf)
  <-  or  ->       seek backward/forward 10 seconds
  down or up       seek backward/forward  1 minute
  pgdown or pgup   seek backward/forward 10 minutes
  < or >           step backward/forward in playlist
  p or SPACE       pause movie (press any key to continue)
  q or ESC         stop playing and quit program
  + or -           adjust audio delay by +/- 0.1 second
  o                cycle OSD mode:  none / seekbar / seekbar + timer
  * or /           increase or decrease PCM volume
  x or z           adjust subtitle delay by +/- 0.1 second
  r or t           adjust subtitle position up/down, also see -vf expand
 
  * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
 
 mirage# 
 ---
 
 Anyway, there are strong complaints about text relocations:
  http://mail-index.netbsd.org/pkgsrc-bugs/2018/04/28/msg063868.html
  http://mail-index.netbsd.org/pkgsrc-bugs/2018/04/28/msg063878.html
  http://mail-index.netbsd.org/pkgsrc-bugs/2018/04/28/msg063881.html
 
 That was the reason why I filed this PR to disable them completely.
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index