Skip to content

Commit

Permalink
Some ports won't work with PIE or RELRO+BIND_NOW.
Browse files Browse the repository at this point in the history
  • Loading branch information
lattera committed Aug 16, 2016
1 parent a7c3d16 commit 1b4cfac
Show file tree
Hide file tree
Showing 405 changed files with 1,011 additions and 11 deletions.
2 changes: 2 additions & 0 deletions archivers/unrar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ OPENSSL_AES_CPPFLAGS= -DOPENSSL_AES -I${OPENSSLINC}
OPENSSL_AES_LDFLAGS= -L${OPENSSLLIB} -lcrypto
OPENSSL_AES_USE= OPENSSL=yes

NOPIE_PORTS= yes

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrar ${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${DOCSDIR}/
Expand Down
2 changes: 2 additions & 0 deletions astro/openuniverse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ CONFIGURE_ARGS= --includedir="${LOCALBASE}/include" \
CPPFLAGS+= -I${LOCALBASE}/include/GL -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lm -lcompat

NOPIE_PORTS= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions audio/beast/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ CXXFLAGS+= -fpermissive
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

NOPIE_PORTS= yes
NORELRO_PORTS= yes

PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_SUB= yes

Expand Down
3 changes: 3 additions & 0 deletions audio/csound6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ CMAKE_ARGS= -DBUILD_CSOUNDVST:BOOL=OFF \
USE_LDCONFIG= yes
SSP_UNSAFE= yes

NOPIE_PORTS= yes
NORELRO_PORTS= yes

SUB_FILES= pkg-message

CONFLICTS= csound-5.*
Expand Down
2 changes: 2 additions & 0 deletions audio/forked-daapd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ INSTALL_TARGET= install-strip
USE_LDCONFIG= ${LOCALBASE}/lib/forked-daapd
CONFIGURE_ARGS+=--localstatedir=/var

NOPIE_PORTS= yes

USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message

Expand Down
3 changes: 3 additions & 0 deletions audio/icegenerator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ GNU_CONFIGURE= yes
USES= gmake pkgconfig
CONFIGURE_ARGS= --exec-prefix=${PREFIX}

NOPIE_PORTS= yes
NORELRO_PORTS= yes

OPTIONS_DEFINE= DOCS MYSQL PGSQL

MYSQL_USE= MYSQL=YES
Expand Down
2 changes: 2 additions & 0 deletions audio/madplay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ NLS_CONFIGURE_ENABLE= nls
ESOUND_USE= GNOME=esound
ESOUND_CONFIGURE_WITH= esd

NOPIE_PORTS= yes

post-install:
${INSTALL_PROGRAM} ${WRKSRC}/madtime ${STAGEDIR}${PREFIX}/bin

Expand Down
3 changes: 3 additions & 0 deletions audio/mp3guessenc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING
PLIST_FILES= bin/mp3guessenc
SRC= decode.c mp3guessenc.c bit_utils.c tags.c

NOPIE_PORTS= yes
NORELRO_PORTS= yes

do-build:
.for f in ${SRC}
${CC} ${CFLAGS} ${WRKSRC}/${f} -c -o ${WRKSRC}/${f:C/\.c/.o/}
Expand Down
2 changes: 2 additions & 0 deletions audio/muse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ CONFIGURE_ARGS= --disable-debug --disable-lubrify --disable-rpath
CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_SYS_UIO_H
LDFLAGS+= -lpthread -L${LOCALBASE}/lib -lintl

NOPIE_PORTS= yes

PORTDOCS= AUTHORS ChangeLog NEWS KNOWN-BUGS README TODO USAGE
PLIST_FILES= bin/muse man/man1/muse.1.gz
.for lang in es it
Expand Down
3 changes: 3 additions & 0 deletions audio/oss/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ USE_RC_SUBR= oss
SUB_FILES= pkg-install pkg-deinstall
ONLY_FOR_ARCHS= amd64 i386

NOPIE_PORTS= yes
NORELRO_PORTS= yes

KMODDIR= ${PREFIX}/lib/oss/modules

OSS_CONF_FILES= oss_audigyls oss_audioloop oss_cs461x oss_emu10k1x \
Expand Down
2 changes: 2 additions & 0 deletions audio/raop_play/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ LDFLAGS+= `fltk-config --ldflags`
USES= gmake
USE_GNOME= glib20

NOPIE_PORTS= yes

post-patch:
@${REINPLACE_CMD} 's/-lssl/-lcrypto/' \
${WRKSRC}/configure ${WRKSRC}/raop_play/Makefile.in
Expand Down
2 changes: 2 additions & 0 deletions audio/umodplayer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libaiff.a:audio/libaiff
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}

NOPIE_PORTS= yes

PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz

Expand Down
2 changes: 2 additions & 0 deletions audio/voipong/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ PORTDOCS= ALGORITHMS AUTHORS ChangeLog COPYING INSTALL KNOWN_BUGS \
LICENSE NEWS README THANKS TODO
MAKEFILE= Makefile.bsd

