From owner-freebsd-ports@FreeBSD.ORG Wed Dec 10 22:00:18 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 1D71B106564A for ; Wed, 10 Dec 2008 22:00:18 +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 866AE8FC13 for ; Wed, 10 Dec 2008 22:00:17 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so404763tib.3 for ; Wed, 10 Dec 2008 14:00:16 -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=lEktInVczEAKlitV4n1GCwuq9k4prP2sP64/BIOVuUM=; b=P1qGkUBhLXkWYHcWBIiWcN29kbJqrDTdJyC40in8H54iayhT6tu58AzB4Ed3G80IPz rc16kFv+rDsDk+RKzn80lLN3wELTnKkmP6Eq3lwF73zbEoGQNz2RDtdUb+BRmsU02lUC /KcyrBN7GRLlH58pdYIVF7eLKgVrAF1bnuD14= 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=bzPwvvVK9eDPwT3od2WbgyJPX8LZKy1VEW73tmrDb9uA8U4pBRIgCZwzHntRXwjhCJ jrU7ukaUmj2PKPXxHT9V4bRQqSC3fGszG/1i5pknrdcSOp56EBNUbvI7GlPF/mnEJD5V +yE+6mT/sk7xWYQCpn+yNuVfW7CSZEG3D6vJY= Received: by 10.110.15.9 with SMTP id 9mr2647956tio.27.1228946416339; Wed, 10 Dec 2008 14:00:16 -0800 (PST) Received: from chateau.d.lf ([122.161.0.36]) by mx.google.com with ESMTPS id y3sm2144530tia.20.2008.12.10.14.00.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 10 Dec 2008 14:00:14 -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: <87fxkxjywk.fsf@chateau.d.lf> <20081209143052.GA29817@hades.panopticon> <873agxjn1x.fsf@chateau.d.lf> <20081209181354.GB29817@hades.panopticon> <87tz9di38u.fsf@chateau.d.lf> <20081209222042.GC29817@hades.panopticon> <8763lsi10m.fsf@chateau.d.lf> <20081210181125.GA86341@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: 03:26:53 up 14:40, 4 users, load average: 0.06, 0.53, 0.74 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: Thu, 11 Dec 2008 03:32:12 +0530 In-Reply-To: <20081210181125.GA86341@hades.panopticon> (Dmitry Marakasov's message of "Wed, 10 Dec 2008 21:11:25 +0300") Message-ID: <87zlj3heor.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: 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: Wed, 10 Dec 2008 22:00:18 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Dmitry Marakasov writes: > * Ashish Shukla आशीष शुक्ल (wahjava.ml@gmail.com) wrote: >> > Current DESTDIR implementation uses chroot and obviously requires >> > complete system installed in DESTDIR. Also installing a port will >> > install all dependencies in the chroot as well. >> >> The Debian package building system, also expects the package files in a >> directory named ${packageroot}/debian/${packagename}/ which you can >> install by doing 'make install DESTDIR=debian/${packagename}' in >> ${packageroot} directory (the directory where you've extracted the >> package tarball, similar to the FreeBSD's ${WRKSRC} directory. >> >> So, my idea is to specify "make -C ${WRKSRC} install DESTDIR=/var/tmp/${PORTNAME}" >> in the "install" target of port's Makefile, not to be confused with >> upstream package's Makefile. And I think you confused it with passing >> 'DESTDIR' variable to 'make' commandline to start port building >> procedure: > How do you expect all ports to respect DESTDIR in their Makefiles, > while many ports don't even use make? As I've said, that will require > tremendous amount of hacking and is not even possible sometimes. How about adding a variable like REQUIRES_DYNAMIC_INSTALLATION=yes, which will then generate a plist on the basis of "/var/tmp/${PORTNAME}", so now it is the port's responsibility to install all contents to "/var/tmp/${PORTNAME}" either by "make install DESTDIR=..." or by some other way. Having that REQUIRES_DYNAMIC_INSTALLATION also includes a 'post-install' target which will copy all files from /var/tmp/${PORTNAME} to ${PREFIX}. -- Ashish Shukla --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklAPGkACgkQHy+EEHYuXnRDBwCg0ySHngPoGFctQT2oGApU1w6h J2sAoJZ5TR+5Au5ovb9RJ0lzDQ/Y/fNJ =KANp -----END PGP SIGNATURE----- --=-=-=--