SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,12 @@
Index: contrib/texi2pod.pl
--- contrib/texi2pod.pl.orig
+++ contrib/texi2pod.pl
@@ -316,7 +316,7 @@ while(<$inf>) {
@columns = ();
for $column (split (/\s*\@tab\s*/, $1)) {
# @strong{...} is used a @headitem work-alike
- $column =~ s/^\@strong{(.*)}$/$1/;
+ $column =~ s/^\@strong\{(.*)\}$/$1/;
push @columns, $column;
}
$_ = "\n=item ".join (" : ", @columns)."\n";

View file

@ -0,0 +1,29 @@
--- gcc/Makefile.in.orig Sat Aug 20 09:51:09 2011
+++ gcc/Makefile.in Sun Apr 15 18:49:58 2012
@@ -4607,13 +4607,7 @@ install-driver: installdirs xgcc$(exeext)
# Install the info files.
# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
# to do the install.
-install-info:: doc installdirs \
- $(DESTDIR)$(infodir)/cpp.info \
- $(DESTDIR)$(infodir)/gcc.info \
- $(DESTDIR)$(infodir)/cppinternals.info \
- $(DESTDIR)$(infodir)/gccinstall.info \
- $(DESTDIR)$(infodir)/gccint.info \
- lang.install-info
+install-info::
$(DESTDIR)$(infodir)/%.info: doc/%.info installdirs
rm -f $@
@@ -4665,10 +4659,7 @@ install-html: $(HTMLS_BUILD) lang.install-html
install-man: lang.install-man \
$(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \
$(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \
- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \
- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \
- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \
- $(DESTDIR)$(man7dir)/gpl$(man7ext)
+ $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext)
$(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs
-rm -f $@

View file

@ -0,0 +1,30 @@
Quality workaround for quality code.
regcomp() would occasionally fail with REG_ESIZE for as of yet unknown
reasons. so retry it a few times..
--- gcc/gengtype.c.orig Wed Feb 15 00:31:42 2012
+++ gcc/gengtype.c Sun Mar 15 14:42:31 2015
@@ -1986,13 +1986,19 @@ get_output_file_with_visibility (input_file *inpf)
if (!files_rules[rulix].frul_re)
{
/* Compile the regexpr lazily. */
- int err = 0;
+ int try = 1;
+again:
files_rules[rulix].frul_re = XCNEW (regex_t);
- err = regcomp (files_rules[rulix].frul_re,
+ if (regcomp (files_rules[rulix].frul_re,
files_rules[rulix].frul_srcexpr,
- files_rules[rulix].frul_rflags);
- if (err)
+ files_rules[rulix].frul_rflags))
{
+ /* Reasonable number where it should work at least once... */
+ if (try < 10) {
+ printf("Round and round she goes, when she stops...nobody knows!\n");
+ try++;
+ goto again;
+ }
/* The regular expression compilation fails only when
file_rules is buggy. */
gcc_unreachable ();

View file

@ -0,0 +1,36 @@
Using $(INSTALL_DATA) and chmod generates errors as the operation
is not permitted. So use plain copy mode and chown/chgrp
in the post-install target.
--- libgcc/Makefile.in.orig Sun Apr 15 18:47:00 2012
+++ libgcc/Makefile.in Sun Apr 15 18:48:38 2012
@@ -912,7 +912,7 @@ gcc-extra-parts:
parts="$(GCC_EXTRA_PARTS)"; \
for file in $$parts; do \
rm -f $(gcc_objdir)$(MULTISUBDIR)/$$file; \
- $(INSTALL_DATA) $$file $(gcc_objdir)$(MULTISUBDIR)/; \
+ install -c $$file $(gcc_objdir)$(MULTISUBDIR)/; \
case $$file in \
*.a) \
$(RANLIB) $(gcc_objdir)$(MULTISUBDIR)/$$file ;; \
@@ -961,17 +961,15 @@ install-shared:
install-leaf: $(install-shared) $(install-libunwind)
$(mkinstalldirs) $(DESTDIR)$(inst_libdir)
- $(INSTALL_DATA) libgcc.a $(DESTDIR)$(inst_libdir)/
- chmod 644 $(DESTDIR)$(inst_libdir)/libgcc.a
+ install -c libgcc.a $(DESTDIR)$(inst_libdir)/
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc.a
- $(INSTALL_DATA) libgcov.a $(DESTDIR)$(inst_libdir)/
- chmod 644 $(DESTDIR)$(inst_libdir)/libgcov.a
+ install -c libgcov.a $(DESTDIR)$(inst_libdir)/
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
parts="$(INSTALL_PARTS)"; \
for file in $$parts; do \
rm -f $(DESTDIR)$(inst_libdir)/$$file; \
- $(INSTALL_DATA) $$file $(DESTDIR)$(inst_libdir)/; \
+ install -c $$file $(DESTDIR)$(inst_libdir)/; \
case $$file in \
*.a) \
$(RANLIB) $(gcc_objdir)$(MULTISUBDIR)/$$file ;; \

View file

@ -0,0 +1,11 @@
--- libiberty/Makefile.in.orig Sun Apr 15 18:48:58 2012
+++ libiberty/Makefile.in Sun Apr 15 18:49:14 2012
@@ -340,7 +340,7 @@ libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
@MAINT@ echo stamp > stamp-functions
INSTALL_DEST = @INSTALL_DEST@
-install: install_to_$(INSTALL_DEST) install-subdir
+install:
install-strip: install
.PHONY: install install-strip

View file

@ -0,0 +1,11 @@
--- libquadmath/Makefile.in.orig Sun Apr 15 19:10:57 2012
+++ libquadmath/Makefile.in Sun Apr 15 19:12:43 2012
@@ -1247,7 +1247,7 @@ info: info-am
info-am: $(INFO_DEPS)
-install-data-am: install-info-am install-nodist_libsubincludeHEADERS
+install-data-am: install-nodist_libsubincludeHEADERS
install-dvi: install-dvi-am

View file

@ -0,0 +1,16 @@
clang on powerpc64 defines vec_step already which collides with the
symbol in gcc, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266#c23
renaming suggested at https://gcc.gnu.org/legacy-ml/gcc/2019-07/msg00131.html
Index: gcc/tree-vect-loop.c
--- gcc/tree-vect-loop.c.orig
+++ gcc/tree-vect-loop.c
@@ -55,6 +55,8 @@ along with GCC; see the file COPYING3. If not see
#include "vec-perm-indices.h"
#include "tree-eh.h"
+#define vec_step vec_step_
+
/* Loop Vectorization Pass.
This pass tries to vectorize loops.