From owner-freebsd-questions@freebsd.org Thu Sep 5 16:27:14 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5A007EBCDA for ; Thu, 5 Sep 2019 16:27:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PR0x2RlNz3yK1 for ; Thu, 5 Sep 2019 16:27:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.5.228.204]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1MmlfS-1iY3ce4234-00jn6Z; Thu, 05 Sep 2019 18:27:11 +0200 Date: Thu, 5 Sep 2019 18:27:10 +0200 From: Polytropon To: =?UTF-8?B?0JLQuNC60YLQvtGAINCa0YPRgtC10L3QutC+0LI=?= Cc: =?UTF-8?B?0JLQuNC60YLQvtGAINCa0YPRgtC10L3QutC+0LI=?= via freebsd-questions Subject: Re: Why i need extract not one needed port, but full catalog never needed ports? Message-Id: <20190905182710.9675eb8f.freebsd@edvax.de> In-Reply-To: <1567694626.722400563@f512.i.mail.ru> References: <1567694626.722400563@f512.i.mail.ru> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:qyZm1R9iaQffA/8kA3eNbj47ToSnjLQktybYEvA3XkL4enUg2Q8 v+FOEWmyaXg8l9rDLQlG6Xvg76jQxmP8KCAK1zvElsy7EybrL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ar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.135) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [5.92 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[mail.ru]; RECEIVED_SPAMHAUS_PBL(0.00)[204.228.5.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.71)[0.714,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.52)[0.525,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.987,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[135.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[135.126.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.30)[ip: (0.69), ipnet: 212.227.0.0/16(-1.37), asn: 8560(2.17), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 16:27:14 -0000 On Thu, 05 Sep 2019 17:43:46 +0300, Виктор Кутенков via freebsd-questions wrote: > I like work with ports. But why i need dowload and extract ~1Gb empty folders? The ports collection that you install locally is a "collection of recipes on how to build software", i. e., the directories aren't empty, they just contain very few (and small) files that describe build procedures, dependencies, and other things. This framework can then be used with regular build tools already provided by the system, like "make search", "make install", or "make deinstall". > Is it posible to use next algoritm, for example: > Do not make portsnap fetch extract > immediately after installing the system make: > # /usr/ports/x11/xorg make install clean > 1. freebsd check the directory /usr/ports/x11/xorg > >> it is empty > 2. freebsd check the internet for search "/usr/ports/x11/xorg" > >> it is found "data" > 3. freebsd dowload and compile data from internet. > Why it must make portsnap extract ALL never needed empty folders to > system before? This is not possible because it would introduce a chain of further "find & download" tasks - for example, X has certain dependencies, those also have dependencies, and they need to be build or present _before_ building X is possible. The ports tree doesn't consume much disk space. Sidenote: If you want to avoid ports, you can always use pkg: "pkg install" will not require the ports tree to be installed; it will resolve the dependencies required by a specific port, and download and install them. No further disk space is needed for building, as no building happens. Only a small database is maintained by pkg itself. > Is it posible make in future - search and extract from internet > only one needed port? Like # pkg install xorg As I mentioned, dependencies have to be considered, and the ports tree contains that information. Furthermore, some ports are just "metaports", so they entirely depend on other ports. > This thought haunts from the very beginning of acquaintance with bsd. > Sorry for my illiteracy in IT The current state of the ports collection is a consensus of space vs. usability. Having only the "recipes" stored locally, and obtaining the actual sources (!) only when required is a decision made long time ago. (NB: For closed source software, "sources" refers to the actual binaries which a "make install" call would download and install.) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...