ports/devel/elftoolchain/patches/patch-libelftc_make-toolchain-version

14 lines
523 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Don't depend on {git,svn}version
--- libelftc/make-toolchain-version.orig Thu Sep 1 12:09:38 2016
+++ libelftc/make-toolchain-version Thu Sep 1 12:11:16 2016
@@ -64,7 +64,7 @@ done
curdir=`pwd`
cd ${top} || usage "ERROR: Cannot change directory to \"${top}\"."
-if [ -d CVS ]; then # Look for CVS (NetBSD).
+if [ -d CVS -o `uname` == "OpenBSD" ]; then # Look for CVS (NetBSD).
versionstring=" cvs:unknown"
else # Try git (DragonFlyBSD).
gitversion="$(git describe --all --dirty --long 2> /dev/null)"