From owner-freebsd-questions@freebsd.org Tue Jul 28 00:01:19 2020 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 8072B37368C for ; Tue, 28 Jul 2020 00:01:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BFxfQ1Dxmz4WTf for ; Tue, 28 Jul 2020 00:01:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.203.242]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1MxDgm-1kkU1D25mq-00xdXm; Tue, 28 Jul 2020 02:01:15 +0200 Date: Tue, 28 Jul 2020 02:01:15 +0200 From: Polytropon To: Lonnie Cumberland Cc: FreeBSD Subject: Re: how to make pkg ignore some dependencies? Message-Id: <20200728020115.28c4ff4e.freebsd@edvax.de> In-Reply-To: References: 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=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:iZJDmY56mhy/DpwCeA17WI0DKxkUhC291KGFD8Qlsz8t3iNKqqg 32oH5bahVw/swX11yl/9v2p1xoh/yufqu+jA5m4Y938R2Hb/2LRTuoMypxWJzGkRoPYpeOM 2rBW1SW5kQj2qMMJ3VsqBxFXboL3m0hX24Ej71PCU7vlS7E/IQN5a2anQQ29iUaPbiKmwIt CAP6L1hBhRj0VPTsB0L7g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:IGxwFC0sh/U=:ASMboBAxzqqjH/zXWJM3vA jcBDiDwMS32ZPDygPKKZ514X0JY/CugVTPmXg6CQ6xaPEaaVsCT35uIQO5RlvH6EvHIVlL2Xn zSR3kGaTSJIXchVey5n77Xi9lromgJVUhiSYnVxj1qgEiMbcqnzKeQqXVGZHEOIADhggvVZhq x+cw2f+5M2+zE06jllq3utbVyfckxhS4gw1sD6vHr83NMwm0Ppefd1yXM+P2g0UN/zfOGo1zC 1tuQ5DtanWynns47Wga/tZtVHcB9/47bos9Lwg2LZ2wOdYRBeXX2EmxwGveSn/caHnOqkNuRD Y/v4o2bZglN2WSQIaHxIrJDxVt6yYCalQpQKfUtR7KghuJwWyQZ//LJlbmDdyffxLTODD7WW6 uQDsmMUZuGRke5gMqw9I6tgOyHYWUCtEii38Hd4xkBg1QzmPabuH0ISCN8ED7abrFe1hPe1if IO2q734gmKBLIE7EurrmaSnju5NarnZNYWhuucze0DezwAJuzeULBerCVQsK4WIKii7BqiJ5E IErvDmJeP+wRkZjQrC+p+aoav67K7wUbg3OA8nbqhKaPME2eGrYxzrIsQqwKPKgiIzwV3Dqe9 K1fiiWyp8aMqVB5PaAL1zJhnK3LXH3522Yl+nHQ9gXnbvUOxFCApYTM5ZLq/aCSJ8b0lrqu1S itgfMzr4H5LEH9/OvoT3GsAT75aVw4SaDeEOgzqLM3WPHKSDX5wc9br9PTQxWXRxHLK7zmhlc 5UCBPSGHYn2kSkqmvlzSKgZyQiJA2cly4uj8roDPbWKaLzTjSbSwh4JykCHAU2SeGauDimap4 +x7085Wuu1eJaCJHBYMlCCprzpZDC5Fnbs9KWRd01AWgJw27197Lo5lbpyV2h5UBgPGsCCm X-Rspamd-Queue-Id: 4BFxfQ1Dxmz4WTf X-Spamd-Bar: ++++ 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.187) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.61 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.22)[-0.222]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[94.222.203.242:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.77)[0.771]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.66)[0.663]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.227.126.187:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.126.187:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2020 00:01:19 -0000 On Mon, 27 Jul 2020 19:17:52 -0400, Lonnie Cumberland wrote: > Lately, I have been working with various packages from the FreeBSD 12.1 > package system and noticed something interesting. > > I can do "pkg install xorg-minimal" which installs about 63 packages > and have noticed that if I do a "pkg fetch -d -o /some/path xorg-minimal" > then I can get all of the packages downloaded. > > Then, when I look through all of the download packages, I can notice that > some of them are not truly required for a minimal installation of Xorg. > (i.e. llvm80, py37, perl, etc..) Yes, that's really annoying. For example, pdftk requires gcc6 and binutils, wine requires gcc9, and ffmpeg even installed python 2.7 and 3.6... > I also notice that the "xorg-minimal.txz" package, itself, is really just a > small meta-package in this case and am trying to determine where it lists > the dependencies that make up the 63 packages that it wants to download. > > With this in mind, I would like to find out if there are some settings that > can be used with the "pkg" command such that I can tell it to leave out > some of the packages that it wants to download and install? That can be found out from the Makefile of a part which is used to build the dependency trees. Runtime dependencies (RDEPS or RUN_DEPENDS) contain packages that need to be installed for the program to run, and build dependencies (BDEPS or BUILD_DEPENDS) are those needed to build the package from source. Maybe somewhere a port maintainer did a mistake and listed build dependencies as runtime dependencies? It could also be some "indirect dependency issue" where a dependency depends on something else that isn't acutally needed. People don't have time to check dependency trees... ;-) > Or, is there some place that I can find out how the xorg-minimal package is > set up so that I can create maybe a new package called "xorg-ultra" or > something that leaves out the unnecessary packages? Yes, you can start with the port, and in case of this meta-port, it should be quite easy, as there are only a few files. The Makefile is the most important one. > I am looking at freshports to see if that helps also, but still > investigating all of this. Just obtain the latest ports tree (via svn), or use portsnap, and then you'll have all you need locally installed in /usr/ports on your machine. More general advice can be found in "The Porter's Handbook". https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ 5.9. Dependencies: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-depend.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...