NOPIE_PORTS= yes

OPTIONS_DEFINE= DOCS

post-install-DOCS-on:
Expand Down
3 changes: 3 additions & 0 deletions audio/xmms-gbsplay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ USE_GCC= any

CONFIGURE_ARGS= --disable-nas

NOPIE_PORTS= yes
NORELRO_PORTS= yes

DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist

Expand Down
3 changes: 3 additions & 0 deletions audio/xmms-nas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static

NOPIE_PORTS= yes
NORELRO_PORTS= yes

PLIST_FILES= lib/xmms/Output/libnas.so

post-install:
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/gtkperf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ USES= gmake pkgconfig
GNU_CONFIGURE= yes
USE_GNOME= gtk20 gnomeprefix

NOPIE_PORTS= yes

OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes

Expand Down
2 changes: 2 additions & 0 deletions benchmarks/lmbench/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ USE_PERL5= run
SHEBANG_FILES= scripts/getresults
PLIST_SUB= LMBENCH_OS=${ARCH}-${OPSYS:tl}${OSREL}

NOPIE_PORTS= yes

test: build
@(cd ${WRKSRC}; make results)

Expand Down
2 changes: 2 additions & 0 deletions biology/diamond/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ USES= cmake:outsource compiler:c++11-lang

CFLAGS+= -DNDEBUG

NOPIE_PORTS= yes

USE_GITHUB= yes
GH_ACCOUNT= bbuchfink

Expand Down
3 changes: 3 additions & 0 deletions biology/mafft/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ INSTALL_WRKSRC= ${WRKSRC}/core

USES= gmake shebangfix tar:tgz

NOPIE_PORTS= yes
NORELRO_PORTS= yes

