From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 18 18:40:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8258A1065674 for ; Tue, 18 Mar 2008 18:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 726428FC29 for ; Tue, 18 Mar 2008 18:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2IIe1OZ002207 for ; Tue, 18 Mar 2008 18:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2IIe19e002206; Tue, 18 Mar 2008 18:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 18 Mar 2008 18:40:01 GMT Resent-Message-Id: <200803181840.m2IIe19e002206@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ganael Laplanche Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09A241065673 for ; Tue, 18 Mar 2008 18:33:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6418FC2C for ; Tue, 18 Mar 2008 18:33:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2IIXa5f068967 for ; Tue, 18 Mar 2008 18:33:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m2IIXaA5068966; Tue, 18 Mar 2008 18:33:36 GMT (envelope-from nobody) Message-Id: <200803181833.m2IIXaA5068966@www.freebsd.org> Date: Tue, 18 Mar 2008 18:33:36 GMT From: Ganael Laplanche To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/121837: [patch] devel/clanlib: make CL_System::get_exe_path() work X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 18:40:01 -0000 >Number: 121837 >Category: ports >Synopsis: [patch] devel/clanlib: make CL_System::get_exe_path() work >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Mar 18 18:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ganael Laplanche >Release: 7.0-STABLE >Organization: http://contribs.martymac.com >Environment: FreeBSD home.martymac.com 7.0-STABLE FreeBSD 7.0-STABLE #10: Wed Mar 12 14:04:40 CET 2008 root@home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL amd64 >Description: Clanlib uses Linux' /proc/self/exe to get the full path of the current running process. The attached patch uses /proc/curproc/file instead to make it work under FreeBSD. >How-To-Repeat: >Fix: Patch attached with submission follows: --- Sources/Core/System/Unix/init_linux.cpp.orig 2008-03-18 18:30:05.191894223 +0100 +++ Sources/Core/System/Unix/init_linux.cpp 2008-03-18 18:31:07.787731403 +0100 @@ -118,7 +118,7 @@ #else int size; - size = readlink("/proc/self/exe", exe_file, PATH_MAX); + size = readlink("/proc/curproc/file", exe_file, PATH_MAX); if (size < 0) { throw CL_Error(strerror(errno)); >Release-Note: >Audit-Trail: >Unformatted: