diff --git a/Mk/Uses/gmake.mk b/Mk/Uses/gmake.mk index f39f3f685277..3aa9bae0efac 100644 --- a/Mk/Uses/gmake.mk +++ b/Mk/Uses/gmake.mk @@ -1,19 +1,19 @@ # Provide support to use the GNU make # # Feature: gmake # Usage: USES=gmake # # MAINTAINER: tijl@FreeBSD.org .if !defined(_INCLUDE_USES_GMAKE_MK) _INCLUDE_USES_GMAKE_MK= yes . if !empty(gmake_ARGS) IGNORE= Incorrect 'USES+= gmake:${gmake_ARGS}' gmake takes no arguments . endif -BUILD_DEPENDS+= gmake>=4.3:devel/gmake +BUILD_DEPENDS+= gmake>=4.4.1:devel/gmake CONFIGURE_ENV+= MAKE=gmake MAKE_CMD= gmake .endif diff --git a/audio/flite/files/patch-main_Makefile b/audio/flite/files/patch-main_Makefile index 765ab63ab3e8..a676495274d9 100644 --- a/audio/flite/files/patch-main_Makefile +++ b/audio/flite/files/patch-main_Makefile @@ -1,23 +1,32 @@ --- main/Makefile.orig 2017-10-21 14:01:07 UTC +++ main/Makefile -@@ -133,15 +133,15 @@ $(BINDIR)/flite_${VOICE}: flite_main.o flite_lang_list +@@ -49,7 +49,7 @@ ALL = shared_libs \ + $(BINDIR)/flite$(EXEEXT) \ + $(BINDIR)/t2p$(EXEEXT) $(BINDIR)/compile_regexes$(EXEEXT) \ + $(BINDIR)/flitevox_info$(EXEEXT) \ +- flite_voice_list.c each $(EXTRABINS) ++ each $(EXTRABINS) + + VOICES=$(VOXES) + VOICELIBS=$(VOICES:%=flite_%) +@@ -133,15 +133,15 @@ install: install: # The basic binaries - @ $(INSTALL) -m 755 $(BINDIR)/flite $(DESTDIR)$(INSTALLBINDIR) + @ $(INSTALL) -m 755 -s $(BINDIR)/flite $(INSTALLBINDIR) @ for i in $(VOICES) ; \ do \ - $(INSTALL) $(BINDIR)/flite_$$i $(DESTDIR)$(INSTALLBINDIR); \ + $(INSTALL) -s $(BINDIR)/flite_$$i $(INSTALLBINDIR); \ done - $(INSTALL) -m 755 $(BINDIR)/flite_time $(DESTDIR)$(INSTALLBINDIR) + $(INSTALL) -m 755 -s $(BINDIR)/flite_time $(INSTALLBINDIR) # The libraries: static and shared (if built) - cp -pd $(flite_LIBS_deps) $(DESTDIR)$(INSTALLLIBDIR) + cp -pR $(flite_LIBS_deps) $(INSTALLLIBDIR) ifdef SHFLAGS - cp -pd $(SHAREDLIBS) $(VERSIONSHAREDLIBS) $(DESTDIR)$(INSTALLLIBDIR) + cp -pR $(SHAREDLIBS) $(VERSIONSHAREDLIBS) $(INSTALLLIBDIR) endif diff --git a/devel/asmutils/Makefile b/devel/asmutils/Makefile index b71c1a1c3448..9b873ceb03eb 100644 --- a/devel/asmutils/Makefile +++ b/devel/asmutils/Makefile @@ -1,82 +1,83 @@ PORTNAME= asmutils PORTVERSION= 0.18 PORTREVISION= 10 CATEGORIES= devel MASTER_SITES= http://asm.sourceforge.net/asmutils/ MAINTAINER= ports@FreeBSD.org COMMENT= Set of Unix utilities written in x86 assembly language WWW= https://asm.sourceforge.net/ LICENSE= GPLv2 ONLY_FOR_ARCHS= i386 BUILD_DEPENDS= nasm:devel/nasm USES= gmake USE_GCC= yes MAKE_ARGS= OS="${OPSYS:tu}" KERNEL="${OSREL:S/.//g}" CC="${CC}" LD="${LD}" +MAKE_JOBS_UNSAFE=yes # This will play merry hell with portlint(1) BINARIES= bonus/asmutils basename cal cat chmod chown chroot cmp cp \ cpuinfo cut date dc dd deflate dirname du echo env \ bonus/execve extname factor fromdos ftpd getty grep head \ hexdump host hostname httpd id idea init kill kldload less \ ln ls lzss m_inetd md5 md5sum mkdir mknod mount mv nc \ netstat nice nm nohup od paste ping pop3d proxy pwd rc6crypt \ readelf readkey readlink reboot renice bonus/report rm \ rmdsum rot13 scan scons sh sha1sum sleep strings sync tail \ tar tee telnet telnetd test touch tr true uname uuencode \ watch wc wget which whoami write yes LINKS= arch cpuspeed domainname false halt inflate kldstat kldunload \ mkfifo more poweroff regs rmdir size sln todos umount usleep LIBRARIES= libc.so.0 libcrypto.so.0 libm.so.0 PLIST_FILES= ${BINARIES:S/^/bin\/asmutils\//:S/bonus\///} \ ${LINKS:S/^/bin\/asmutils\//} ${LIBRARIES:S/^/lib\/asmutils\//} PORTDOCS= * OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's,^static ,,' ${WRKSRC}/lib/libm.c # Stripping binaries will break installation STRIP= # do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/bin/asmutils \ ${STAGEDIR}${PREFIX}/lib/asmutils ${INSTALL_PROGRAM} ${BINARIES:S,^,${WRKSRC}/src/,} \ ${STAGEDIR}${PREFIX}/bin/asmutils ${INSTALL_PROGRAM} ${LIBRARIES:S,^,${WRKSRC}/lib/,} \ ${STAGEDIR}${PREFIX}/lib/asmutils (cd ${STAGEDIR}${PREFIX}/bin/asmutils && \ ${LN} -sf uname arch && \ ${LN} -sf cpuinfo cpuspeed && \ ${LN} -sf hostname domainname && \ ${LN} -sf true false && \ ${LN} -sf reboot halt && \ ${LN} -sf deflate inflate && \ ${LN} -sf kldload kldstat && \ ${LN} -sf kldload kldunload && \ ${LN} -sf mknod mkfifo && \ ${LN} -sf less more && \ ${LN} -sf reboot poweroff && \ ${LN} -sf execve regs && \ ${LN} -sf mkdir rmdir && \ ${LN} -sf nm size && \ ${LN} -sf ln sln && \ ${LN} -sf fromdos todos && \ ${LN} -sf mount umount && \ ${LN} -sf sleep usleep) do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/[^i]* ${STAGEDIR}${DOCSDIR} ${LN} -sf Asmutils-HOWTO.html ${STAGEDIR}/${DOCSDIR}/index.html .include diff --git a/devel/cscout/files/patch-src_Makefile b/devel/cscout/files/patch-src_Makefile index fc6f895da842..b7b35e70f642 100644 --- a/devel/cscout/files/patch-src_Makefile +++ b/devel/cscout/files/patch-src_Makefile @@ -1,27 +1,45 @@ --- src/Makefile.orig 2019-11-04 16:42:35 UTC +++ src/Makefile -@@ -207,12 +207,13 @@ mkerr: +@@ -153,7 +153,7 @@ build/%.o: %.cpp + + # Dependency generation rules + # See https://www.gnu.org/software/make/manual/html_node/Automatic-Prerequisites.html +-dep/%.d: %.cpp ++dep/%.d: %.cpp parse.tab.h + @set -e; rm -f $@; \ + mkdir -p dep ; \ + $(CXX) -MM $(CPPFLAGS) $< > $@.$$$$; \ +@@ -167,6 +167,8 @@ dep/%.d: %.c + sed 's,\($*\)\.o[ :]*,build/\1.o $@ : ,g' < $@.$$$$ > $@; \ + rm -f $@.$$$$ + ++dep/html.d: css.c ++ + # Serialize execution order to ensure the dependencies are built before + # compiling the object files in make -j invocations + all: +@@ -207,12 +209,13 @@ mkerr: # This ensures that the version.cpp is regenerated iff its SHA doesn't # match the current one. -ifneq ($(shell sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp), $(shell git log -n 1 --format='%H' || sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp)) +# Without git available, we will just generate a semi-static version.cpp +#ifneq ($(shell sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp), $(shell git log -n 1 --format='%H' || sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp)) version.cpp: sh make-version.sh >$@ -.PHONY: version.cpp -endif +#.PHONY: version.cpp +#endif test: -@@ -264,6 +265,7 @@ obfuscation: +@@ -264,6 +267,7 @@ install: build/cscout ) install: build/cscout + install -d "${INSTALL_PREFIX}/bin" install -Ds $< "$(INSTALL_PREFIX)/bin/cscout" ./dest-install.sh "$(INSTALL_PREFIX)" diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 33253514ffd2..029f36d86653 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -1,195 +1,195 @@ PORTNAME= gdb DISTVERSION= 14.1 PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= GNU MAINTAINER= pizzamig@FreeBSD.org COMMENT= GNU Project Debugger WWW= https://www.gnu.org/software/gdb/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING3 LIB_DEPENDS= libexpat.so:textproc/expat2 \ libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libzstd.so:archivers/zstd TEST_DEPENDS= runtest:misc/dejagnu USES= compiler:c++11-lang cpe gmake libtool makeinfo pkgconfig tar:xz USE_PYTHON= flavors py3kplist TEST_TARGET= check CPE_VENDOR= gnu GNU_CONFIGURE= yes CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc CONFIGURE_ARGS= --program-suffix=${VER} \ --disable-sim \ --enable-targets=all --enable-64-bit-bfd \ --with-separate-debug-dir=/usr/lib/debug \ --with-additional-debug-dirs=${LOCALBASE}/lib/debug \ ${ICONV_CONFIGURE_ARG} \ --without-libunwind-ia64 CONFIGURE_OUTSOURCE= yes CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes CFLAGS+= -DRL_NO_COMPAT EXCLUDE= dejagnu expect texinfo intl EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /} VER= ${DISTVERSION:S/.//g} PLIST_SUB= VER=${VER} OPTIONS_DEFINE= DEBUGINFOD GDB_LINK GUILE KGDB NLS PYTHON \ SOURCE_HIGHLIGHT TUI XXHASH OPTIONS_DEFAULT= GDB_LINK KGDB NLS PYTHON SOURCE_HIGHLIGHT \ TUI XXHASH OPTIONS_DEFAULT+= PORT_READLINE PORT_ICONV SYSTEM_ZLIB OPTIONS_SINGLE= READLINE ICONV ZLIB OPTIONS_SINGLE_READLINE= BUNDLED_READLINE PORT_READLINE OPTIONS_SINGLE_ICONV= PORT_ICONV SYSTEM_ICONV OPTIONS_SINGLE_ZLIB= BUNDLED_ZLIB SYSTEM_ZLIB DEBUGINFOD_DESC= Build gdb with debuginfod server support GDB_LINK_DESC= Create ${PREFIX}/bin/gdb symlink KGDB_DESC= Kernel debugging support BUNDLED_READLINE_DESC= from gdb distfile BUNDLED_ZLIB_DESC= from gdb distfile PORT_READLINE_DESC= from devel/readline port PORT_ICONV_DESC= use libiconv, with wider charset support SOURCE_HIGHLIGHT_DESC= Syntax highlighting support SYSTEM_ICONV_DESC= use libc iconv, with no wchar support SYSTEM_ZLIB_DESC= use system zlib TUI_DESC= Text User Interface support XXHASH_DESC= Use xxHash for hashing (faster) OPTIONS_SUB= yes BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline DEBUGINFOD_CONFIGURE_WITH= debuginfod DEBUGINFOD_LIB_DEPENDS= libdebuginfod.so:devel/elfutils GUILE_CONFIGURE_WITH= guile=guile-${GUILE_VER} GUILE_USES= guile:2.2,3.0 NLS_USES= gettext-runtime PORT_READLINE_USES= readline PORT_ICONV_USES= iconv:wchar_t PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD} PYTHON_CONFIGURE_OFF= --without-python PYTHON_USES= python SOURCE_HIGHLIGHT_CONFIGURE_ENABLE= source-highlight SOURCE_HIGHLIGHT_LIB_DEPENDS= \ libsource-highlight.so:textproc/source-highlight SYSTEM_ICONV_USES= iconv SYSTEM_ZLIB_CONFIGURE_WITH= system-zlib TUI_CONFIGURE_ENABLE= tui XXHASH_CONFIGURE_OFF= --with-xxhash=no XXHASH_LIB_DEPENDS= libxxhash.so:devel/xxhash ALL_TARGET= all-gdb .include .if ${PORT_OPTIONS:MPYTHON} .if ${PYTHON_VER} != ${PYTHON_DEFAULT} PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} .endif .endif .if ${PORT_OPTIONS:MPYTHON} && \ (exists(/usr/lib/libc++.so.1) || exists(/lib/libc++.so.1)) USE_GITHUB= nodefault GH_ACCOUNT= bsdjhb:libcxx GH_PROJECT= libcxx-gdbpy:libcxx GH_TAGNAME= 03d0d9b:libcxx # Workaround USE_GITHUB preventing the default DISTFILES DISTFILES= ${DISTNAME}${EXTRACT_SUFX} .if exists(/usr/lib/libc++.so.1) LIBCXX_DIR= /usr/lib .else LIBCXX_DIR= /lib .endif PLIST_SUB+= LIBCXX_DIR="${LIBCXX_DIR}" PLIST_SUB+= LIBCXX="" .else PLIST_SUB+= LIBCXX="@comment " .endif .if ! ${PORT_OPTIONS:MBUNDLED_ZLIB} EXCLUDE+= zlib .endif .if ${ARCH} == amd64 CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} .endif post-patch: @${REINPLACE_CMD} -e 's|$$| [GDB v${DISTVERSION} for FreeBSD]|' \ ${WRKSRC}/gdb/version.in post-patch-KGDB-on: @${CP} -r ${FILESDIR}/kgdb/*.[ch] ${WRKSRC}/gdb/ @${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${FILESDIR}/extrapatch-kgdb do-install: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gdb/gdb \ ${STAGEDIR}${PREFIX}/bin/gdb${VER} ${INSTALL_MAN} ${WRKSRC}/gdb/doc/gdb.1 \ ${STAGEDIR}${PREFIX}/share/man/man1/gdb${VER}.1 - (cd ${INSTALL_WRKSRC}/gdb/data-directory ; \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-syscalls ) + (cd ${INSTALL_WRKSRC}/gdb/data-directory ; ${SETENVI} ${WRK_ENV} \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-syscalls ) do-install-KGDB-on: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gdb/kgdb \ ${STAGEDIR}${PREFIX}/bin/kgdb${VER} ${INSTALL_MAN} ${FILESDIR}/kgdb/kgdb.1 \ ${STAGEDIR}${PREFIX}/share/man/man1/kgdb${VER}.1 do-install-TUI-on: ${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdbtui${VER} do-install-GDB_LINK-on: ${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdb ${LN} -sf gdb${VER}.1 ${STAGEDIR}${PREFIX}/share/man/man1/gdb.1 .if ${PORT_OPTIONS:MKGDB} ${LN} -sf kgdb${VER} ${STAGEDIR}${PREFIX}/bin/kgdb ${LN} -sf kgdb${VER}.1 ${STAGEDIR}${PREFIX}/share/man/man1/kgdb.1 .endif do-install-PYTHON-on: - (cd ${INSTALL_WRKSRC}/gdb ; \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-python ) - (cd ${INSTALL_WRKSRC}/gdb/data-directory ; \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-python ) + (cd ${INSTALL_WRKSRC}/gdb ; ${SETENVI} ${WRK_ENV} \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-python ) + (cd ${INSTALL_WRKSRC}/gdb/data-directory ; ${SETENVI} ${WRK_ENV} \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-python ) @(cd ${STAGEDIR}${PREFIX}/share/gdb/python && \ ${PYTHON_CMD} -m compileall .) . for f in gdb gdb/command gdb/function gdb/printer @(cd ${STAGEDIR}${PREFIX}/share/gdb/python/${f} ; ${CHMOD} 644 *.py* ) . endfor .if exists(/usr/lib/libc++.so.1) || exists(/lib/libc++.so.1) - @(cd ${WRKSRC_libcxx} ; \ - ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} \ + @(cd ${WRKSRC_libcxx} ; ${SETENVI} ${WRK_ENV} \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} \ LIBCXX_DIR="${LIBCXX_DIR}" install ) @(cd ${STAGEDIR}${PREFIX}/share/gdb/auto-load/${LIBCXX_DIR} && \ ${PYTHON_CMD} -m compileall .) @(cd ${STAGEDIR}${PREFIX}/share/libcxx-gdbpy/libcxx && \ ${PYTHON_CMD} -m compileall .) .endif # DO NOT try and add rules here to strip .go files, no matter how loudly # testport / stage-qa shouts at you about it, because .go files (which are # compiled bytecode) are not intended to be stripped and doing so causes # breakage at run time. do-install-GUILE-on: - (cd ${INSTALL_WRKSRC}/gdb ; \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-guile ) - (cd ${INSTALL_WRKSRC}/gdb/data-directory ; \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-guile ) + (cd ${INSTALL_WRKSRC}/gdb ; ${SETENVI} ${WRK_ENV} \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-guile ) + (cd ${INSTALL_WRKSRC}/gdb/data-directory ; ${SETENVI} ${WRK_ENV} \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-guile ) .include diff --git a/devel/gmake/Makefile b/devel/gmake/Makefile index 29169978d109..f0c981b4b221 100644 --- a/devel/gmake/Makefile +++ b/devel/gmake/Makefile @@ -1,35 +1,33 @@ -PORTNAME= gmake -PORTVERSION= 4.3 -PORTREVISION= 3 +PORTNAME= make +DISTVERSION= 4.4.1 CATEGORIES= devel -MASTER_SITES= GNU/make -DISTNAME= make-${PORTVERSION} +MASTER_SITES= GNU +PKGNAMEPREFIX= g # note: before committing to this port, contact portmgr to arrange for an # experimental ports run. Untested commits may be backed out at portmgr's # discretion. MAINTAINER= tijl@FreeBSD.org COMMENT= GNU version of 'make' utility WWW= https://www.gnu.org/software/make/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING +USES= cpe tar:lz +CPE_VENDOR= gnu + GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --program-prefix=g \ --without-guile -USES= cpe tar:lz -CPE_VENDOR= gnu -CPE_PRODUCT= make +INFO= make OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext-runtime NLS_CONFIGURE_ENABLE= nls -INFO= make - .include diff --git a/devel/gmake/distinfo b/devel/gmake/distinfo index b8f83469ce24..76567dedc173 100644 --- a/devel/gmake/distinfo +++ b/devel/gmake/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1587222848 -SHA256 (make-4.3.tar.lz) = de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82 -SIZE (make-4.3.tar.lz) = 1266180 +TIMESTAMP = 1687757277 +SHA256 (make-4.4.1.tar.lz) = 8814ba072182b605d156d7589c19a43b89fc58ea479b9355146160946f8cf6e9 +SIZE (make-4.4.1.tar.lz) = 1305648 diff --git a/devel/gmake/files/patch-10-6e6abd0c b/devel/gmake/files/patch-10-6e6abd0c deleted file mode 100644 index 9e0f1e22caa8..000000000000 --- a/devel/gmake/files/patch-10-6e6abd0c +++ /dev/null @@ -1,127 +0,0 @@ -From: Bruno Haible -Date: Sat, 23 May 2020 10:19:34 +0000 (+0200) -Subject: findprog-in: Ignore directories. -X-Git-Url: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff_plain;h=6e6abd0cdfe4bb96f6412aebc511f10bf254a820 - -findprog-in: Ignore directories. - -Reported by Frederick Eaton via Dmitry Goncharov in -. - -* lib/findprog-in.c (find_in_given_path): When the file found is a -directory, set errno to EACCES and, during a PATH search, continue -searching. -* modules/findprog-in (Depends-on): Add sys_stat, stat. ---- - -diff --git a/lib/findprog-in.c b/lib/findprog-in.c -index c254f2f..0f76e36 100644 ---- lib/findprog-in.c -+++ lib/findprog-in.c -@@ -26,6 +26,7 @@ - #include - #include - #include -+#include - - #include "filename.h" - #include "concat-filename.h" -@@ -58,8 +59,8 @@ static const char * const suffixes[] = - /* Note: The cmd.exe program does a different lookup: It searches according - to the PATHEXT environment variable. - See . -- Also, it executes files ending .bat and .cmd directly without letting the -- kernel interpret the program file. */ -+ Also, it executes files ending in .bat and .cmd directly without letting -+ the kernel interpret the program file. */ - #elif defined __CYGWIN__ - "", ".exe", ".com" - #elif defined __EMX__ -@@ -136,14 +137,26 @@ find_in_given_path (const char *progname, const char *path, - call access() despite its design flaw. */ - if (eaccess (progpathname, X_OK) == 0) - { -- /* Found! */ -- if (strcmp (progpathname, progname) == 0) -+ /* Check that the progpathname does not point to a -+ directory. */ -+ struct stat statbuf; -+ -+ if (stat (progpathname, &statbuf) >= 0) - { -- free (progpathname); -- return progname; -+ if (! S_ISDIR (statbuf.st_mode)) -+ { -+ /* Found! */ -+ if (strcmp (progpathname, progname) == 0) -+ { -+ free (progpathname); -+ return progname; -+ } -+ else -+ return progpathname; -+ } -+ -+ errno = EACCES; - } -- else -- return progpathname; - } - - if (errno != ENOENT) -@@ -210,25 +223,37 @@ find_in_given_path (const char *progname, const char *path, - call access() despite its design flaw. */ - if (eaccess (progpathname, X_OK) == 0) - { -- /* Found! */ -- if (strcmp (progpathname, progname) == 0) -+ /* Check that the progpathname does not point to a -+ directory. */ -+ struct stat statbuf; -+ -+ if (stat (progpathname, &statbuf) >= 0) - { -- free (progpathname); -- -- /* Add the "./" prefix for real, that -- xconcatenated_filename() optimized away. This -- avoids a second PATH search when the caller uses -- execl/execv/execlp/execvp. */ -- progpathname = -- XNMALLOC (2 + strlen (progname) + 1, char); -- progpathname[0] = '.'; -- progpathname[1] = NATIVE_SLASH; -- memcpy (progpathname + 2, progname, -- strlen (progname) + 1); -- } -+ if (! S_ISDIR (statbuf.st_mode)) -+ { -+ /* Found! */ -+ if (strcmp (progpathname, progname) == 0) -+ { -+ free (progpathname); -+ -+ /* Add the "./" prefix for real, that -+ xconcatenated_filename() optimized away. -+ This avoids a second PATH search when the -+ caller uses execl/execv/execlp/execvp. */ -+ progpathname = -+ XNMALLOC (2 + strlen (progname) + 1, char); -+ progpathname[0] = '.'; -+ progpathname[1] = NATIVE_SLASH; -+ memcpy (progpathname + 2, progname, -+ strlen (progname) + 1); -+ } -+ -+ free (path_copy); -+ return progpathname; -+ } - -- free (path_copy); -- return progpathname; -+ errno = EACCES; -+ } - } - - if (errno != ENOENT) diff --git a/devel/gmake/files/patch-configure b/devel/gmake/files/patch-configure new file mode 100644 index 000000000000..c8beba7802ea --- /dev/null +++ b/devel/gmake/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2023-02-26 18:46:38 UTC ++++ configure +@@ -6741,7 +6741,7 @@ fi + + + +-printf "%s\n" "#define MAKE_CXX \"$CXX\"" >>confdefs.h ++printf "%s\n" "#define MAKE_CXX \"c++\"" >>confdefs.h + + + # Configure gnulib diff --git a/devel/gmake/files/patch-lib-glob.c b/devel/gmake/files/patch-lib-glob.c deleted file mode 100644 index a51d38144d88..000000000000 --- a/devel/gmake/files/patch-lib-glob.c +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/glob.c.orig 2020-01-03 07:11:27 UTC -+++ lib/glob.c -@@ -203,7 +203,6 @@ my_realloc (p, n) - return (char *) malloc (n); - return (char *) realloc (p, n); - } --# define realloc my_realloc - # endif /* __SASC */ - #endif /* __GNU_LIBRARY__ || __DJGPP__ */ - diff --git a/devel/gmake/files/patch-src-default.c b/devel/gmake/files/patch-src-default.c deleted file mode 100644 index df78eb415b2e..000000000000 --- a/devel/gmake/files/patch-src-default.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/default.c.orig 2020-01-03 07:11:27 UTC -+++ src/default.c -@@ -530,7 +530,7 @@ static const char *default_variables[] = - "OBJC", "gcc", - #else - "CC", "cc", -- "CXX", "g++", -+ "CXX", "c++", - "OBJC", "cc", - #endif - diff --git a/devel/gmake/files/patch-src-makeint.h b/devel/gmake/files/patch-src-makeint.h deleted file mode 100644 index 0bf6dad2f146..000000000000 --- a/devel/gmake/files/patch-src-makeint.h +++ /dev/null @@ -1,10 +0,0 @@ ---- src/makeint.h.orig 2020-01-19 20:32:59 UTC -+++ src/makeint.h -@@ -116,7 +116,6 @@ extern int errno; - - /* Some systems define _POSIX_VERSION but are not really POSIX.1. */ - #if (defined (butterfly) || defined (__arm) || (defined (__mips) && defined (_SYSTYPE_SVR3)) || (defined (sequent) && defined (i386))) --# undef POSIX - #endif - - #if !defined (POSIX) && defined (_AIX) && defined (_POSIX_SOURCE) diff --git a/devel/gmake/pkg-plist b/devel/gmake/pkg-plist index 7979f4a46ae9..0bd0d215c14f 100644 --- a/devel/gmake/pkg-plist +++ b/devel/gmake/pkg-plist @@ -1,32 +1,33 @@ bin/gmake include/gnumake.h %%NLS%%share/locale/be/LC_MESSAGES/make.mo %%NLS%%share/locale/bg/LC_MESSAGES/make.mo %%NLS%%share/locale/cs/LC_MESSAGES/make.mo %%NLS%%share/locale/da/LC_MESSAGES/make.mo %%NLS%%share/locale/de/LC_MESSAGES/make.mo %%NLS%%share/locale/es/LC_MESSAGES/make.mo %%NLS%%share/locale/fi/LC_MESSAGES/make.mo %%NLS%%share/locale/fr/LC_MESSAGES/make.mo %%NLS%%share/locale/ga/LC_MESSAGES/make.mo %%NLS%%share/locale/gl/LC_MESSAGES/make.mo %%NLS%%share/locale/he/LC_MESSAGES/make.mo %%NLS%%share/locale/hr/LC_MESSAGES/make.mo %%NLS%%share/locale/id/LC_MESSAGES/make.mo %%NLS%%share/locale/it/LC_MESSAGES/make.mo %%NLS%%share/locale/ja/LC_MESSAGES/make.mo %%NLS%%share/locale/ko/LC_MESSAGES/make.mo %%NLS%%share/locale/lt/LC_MESSAGES/make.mo %%NLS%%share/locale/nl/LC_MESSAGES/make.mo %%NLS%%share/locale/pl/LC_MESSAGES/make.mo %%NLS%%share/locale/pt/LC_MESSAGES/make.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/make.mo +%%NLS%%share/locale/ro/LC_MESSAGES/make.mo %%NLS%%share/locale/ru/LC_MESSAGES/make.mo %%NLS%%share/locale/sr/LC_MESSAGES/make.mo %%NLS%%share/locale/sv/LC_MESSAGES/make.mo %%NLS%%share/locale/tr/LC_MESSAGES/make.mo %%NLS%%share/locale/uk/LC_MESSAGES/make.mo %%NLS%%share/locale/vi/LC_MESSAGES/make.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/make.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/make.mo share/man/man1/gmake.1.gz diff --git a/games/jfsw/files/patch-jfaudiolib_Makefile.shared b/games/jfsw/files/patch-jfaudiolib_Makefile.shared new file mode 100644 index 000000000000..48cb6b11cf2f --- /dev/null +++ b/games/jfsw/files/patch-jfaudiolib_Makefile.shared @@ -0,0 +1,17 @@ +--- jfaudiolib/Makefile.shared.orig 2021-12-25 07:53:32 UTC ++++ jfaudiolib/Makefile.shared +@@ -7,8 +7,12 @@ JFAUDIOLIB_LDFLAGS= + JFAUDIOLIB=libjfaudiolib.a + JFAUDIOLIB_LDFLAGS= + +-SDL2CONFIG?=$(shell which sdl2-config || which false) +-PKGCONFIG?=$(shell which pkg-config || which false) ++ifndef SDL2CONFIG ++SDL2CONFIG!=which sdl2-config || which false ++endif ++ifndef PKGCONFIG ++PKGCONFIG!=which pkg-config || which false ++endif + + machine=$(strip $(shell $(CC) -dumpmachine)) + diff --git a/games/jfsw/files/patch-jfbuild_Makefile.shared b/games/jfsw/files/patch-jfbuild_Makefile.shared new file mode 100644 index 000000000000..98f7d6f53b72 --- /dev/null +++ b/games/jfsw/files/patch-jfbuild_Makefile.shared @@ -0,0 +1,17 @@ +--- jfbuild/Makefile.shared.orig 2021-12-09 08:50:13 UTC ++++ jfbuild/Makefile.shared +@@ -3,8 +3,12 @@ EDITORLIB=src/libbuild.a + ENGINELIB=src/libengine.a + EDITORLIB=src/libbuild.a + +-SDL2CONFIG?=$(shell which sdl2-config || which false) +-PKGCONFIG?=$(shell which pkg-config || which false) ++ifndef SDL2CONFIG ++SDL2CONFIG!=which sdl2-config || which false ++endif ++ifndef PKGCONFIG ++PKGCONFIG!=which pkg-config || which false ++endif + export SDL2CONFIG PKGCONFIG + + # Path to the included libsquish diff --git a/graphics/dynamechs/Makefile b/graphics/dynamechs/Makefile index b2e137d0647c..64597f436b12 100644 --- a/graphics/dynamechs/Makefile +++ b/graphics/dynamechs/Makefile @@ -1,43 +1,43 @@ PORTNAME= dynamechs PORTVERSION= 4.0.p1 PORTREVISION= 9 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/4.0pre1 DISTNAME= ${PORTNAME}_${PORTVERSION:S/.p/pre/} MAINTAINER= ports@FreeBSD.org COMMENT= Multibody Dynamic Simulation Library WWW= https://dynamechs.sourceforge.net/ USES= gl gmake perl5 shebangfix tar:bzip2 USE_CXXSTD= c++14 USE_GL= glut USE_LDCONFIG= yes USE_PERL5= build SHEBANG_FILES= make/*.pl MAKE_ENV= OPENGLINCDIR="${LOCALBASE}/include" \ OPENGLLIBDIR="${LOCALBASE}/lib" - +MAKE_JOBS_UNSAFE=yes ALL_TARGET= freebsd post-patch: @${REINPLACE_CMD} -e \ 's|.SILENT:||' ${WRKSRC}/Makefile do-configure: @${CP} -f ${FILESDIR}/make.platform.freebsd ${WRKSRC}/make/ do-install: .for dir in dm dmu dmGL @${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}/${dir} (cd ${WRKSRC}/${dir} && ${FIND} . -name "*.h" -or -name "*.hpp" | \ ${XARGS} -J % ${INSTALL_DATA} % \ ${STAGEDIR}${PREFIX}/include/${PORTNAME}/${dir}) (cd ${WRKSRC}/lib/platform.freebsd && ${INSTALL_LIB} lib${dir}.so \ ${STAGEDIR}${PREFIX}/lib) .endfor .include diff --git a/math/apron/files/patch-apron_Makefile b/math/apron/files/patch-apron_Makefile new file mode 100644 index 000000000000..215bd570ed06 --- /dev/null +++ b/math/apron/files/patch-apron_Makefile @@ -0,0 +1,11 @@ +--- apron/Makefile.orig 2020-09-11 15:30:57 UTC ++++ apron/Makefile +@@ -163,7 +163,7 @@ ap_version.h: ../version.mk + echo "#define AP_VERSION \"${VERSION_STR}\"" >> $@ + echo "#endif" >> $@ + +-.PHONY : dep depend ++.PHONY : dep + + #-------------------------------------------------------------- + # IMPLICIT RULES AND DEPENDENCIES diff --git a/math/cado-nfs/Makefile b/math/cado-nfs/Makefile index 623b3bb4d7ad..f0ffd582f39d 100644 --- a/math/cado-nfs/Makefile +++ b/math/cado-nfs/Makefile @@ -1,46 +1,45 @@ PORTNAME= cado-nfs DISTVERSIONPREFIX= v DISTVERSION= 2.3.0-20220722 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Implementation of the Number Field Sieve Algorithm WWW= https://cado-nfs.gitlabpages.inria.fr/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING CONFLICTS_BUILD= libfmt # bundled libfmt conflicts with package-installed headers BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ - bash:shells/bash \ - gmake:devel/gmake + bash:shells/bash LIB_DEPENDS= libecm.so:math/gmp-ecm \ libgf2x.so:math/gf2x \ libgmp.so:math/gmp \ libhwloc.so:devel/hwloc2 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} -USES= cmake:noninja compiler:c++11-lang perl5 python shebangfix # noninja because: bad $-escape (literal $ must be written as $$) +USES= cmake:noninja compiler:c++11-lang gmake perl5 python shebangfix # noninja because: bad $-escape (literal $ must be written as $$) USE_GITLAB= yes GL_SITE= https://gitlab.inria.fr GL_TAGNAME= 3ab6a4781fa5d218ed332834809ba6c6fd1a591f SHEBANG_GLOB= *.py CXXFLAGS_i386= -msse2 # workaround for error: always_inline function '_mm_setzero_si128' requires target feature 'sse2', but would be inlined into function 'gf2x_mul4' that is compiled without support for 'sse2' TEST_TARGET= check # 'test' does the same but is less verbose -BINARY_ALIAS= python3=${PYTHON_CMD} make=${GMAKE} +BINARY_ALIAS= python3=${PYTHON_CMD} .include .if ${ARCH} == amd64 PLIST_SUB= LINGEN_PZ="" .else PLIST_SUB= LINGEN_PZ="@comment " .endif .include diff --git a/net/delegate/Makefile b/net/delegate/Makefile index 52b2d3ce9261..4285c709eb56 100644 --- a/net/delegate/Makefile +++ b/net/delegate/Makefile @@ -1,60 +1,61 @@ PORTNAME= delegate PORTVERSION= 9.9.13 PORTREVISION= 3 CATEGORIES= net www MASTER_SITES= http://www.delegate.org/anonftp/DeleGate/ DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= portmaster@BSDforge.com COMMENT= General purpose TCP/IP proxy system WWW= http://www.delegate.org/delegate/ LICENSE= AIST LICENSE_NAME= aist LICENSE_FILE= ${WRKSRC}/LICENSE.txt LICENSE_PERMS= dist-mirror pkg-mirror auto-accept BROKEN_mips= fails to build: gmake[1]: [Makefile:116: mkmake.exe] Error 1 BROKEN_mips64= fails to build: gmake[1]: [Makefile:116: mkmake.exe] Error 1 USES= compiler:c11 cpe gmake SUB_FILES= pkg-message ADMIN?= admin@example.com CFLAGS+= -x c++ -std=gnu++98 +MAKE_JOBS_UNSAFE=yes PLIST_FILES= sbin/delegated etc/rc.d/delegated.sh-dist PORTDOCS= CHANGES COPYRIGHT HowToDG.html IPv6NOTE.txt \ Manual.htm jpconv.htm tutor-en.htm tutor-jp.htm OPTIONS_DEFINE= DOCS post-extract: @${LN} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT \ ${WRKSRC}/IPv6NOTE.txt ${WRKSRC}/doc post-patch: # Prevent "filesystem was touched prior to 'make install' phase" warning; # allow unattended (non-interactive) builds @${REINPLACE_CMD} -e 's,"$$(XDG)",& DGROOT=${WRKDIR},' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -E '/ADMIN/s,undef,${ADMIN}, ; \ s,-F(esign|ver),& DGROOT=${WRKDIR},' ${WRKSRC}/src/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${STAGEDIR}${PREFIX}/sbin ${INSTALL_SCRIPT} ${FILESDIR}/delegated.sh \ ${STAGEDIR}${PREFIX}/etc/rc.d/delegated.sh-dist # Re-sign the executable @${MKDIR} ${WRKDIR}/tmp @${CP} ${STAGEDIR}${PREFIX}/sbin/delegated ${WRKDIR}/tmp/dg @${CHMOD} +w ${STAGEDIR}${PREFIX}/sbin/delegated @${WRKDIR}/tmp/dg DGROOT=${WRKDIR}/tmp/ -Fesign -w ${STAGEDIR}${PREFIX}/sbin/delegated @${CHMOD} -w ${STAGEDIR}${PREFIX}/sbin/delegated do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR} .include diff --git a/security/sslproxy/files/patch-Mk_main.mk b/security/sslproxy/files/patch-Mk_main.mk new file mode 100644 index 000000000000..70b4b18cbc84 --- /dev/null +++ b/security/sslproxy/files/patch-Mk_main.mk @@ -0,0 +1,51 @@ +--- Mk/main.mk.orig 2022-12-26 01:44:45 UTC ++++ Mk/main.mk +@@ -302,11 +302,13 @@ endif + && echo sqlite3) + endif + endif ++PKGS:= $(PKGS) + TPKGS:= + ifndef CHECK_BASE + TPKGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --exists check \ + && echo check) + endif ++TPKGS:= $(TPKGS) + + # Function: Generate list of base paths to search when locating packages + # $1 packagename +@@ -422,18 +424,24 @@ ifneq (,$(strip $(PKGS))) + endif + + ifneq (,$(strip $(PKGS))) +-PKG_CFLAGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --cflags-only-other $(PKGS)) +-PKG_CPPFLAGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --cflags-only-I $(PKGS)) +-PKG_LDFLAGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --libs-only-L \ +- --libs-only-other $(PKGS)) +-PKG_LIBS+= $(shell $(PKGCONFIG) $(PCFLAGS) --libs-only-l $(PKGS)) ++PKGS_CFLAGS!= $(PKGCONFIG) $(PCFLAGS) --cflags-only-other $(PKGS) ++PKG_CFLAGS+= $(PKGS_CFLAGS) ++PKGS_CPPFLAGS!= $(PKGCONFIG) $(PCFLAGS) --cflags-only-I $(PKGS) ++PKG_CPPFLAGS+= $(PKGS_CPPFLAGS) ++PKGS_LDFLAGS!= $(PKGCONFIG) $(PCFLAGS) --libs-only-L --libs-only-other $(PKGS) ++PKG_LDFLAGS+= $(PKGS_LDFLAGS) ++PKGS_LIBS!= $(PKGCONFIG) $(PCFLAGS) --libs-only-l $(PKGS) ++PKG_LIBS+= $(PKGS_LIBS) + endif + ifneq (,$(strip $(TPKGS))) +-TPKG_CFLAGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --cflags-only-other $(TPKGS)) +-TPKG_CPPFLAGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --cflags-only-I $(TPKGS)) +-TPKG_LDFLAGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --libs-only-L \ +- --libs-only-other $(TPKGS)) +-TPKG_LIBS+= $(shell $(PKGCONFIG) $(PCFLAGS) --libs-only-l $(TPKGS)) ++TPKGS_CFLAGS!= $(PKGCONFIG) $(PCFLAGS) --cflags-only-other $(TPKGS) ++TPKG_CFLAGS+= $(TPKGS_CFLAGS) ++TPKGS_CPPFLAGS!=$(PKGCONFIG) $(PCFLAGS) --cflags-only-I $(TPKGS) ++TPKG_CPPFLAGS+=$(TPKGS_CPPFLAGS) ++TPKGS_LDFLAGS!= $(PKGCONFIG) $(PCFLAGS) --libs-only-L --libs-only-other $(TPKGS) ++TPKG_LDFLAGS+= $(TPKGS_LDFLAGS) ++TPKGS_LIBS!= $(PKGCONFIG) $(PCFLAGS) --libs-only-l $(TPKGS) ++TPKG_LIBS+= $(TPKGS_LIBS) + endif + + CPPDEFS+= -D_GNU_SOURCE \