SHEBANG_FILES= core/*.tmpl

MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \
Expand Down
2 changes: 2 additions & 0 deletions biology/mopac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes

NOPIE_PORTS= yes

CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

Expand Down
2 changes: 2 additions & 0 deletions biology/ncbi-blast+/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ SHEBANG_FILES= src/app/blast/legacy_blast.pl \
src/app/blast/update_blastdb.pl \
src/app/winmasker/windowmasker_2.2.22_adapter.py

NOPIE_PORTS= yes

# Requires openmp
USE_GCC= yes
USE_LDCONFIG= yes
Expand Down
2 changes: 2 additions & 0 deletions biology/primer3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ MAKE_ARGS= CC="${CC}" CPP="${CXX}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
PLIST_FILES= bin/primer3

NOPIE_PORTS= yes

post-patch:
@${REINPLACE_CMD} \
-e 's#^CFLAGS.*#CFLAGS += \$$\(CC_OPTS\)#;' \
Expand Down
2 changes: 2 additions & 0 deletions biology/psi88/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ PORTEXAMPLES= *

OPTIONS_DEFINE= DOCS EXAMPLES

NOPIE_PORTS= yes

post-patch:
@${REINPLACE_CMD} -e 's/f77/$${FC}/' -e 's/LFLAGS/LDFLAGS/' \
${WRKSRC}/src/makefile
Expand Down
3 changes: 3 additions & 0 deletions biology/tinker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ EXTRACT_AFTER_ARGS=--exclude fftw --exclude windows --exclude macosx

SUB_FILES= pkg-message

NOPIE_PORTS= yes
NORELRO_PORTS= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOPTIMIZED_FFLAGS}
Expand Down
2 changes: 2 additions & 0 deletions cad/alliance/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ PKGMESSAGE= ${WRKDIR}/pkg-message

USES= bison gmake libtool motif

NOPIE_PORTS= yes

USE_GCC= any
HAS_CONFIGURE= yes
INSTALL_TARGET= install-strip
Expand Down
3 changes: 3 additions & 0 deletions cad/calculix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ USE_GCC= yes
USE_XORG= xmu
USE_GL= glut

NOPIE_PORTS= yes
NORELRO_PORTS= yes

BROWSER?= firefox
PSVIEWER?= gv

Expand Down
2 changes: 2 additions & 0 deletions cad/pdnmesh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ USE_GNOME= gtk20
GNU_CONFIGURE= yes
LDFLAGS+= -lm

NOPIE_PORTS= yes

DESKTOP_ENTRIES="pdnMesh" "${COMMENT}" "" "${PORTNAME}" "" true

ATLAS_USES= blaslapack:atlas
Expand Down
2 changes: 2 additions & 0 deletions comms/ebook2cw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ LIB_DEPENDS= libmp3lame.so:audio/lame \

OPTIONS_DEFINE= DOCS EXAMPLES

NOPIE_PORTS= yes

post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|'g \
${WRKSRC}/Makefile
Expand Down
2 changes: 2 additions & 0 deletions comms/ebook2cwgui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ RUN_DEPENDS= ebook2cw:comms/ebook2cw
USE_WX= 2.8
WX_UNICODE= yes

NOPIE_PORTS= yes

PORTDOCS= *

post-patch:
Expand Down
2 changes: 2 additions & 0 deletions comms/fl_moxgen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ LICENSE= GPLv3

LIB_DEPENDS= libfltk.so:x11-toolkits/fltk

NOPIE_PORTS= yes

DESKTOP_ENTRIES= "Fl_MoxGen" "${COMMENT}" "" "${PORTNAME}" \
"Network;HamRadio;" false

Expand Down
2 changes: 2 additions & 0 deletions comms/mlan3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ NO_WRKSUBDIR= yes
USES= dos2unix uidfix zip
DOS2UNIX_GLOB= *.c *.h

NOPIE_PORTS= yes

post-patch:
@${REINPLACE_CMD} -e '/int main/s/short argc/int argc/' \
${WRKSRC}/apps/gethumd/gethumd.c ${WRKSRC}/apps/shaapp/shaapp.c
Expand Down
2 changes: 2 additions & 0 deletions comms/nokryptia/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ LIBS+= -L${LOCALBASE}/lib

PLIST_FILES= bin/nokryptia man/man1/${PORTNAME}.1.gz

NOPIE_PORTS= yes

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions comms/sdr-wspr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ PLIST_FILES= bin/sdr-wspr share/applications/sdr-wspr.desktop \
share/icons/sdr-wspr.svg
CMAKE_ARGS= -DCMAKE_INSTALL_RPATH:STRING="${LOCALBASE}/lib/gcc${_GCC_VER}"

NOPIE_PORTS= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions comms/uartlirc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ PLIST_FILES+= ${KMODDIR}/${PORTNAME}.ko

CFLAGS+= ${DEBUG_FLAGS}

NOPIE_PORTS= yes
NORELRO_PORTS= yes

.include <bsd.port.options.mk>

.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
Expand Down
2 changes: 2 additions & 0 deletions databases/dbh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ INSTALL_TARGET= install-strip
OPTIONS_DEFINE= GTKDOC
GTKDOC_DESC= Enable GTK html documentation

NOPIE_PORTS= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGTKDOC}
Expand Down
2 changes: 2 additions & 0 deletions databases/firebird25-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ LICENSE_FILE_IPL= ${WRKSRC}/builds/install/misc/IPLicense.txt
LICENSE_PERMS_IDPL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_IPL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

NOPIE_PORTS= yes

LIB_DEPENDS= libicuuc.so:devel/icu

USES= gmake pkgconfig tar:bzip2
Expand Down
3 changes: 3 additions & 0 deletions databases/mongodb32-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ USE_GITHUB= yes
GH_ACCOUNT= mongodb
GH_PROJECT= mongo-tools

NOPIE_PORTS= yes
NORELRO_PORTS= yes

OPTIONS_DEFINE= SSL SASL
OPTIONS_DEFAULT= SSL

Expand Down
3 changes: 3 additions & 0 deletions databases/mysql57-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
SLAVEDIRS= databases/mysql57-client
USES= bison:build cmake:outsource compiler:c11 compiler:c++11-lib cpe libedit localbase perl5 shebangfix

NOPIE_PORTS= yes
NORELRO_PORTS= yes

USE_OPENSSL= yes
USE_PERL5= run

Expand Down
3 changes: 3 additions & 0 deletions databases/phpmyadmin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ BROKEN_powerpc64= Does not build
USES= cpe shebangfix tar:xz
CPE_PRODUCT= ${PORTNAME:tl}

NOPIE_PORTS= yes
NORELRO_PORTS= yes

NO_BUILD= yes
.if !defined(WITHOUT_PHP_DEPENDS)
IGNORE_WITH_PHP=5 54
Expand Down
3 changes: 3 additions & 0 deletions databases/postgis22/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_PERL5= build

NOPIE_PORTS= yes
NORELRO_PORTS= yes

OPTIONS_DEFINE= LOADERGUI RASTER TOPOLOGY SFCGAL ADDRSTD
OPTIONS_DEFAULT= TOPOLOGY ADDRSTD
NO_OPTIONS_SORT= yes
Expand Down
2 changes: 2 additions & 0 deletions databases/riak2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ SHEBANG_FILES= deps/eper/priv/bin/* \
USE_RC_SUBR= riak
USE_GCC= yes

NOPIE_PORTS= yes

BROKEN_i386= does not build

USERS= riak
Expand Down
2 changes: 2 additions & 0 deletions databases/rocksdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgflags.so:devel/gflags \
libsnappy.so:archivers/snappy

NOPIE_PORTS= yes

BROKEN_powerpc64= does not build

OPTIONS_DEFINE= DEBUG
Expand Down
2 changes: 2 additions & 0 deletions databases/tarantool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ DEBUG_DESC= Enable debug
NOT_FOR_ARCHS= sparc64
NOT_FOR_ARCHS_REASON= not yet ported to this architecture

NOPIE_PORTS= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
Expand Down
Loading

0 comments on commit 1b4cfac

Please sign in to comment.