Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2012 22:01:01 -0700
From:      hiren panchasara <hiren.panchasara@gmail.com>
To:        freebsd-ports@freebsd.org, redcrash@gmail.com
Cc:        Hiren <hiren.panchasara@gmail.com>
Subject:   Building PAPI port on FreeBSD 10
Message-ID:  <CALCpEUG6u%2BbdtDTC-pvJMo58aAzzS-jUfKf0ng3wQi5ZzhOn_g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--- configure.orig      2012-10-21 21:46:34.996150862 -0700
+++ configure   2012-10-21 21:40:23.478149927 -0700
@@ -5800,7 +5800,7 @@
     MAKEVER="freebsd"
     LDFLAGS="-lpmc"
     # HWPMC driver is available for FreeBSD >= 6
-    FREEBSD_VERSION=`uname -r | cut -c 1`
+    FREEBSD_VERSION=`uname -r | cut -d'.' -f1`
     if test "${FREEBSD_VERSION}" -lt 6 ; then
       as_fn_error "PAPI requires FreeBSD 6 or greater" "$LINENO" 5
     fi

Without this change, "make install" fails as it cannot grep correct major
os revision number.

Let me know if this change looks fine.

Thanks,
Hiren

P.S: I am not subscribed to this list so please keep me in the loop.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCpEUG6u%2BbdtDTC-pvJMo58aAzzS-jUfKf0ng3wQi5ZzhOn_g>