From owner-freebsd-ports@FreeBSD.ORG Sun Dec 14 12:26:01 2008 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 9354B106564A for ; Sun, 14 Dec 2008 12:26:01 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.188]) by mx1.freebsd.org (Postfix) with ESMTP id 08ED28FC17 for ; Sun, 14 Dec 2008 12:26:00 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so1392837tib.3 for ; Sun, 14 Dec 2008 04:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :organization:references:x-face:x-uptime:x-url:x-openpgp-id :x-openpgp-fingerprint:x-os:x-mailer:x-mail-morse:x-attribution:date :in-reply-to:message-id:user-agent:face:mime-version:content-type; bh=mpOC/tCk/fcmI9mXeoAU+YQ/dT4QHtLGbsccVDBLS98=; b=t/O4I8N53oYUo5fsl7ZWAqelP2j2dOVBKBNbmBsNMHV9LMCsiUNug/llM424yLjMef i3Ho4HGsGvttLsE6z/cjNBuiqipfEqkWCLd66SX1Y3OtzfZyUL09jQ/SR/1EYRqQ5IsF mXOhO79aJLl3quI6DzjEdZuyTrt9bItGSDUtc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:organization:references:x-face:x-uptime :x-url:x-openpgp-id:x-openpgp-fingerprint:x-os:x-mailer:x-mail-morse :x-attribution:date:in-reply-to:message-id:user-agent:face :mime-version:content-type; b=X8qPY15WlXOfg0vx3PHcXXqDVn1lCqPTNmmL7gEbCRnbkWqwC0/ybiJA+0k0JE/RQ/ 7pAal93V6BFHmoVHDTgKV0xCDXt+rqPc/KUJ+p37NCFMWYEe1NkONiYsXA2zfmaTatYc OTqEqPZbFgy0evesLIx0STkYgvs5KwdyHQAWo= Received: by 10.110.39.16 with SMTP id m16mr8477582tim.3.1229257559620; Sun, 14 Dec 2008 04:25:59 -0800 (PST) Received: from chateau.d.lf ([122.163.147.13]) by mx.google.com with ESMTPS id 22sm7517032tim.35.2008.12.14.04.25.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Dec 2008 04:25:58 -0800 (PST) Sender: =?UTF-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksiBBc2hpc2ggU2h1a2xh?= From: wahjava.ml@gmail.com (Ashish Shukla =?utf-8?B?4KSG4KS24KWA4KS3IA==?= =?utf-8?B?4KS24KWB4KSV4KWN4KSy?=) To: Dmitry Marakasov Organization: alt.religion.emacs References: <20081210181125.GA86341@hades.panopticon> <87zlj3heor.fsf@chateau.d.lf> <20081210223522.GA6367@hades.panopticon> <87vdtrhb6r.fsf@chateau.d.lf> <20081211082325.GA6167@hades.panopticon> <6161f3180812110156n43803ee9s88443b6777bd0743@mail.gmail.com> <20081211113556.GA7422@hades.panopticon> <87vdtqls4g.fsf@chateau.d.lf> <20081212103827.GD7422@hades.panopticon> <86wse5wb9m.fsf@chateau.d.lf> <20081213121906.GA81902@hades.panopticon> X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 17:56:46 up 4:38, 2 users, load average: 0.21, 0.11, 0.03 X-URL: http://wahjava.wordpress.com/ X-OpenPGP-ID: 762E5E74 X-OpenPGP-Fingerprint: 1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74 X-OS: GNU/Linux on Linux 2.6.25-gentoo-r7 kernel on x86_64 architecture X-Mailer: Gnus/5.13 (Oort 5.13) Emacs/23.0.60.1 (x86_64-pc-linux-gnu) X-Mail-Morse: .-- .- .... .--- .- ...- .- .--.-. --. -- .- .. .-.. .-.-.- -.-. --- -- X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Date: Sun, 14 Dec 2008 17:58:04 +0530 In-Reply-To: <20081213121906.GA81902@hades.panopticon> (Dmitry Marakasov's message of "Sat, 13 Dec 2008 15:19:06 +0300") Message-ID: <87hc57eyaz.fsf@chateau.d.lf> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: "Andrew W. Nosenko" , FreeBSD Ports Mailing List Subject: Re: [PROPOSAL] Ports using SCM repositories as source instead of distfiles 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: Sun, 14 Dec 2008 12:26:01 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Dmitry Marakasov writes: > * Ashish Shukla आशीष शुक्ल (wahjava.ml@gmail.com) wrote: >> > No. If there's DESTDIR, you don't need to log writes to it, as you >> > can just use `find` to see what's there after installation as in >> > quote below. The idea is that if we log all writes to the fulesystem >> > during port installation, we don't need intermediate directory at >> > all. >> >> Okay, so if we go with your approach, then can you tell me how do you >> plan to go about logging writes to filesystem with your .so which you're >> planning to preload as you mentioned in one of your mails in this thread ? > The idea is to redefine functions that execute syscalls which will > modify the filesystem add add loging there. Here's a test code > http://www.amdmi3.ru/files/ldpreload.c. Compile it into shared lib > and run `LD_PRELOAD=path_to_lib.so someapp`. Cool, this works great :) . > It turned out to be not the best solution as it relies on environment > heavily, and some apps may clear the environment (scons does this > by default), or call syscalls via syscall(), instead of libc wrapper, > thus it's not reliable enough. > Another way is ptrace, which should intercept syscalls without fail. So, we're going with ptrace way, lets hope this way is foolproof :) . Thanks -- Ashish Shukla --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklE+9QACgkQHy+EEHYuXnRlwQCeNHpKW83cG9ApYNjc91i/J7u3 LX4AnijZjT3Ak05e/nnlwYrCexjJVK2N =UNWx -----END PGP SIGNATURE----- --=-=-=--