Hello all,

  I'm trying to compile the 2.6.5 tarball on a non-developer system
(a freshly installed OpenIndiana zone). Right away the make failed
due to revision checks (fixed below) due to missing git and svn
software (and for make, a failed step fails everything). The fix
is to catch the non-zero return codes and just successfully set
an empty string.

  Barring this, the default compilation (so far without CGI and
some drivers) seems to succeed.

###################

--- include/Makefile.orig       Mon Nov  4 13:12:39 2013
+++ include/Makefile    Mon Nov  4 13:23:02 2013
@@ -473,9 +473,11 @@
 # magic to include SVN revision number in NUT version string

 nut_version.h: FORCE
- @GITREV=`git describe --tags 2>/dev/null | sed 's/^v\([0-9]\)/\1/' `; \ + @GITREV=`git describe --tags 2>/dev/null | sed 's/^v\([0-9]\)/\1/' ` || \
+               GITREV=""; \
        if [ -z "$$GITREV" ]; \
- then SVNREV=`LANG=C svnversion -n $(top_srcdir) 2>/dev/null`; \ + then SVNREV=`LANG=C svnversion -n $(top_srcdir) 2>/dev/null` || \
+                       SVNREV=""; \
                if [ -z "$$SVNREV" -o "$$SVNREV" = "exported" ]; \
                        then NUT_VERSION="$(PACKAGE_VERSION)"; \
                        else NUT_VERSION="$(PACKAGE_VERSION)-$$SVNREV"; \

_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to