From owner-freebsd-ports@freebsd.org Sat Sep 22 14:07:39 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A5361099377 for ; Sat, 22 Sep 2018 14:07:39 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it1-x132.google.com (mail-it1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2BD2742E1 for ; Sat, 22 Sep 2018 14:07:38 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it1-x132.google.com with SMTP id j81-v6so5403900ite.0 for ; Sat, 22 Sep 2018 07:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zDONXa66jqMvYKuH8tFgYxPHoYN2d63ywimxOECWPqY=; b=Nft1gf2sjwekZf73w95WShAI+ToahDeAvFlMOxcr9MkLRl1uGnfCpK3O5naodYTwAS Ax0xirCUe40w3bfEf1IhYbiL3GRrBrQRklSdJiR6RY3QvOkD9FqkymuTuw5vmOP/RnPl 4kS8qZxDqQYAOJQiymo+l6Htmx+nZYu6W3IaYLmxlVYb7R13w7SeHYM9+h1qniK00FXx LAsqf5HncH7gHdT+Tafo/wEcDXnIYxpkE+srxbTNVPvHpnjPfUNaYeGqpXwkU/jo2gzA ZLSLI4DOYuyebw4fMb89LvgOZcwkEfKoQrYvghZ90MNCKQDzh6fGlHDtaq04d+m0nowj 1osw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zDONXa66jqMvYKuH8tFgYxPHoYN2d63ywimxOECWPqY=; b=ie0gG1TLLWLmzC5xWXIAfJbx51PUrE+V9cAi3o+typKc9a+46K2G40ubq3wyan3dKd NmWjldQn0ULAswCDlTyfbqrwtSllJvdG9RtCy0ehttT28Paa3Q2YVlr0qy5NJqq6rGMQ 07OQ1OnLIGp7WViuRpu1/6yXT35AOYBvSfEYp7VT15F2A6V+3R58WmDSK4cH5ItS/c80 w3r+2rEcP0RPThlRv0It2GstXML6jBrm4tKGqvXb38yDN9Q9sT9dqqLmHo9JvJbg6pID bLFHPnqQDHjEpbxwxNbFyxqh6VVHiGXcbQIlk47YcJIBFGVGqf1nXpL+z3M5l+E2SudD C+OQ== X-Gm-Message-State: ABuFfohd9xd+HoIht6GP9YBiejSanKNLREmUU4dpEUcOaZURp2cMLVX8 XbmHUeYFAbxrUdqjyykzyHOtJlZ7baa5kXNjakU= X-Google-Smtp-Source: ACcGV61WHRbw+GygQuDQynXYhrMiU/SJubTjewLjpdRo9gkvo1lHPNaM9KNbY1LkWAVBDbSEDbLBbFIy/HSS2SSK35c= X-Received: by 2002:a24:7c4a:: with SMTP id a71-v6mr1691231itd.69.1537625258050; Sat, 22 Sep 2018 07:07:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: blubee blubeeme Date: Sat, 22 Sep 2018 22:08:35 +0800 Message-ID: Subject: Re: dependancies and the ports that depend on them To: "@lbutlr" Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2018 14:07:39 -0000 On Sat, Sep 22, 2018, 15:55 @lbutlr wrote: > My system has no X11 window system of any sort on it, it is simply a > server which I (or anyone else) only interact with via the command line o= r > by accessing a service like http or mail. > And yet, there's a lot of x11 packages installed. > > I'd like to find out what packages depend on the many x11 packages that > are installed. I know that quiet a few are under apache25, despite there > being no mention of x11 in make config: > > =E2=80=A6www/apache24/# make WITHOUT_X11=3Dyes NOPORTDOCS=3Dyes NOPORTEXA= MPLES=3Dyes > all-depends-list | grep x11 > /usr/ports/x11/xcb-util-renderutil > /usr/ports/x11/libxcb > /usr/ports/x11/xcb-proto > /usr/ports/x11/libXau > /usr/ports/x11/xorgproto > /usr/ports/x11/libXdmcp > /usr/ports/x11/xcb-util > /usr/ports/x11/pixman > /usr/ports/x11/libX11 > /usr/ports/x11/xtrans > /usr/ports/x11/libXext > /usr/ports/x11/libXrender > /usr/ports/x11-fonts/fontconfig > /usr/ports/x11/libXdamage > /usr/ports/x11/libXfixes > /usr/ports/x11/libxshmfence > /usr/ports/x11/libXxf86vm > /usr/ports/x11/libXi > /usr/ports/x11-toolkits/libXt > /usr/ports/x11/libSM > /usr/ports/x11/libICE > /usr/ports/x11/libXtst > /usr/ports/x11-fonts/dejavu > /usr/ports/x11-fonts/mkfontdir > /usr/ports/x11-fonts/mkfontscale > /usr/ports/x11-fonts/libfontenc > > So, I'd like to figure out which features (make config toggles) are > responsible for these requirements so i can see if they are things that c= an > be disabled. > > For example, one thing listed is libX11, so I do > > pkg info -r libX11 > libX11-1.6.6_1,1: > gdk-pixbuf2-2.36.11 > libXdamage-1.1.4_4 > libXxf86vm-1.1.4_2 > mesa-libs-18.1.5 > cairo-1.14.8_2,2 > libXcomposite-0.4.4_4,1 > libXcursor-1.1.15_1 > libXinerama-1.1.4_1,1 > libXrandr-1.5.1_1 > gtk-update-icon-cache-2.24.32 > libXpm-3.5.12_1 > gtk2-2.24.32 > vim-8.1.0342 > libXt-1.1.5_2,1 > libXext-1.3.3_3,1 > libXfixes-5.0.3_2 > libXi-1.7.9_2,1 > libXrender-0.9.10_2 > libXtst-1.2.3_2 > openjdk8-8.181.13 > openjdk-7.161.01,1 > > So now I have to go through each of those to see which one might be > required by apach24. Within a coupe of steps you are checking a hundred > packages. > > Is there som way to say "I want to search everything that requires libx11 > all the way up the tree of dependencies until we match apache24, then sho= w > me that chain. > > (so, for example, if apache24 is set to require libfoo99 and libfoo99 > requires bobsport and bobsport requires libXfoo which requires libx11 > > I get: > > apache24 <=3D libfoo99 <=3D bobsport <=3D libXfoo <=3D libx11 > > when I search for something like "libx11 in apache24" > > -- > Penny, I'm a physicist. I have a working knowledge of the entire > universe and everything it contains. > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > I usually do something like this with poudriere Touch /tmp/apache25 && tail -f /tmp/apache25 | grep - i "x11" Then Poudriere testport jail ports_tree xxx/apache25 |& tee /tmp/apache25 Then poudriere will list the depends and that will get you a list of depends. I had to do something like that to find out why certain ports were pulling in GCC. Best, Owen >