Skip to content

Commit

Permalink
devel/schilybase: 2022 schilytools touchup
Browse files Browse the repository at this point in the history
Following Jörg Schilling's death in 2021, this is a light touch up of
the port in preparation of future updates at the project's new home.

 - Jörg's domains have started to run out.  Change the WWW to our new
   project lest they point to some unrelated site.
 - Instead of building profiled libraries and then throwing them out,
   have -PROFILE not build these in the first place.
 - Enable symbol versioning for hardening against mismatched library
   versions.  While tested well on Linux, this option was never enabled
   on FreeBSD due to Jörg's lack of experience with the system.  Given
   that the toolchain is pretty much the same, little to now issues are
   to be expected.
 - Relax schilybase dependency to just LIB_DEPENDS to simplify partial
   upgrades.  This is reasonably safe now that symbol versioning has
   been enabled.

WWW:		https://codeberg.org/schilytools/schilytools

ChangeLog: https://codeberg.org/schilytools/schilytools

PR:	265040
Reported by:	fuz@fuz.su (maintainer)
  • Loading branch information
clausecker authored and Fernando Apesteguía committed Jul 7, 2022
1 parent 5bf2947 commit 8ce2900
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 14 deletions.
2 changes: 1 addition & 1 deletion archivers/star/pkg-descr
Expand Up @@ -20,4 +20,4 @@ Main advantages over other tar implementations:
true incremental - star uses the same method as dump(8)/restore(8)
dump/restore features but acts OS and FS independent

WWW: https://sourceforge.net/projects/s-tar/
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion devel/sccs/pkg-descr
Expand Up @@ -3,4 +3,4 @@ System. It provides actively maintained code based on the original UNIX
SCCS code OpenSourced by Sun as part of OpenSolaris and was made
portable to other platforms.

WWW: http://sccs.sourceforge.net/
WWW: https://codeberg.org/schilytools/schilytools
8 changes: 4 additions & 4 deletions devel/schilybase/Makefile.master
@@ -1,6 +1,7 @@
DISTVERSION= 2021-09-18
PORTREVISION= 1
MASTER_SITES= SF/schilytools
PORTREVISION= 2
MASTER_SITES= SF/schilytools \
http://fuz.su/~fuz/distfiles/schilytools/
DISTNAME= schily-${DISTVERSION}

MAINTAINER= fuz@fuz.su
Expand All @@ -26,8 +27,7 @@ LICENSE_PERMS_BSD1CLAUSE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

# schilybase has all the libraries
.if ${PORTNAME} != "schilybase"
BUILD_DEPENDS+= schilybase=${PORTVERSION}_${PORTREVISION}:devel/schilybase
RUN_DEPENDS+= schilybase=${PORTVERSION}_${PORTREVISION}:devel/schilybase
LIB_DEPENDS+= libschily.so:devel/schilybase
.endif

.if "${BOOTSTRAP_SMAKE}" != "yes"
Expand Down
24 changes: 24 additions & 0 deletions devel/schilybase/files/patch-RULES_i386-freebsd-clang.rul
@@ -0,0 +1,24 @@
--- RULES/i386-freebsd-clang.rul.orig 2022-07-05 01:45:06 UTC
+++ RULES/i386-freebsd-clang.rul
@@ -38,4 +38,21 @@ LIB_KVM=

#LDOPTS= $(LIBS_PATH) $(LDPATH)

+#
+# Sunpro C/C++ run on Solaris and Linux and both have linkers
+# that support mapfiles
+#
+MAPVERS= $(_MAPVERS) # This enables to use mapfiles
+#
+# The GNU linker is buggy and does not like the official order in linker map
+# files for symbol versioning. The following command reverses the order of
+# the version names in the linker map file.
+#
+MAPFILE_POST= | sed 's/^SCHILY/+SCHILY/' | tr '\012' '@' | tr '+' '\012' | tail -r | tr '@' '\012'
+
+#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
+#LDOPTS= $(LIBS_PATH) $(LDPATH)
+LDOPTMAP= $(PMAPVERS:%=-Wl,--version-script=%)
+LDOPTDYN= -shared -Wl,-soname,$(TARGET) $(LDOPTMAP)
+
RANLIB= $(NOECHO)echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
24 changes: 24 additions & 0 deletions devel/schilybase/files/patch-RULES_i386-freebsd-gcc.rul
@@ -0,0 +1,24 @@
--- RULES/i386-freebsd-gcc.rul.orig 2022-07-05 01:45:16 UTC
+++ RULES/i386-freebsd-gcc.rul
@@ -38,4 +38,21 @@ LIB_KVM=

