From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 17 15:45:25 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54071106566B for ; Sat, 17 Oct 2009 15:45:25 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 126ED8FC21 for ; Sat, 17 Oct 2009 15:45:24 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 184081E006EF; Sat, 17 Oct 2009 17:45:24 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9HFi4mH080639 for ; Sat, 17 Oct 2009 17:44:04 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9HFi4gp080638 for freebsd-emulation@FreeBSD.org; Sat, 17 Oct 2009 17:44:04 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sat, 17 Oct 2009 17:44:04 +0200 To: freebsd-emulation@FreeBSD.org Message-ID: <20091017154404.GA80599@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2009 15:45:25 -0000 I just got reminded to add a linux base version check to astro/google-earth (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only is in f9 or f10, you can do objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX' to check) - and was wondering how to best check for that in a port. This is what I came up with so far: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v retrieving revision 1.35 diff -u -p -r1.35 Makefile --- Makefile 24 Sep 2009 21:01:36 -0000 1.35 +++ Makefile 17 Oct 2009 15:32:22 -0000 @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL USE_LINUX_APPS+= dri .endif +.if (${OSVERSION} < 800076 && \ + !defined(OVERRIDE_LINUX_BASE_PORT)) || \ + (defined(OVERRIDE_LINUX_BASE_PORT) && \ + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \ + ${OVERRIDE_LINUX_BASE_PORT} == f9) +IGNORE= needs at least f9 Linux base +.endif + do-extract: @${MKDIR} ${WRKSRC} @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC} Anyone have a better idea? :) Thanx, Juergen