From owner-freebsd-ports@FreeBSD.ORG Sat Jun 23 03:54:00 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D469106566C for ; Sat, 23 Jun 2012 03:54:00 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 21FA18FC12 for ; Sat, 23 Jun 2012 03:54:00 +0000 (UTC) Received: by ggnm2 with SMTP id m2so2391739ggn.13 for ; Fri, 22 Jun 2012 20:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=bBhbwqxxXSAIdgsiyAxK162QHdYuV0qBLXY2qYNj43E=; b=b2+zuQhN3Kgk4gMg5DgbCtGH+DjHXAg2+flQnPVfdreiQ++ILfCSlfjvhvWeS6O6Ch PHC+tnjex2qnWVzcHGjiKKFyscuqqcDW7uxFin3Qhq9PAdnB8XBOOjt3duFGt6SBAY+f kCBgThhX+tQS35mnI0yoesqkSUV5eWgxAU0gQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=bBhbwqxxXSAIdgsiyAxK162QHdYuV0qBLXY2qYNj43E=; b=K56BJbLZYDsn9BaZyagDxRb+gQFewVOYf+MjtV/6s0H9vpjuh+hPTJA3Kz+ingTpPz pB0GYcYXR6LedTj1mptyqzqS3dmIu5wlGDZedN+XIV146sHhNHJcJfVPWTRhvJMXLfvp bdZToWoice5yIwsE3TQwCv2i2tiL/sPmkLxITLYjqwtE/RRNYR7LicfUgTxnWjf0A6hg MAZbulvKqhadrvZ/Zgw7HpqbKMar7pzKoKFF3wksg4NGKZzp9byR8WygTI9+3SghHZep KaEAn6CA9TTr2MZDPAlY4VVcIi746WJwiCsSQ0JmH1JmJ9uYeobXMT+E2+K+mcCpx5Wn RFbg== Received: by 10.42.89.72 with SMTP id f8mr1526068icm.33.1340423639300; Fri, 22 Jun 2012 20:53:59 -0700 (PDT) Received: from DataIX.net (75-128-120-86.dhcp.aldl.mi.charter.com. [75.128.120.86]) by mx.google.com with ESMTPS id k6sm428778igz.9.2012.06.22.20.53.57 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jun 2012 20:53:58 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q5N3rt0i098571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Jun 2012 23:53:55 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jh@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q5N3rtde098570; Fri, 22 Jun 2012 23:53:55 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Fri, 22 Jun 2012 23:53:55 -0400 From: Jason Hellenthal To: Benjamin Message-ID: <20120623035354.GA98378@DataIX.net> References: <4FE528AE.8070005@uclive.ac.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FE528AE.8070005@uclive.ac.nz> X-Gm-Message-State: ALoCoQkYO0RGCmuARP/Eqt+6qBxhko/dNGDxpxc3agfBg6OI7Wr9JrU6zc36oBQmiu6RCbReUuhU Cc: freebsd-ports@freebsd.org Subject: Re: Linux binary looks for /proc/cpuinfo, dies when cannot be found, even when linprocfs mounted. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 03:54:00 -0000 On Sat, Jun 23, 2012 at 02:23:42PM +1200, Benjamin wrote: > Hi all. I have posted this question on the forums, and it was suggested > that I post it here. > > I am currently porting Altera Quartus II design software to FreeBSD. I > have got it installing, but running the binary requires /proc/cpuinfo to > exist, and it dies when it can't find it. > > I have both procfs and linprocfs mounted. > > As a workaround (read hack) I can do the following to make the binary > execute. > > 1. unmount procfs. > 2. symlink /compat/linux/proc/cpuinfo to /proc/cpuinfo > > Since this problem has no doubt come up before, what is the best way to > get around this issue? > Run it in a chroot of /compat/linux instead ? Might be best to just write a wrapper around the existing binary to launch it with proper args etc... while chrooting it. -- - (2^(N-1))