1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-17 19:39:43 +00:00

multimedia/vlc: Turn off ASLR

Starting with 13.2, elf processes will have ASLR turned on by default.
However, the vlc binary core dumps with ASLR on, so turn it off until a
proper fix can be found.

This fix is based on a discussion between emaste and Peter
<pmc@citylink.dinoex.sub.org>.

See also:	https://lists.freebsd.org/archives/freebsd-stable/2023-March/001181.html
PR:		270038

Reviewed by:	emaste, mjg, riggs
Approved by:	multimedia (tcberner, maintainer)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D38994

(cherry picked from commit 345272090c)
This commit is contained in:
Joseph Mingrone 2023-03-08 16:24:47 -04:00
parent 089136e315
commit 4f66eb5be4
No known key found for this signature in database
GPG Key ID: 36A40C83B0D6EF9E

View File

@ -1,5 +1,6 @@
PORTNAME= vlc
DISTVERSION= 3.0.18
PORTREVISION= 2
PORTEPOCH= 4
CATEGORIES= multimedia audio net www
MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \
@ -25,10 +26,12 @@ BUILD_DEPENDS= gsed:textproc/gsed \
yasm:devel/yasm
RUN_DEPENDS= ffmpeg>=3.4.1,1:multimedia/ffmpeg
USES= compiler:c++17-lang cpe desktop-file-utils gettext-tools gmake gnome \
iconv:wchar_t libtool localbase pathfix pkgconfig tar:xz
USES= compiler:c++17-lang cpe desktop-file-utils elfctl gettext-tools \
gmake gnome iconv:wchar_t libtool localbase pathfix pkgconfig \
tar:xz
CPE_VENDOR= videolan
ELF_FEATURES= +noaslr:bin/.libs/vlc # See PR 270038
# VLC git (post 2.2.4) requires C++11 support and passes the appropriate flag
# to the compiler. Until the port is updated, we explicitly pass -std=c++11 to