#LDOPTS= $(LIBS_PATH) $(LDPATH)

+#
+# Sunpro C/C++ run on Solaris and Linux and both have linkers
+# that support mapfiles
+#
+MAPVERS= $(_MAPVERS) # This enables to use mapfiles
+#
+# The GNU linker is buggy and does not like the official order in linker map
+# files for symbol versioning. The following command reverses the order of
+# the version names in the linker map file.
+#
+MAPFILE_POST= | sed 's/^SCHILY/+SCHILY/' | tr '\012' '@' | tr '+' '\012' | tail -r | tr '@' '\012'
+
+#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
+#LDOPTS= $(LIBS_PATH) $(LDPATH)
+LDOPTMAP= $(PMAPVERS:%=-Wl,--version-script=%)
+LDOPTDYN= -shared -Wl,-soname,$(TARGET) $(LDOPTMAP)
+
RANLIB= $(NOECHO)echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
2 changes: 1 addition & 1 deletion devel/schilybase/pkg-descr
Expand Up @@ -13,4 +13,4 @@ of programs by Joerg Schilling. This includes among others
* libshedit -- bsh command line editor
* libxtermcap -- extended termcap library

WWW: http://schilytools.sourceforge.net
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion devel/smake/pkg-descr
Expand Up @@ -6,4 +6,4 @@ compilation on all supported platforms. The system therefore allows the
re-use of a source tree for all supported platforms in contrast to the GNU
concept of untar -> configure -> make -> install -> remove

WWW: https://sourceforge.net/projects/s-make/
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion devel/sunpromake/pkg-descr
Expand Up @@ -5,4 +5,4 @@ never been open-sourced and is missing from this version of
SunPro Make, the parallel make functionality was succesfully
reconstructed from the present source.

WWW: http://schilytools.sourceforge.net/sunpromake.html
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion editors/ved/pkg-descr
Expand Up @@ -5,4 +5,4 @@ vi and does not limit the work speed even of experienced users.
Ved has been inspired by an editor of the same name that appeared in
1980 as system editor on UNOS (the first UNIX clone).

WWW: http://schilytools.sourceforge.net/ved.html
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion misc/schilytools/pkg-descr
Expand Up @@ -14,4 +14,4 @@ Programs and tools included in the Schily-Tools bundle:
* star, the oldest free TAR implementation, started in 1982
* ved, A portable, easy to learn and extremely fast screen oriented editor.

WWW: http://schilytools.sourceforge.net/
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion net/rscsi/pkg-descr
Expand Up @@ -10,4 +10,4 @@ the remote user.
The rscsi command must be installed setuid root for full functionality.
For this reason it is provided as a separate package to cdrtools.

WWW: http://cdrtools.sourceforge.net/
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion sysutils/cdrtools/pkg-descr
Expand Up @@ -18,4 +18,4 @@ This package contains the following programs:
May be used to write to DVD-RAM and to copy Solaris boot CD's.
- scgcheck (checks and validates the ABI of libscg)

WWW: http://cdrecord.org/
WWW: https://codeberg.org/schilytools/schilytools
2 changes: 1 addition & 1 deletion sysutils/schilyutils/pkg-descr
Expand Up @@ -4,4 +4,4 @@ preprocessor (krcpp), improved versions of standard UNIX utilities
(scal, sod, sprintf, scut, sdd, sfind, spatch), a C/C++ style checker
(cstyle.js, Cstyle) as well as various others.

WWW: http://schilytools.sourceforge.net
WWW: https://codeberg.org/schilytools/schilytools

0 comments on commit 8ce2900

Please sign in to comment.