From owner-freebsd-hackers@freebsd.org Sun Jul 12 06:22:04 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C190499933E for ; Sun, 12 Jul 2015 06:22:04 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 469B7190C for ; Sun, 12 Jul 2015 06:22:03 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from desk8.phess.net ([95.88.11.237]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MA9FV-1Z7t861jEP-00BJ8l for ; Sun, 12 Jul 2015 08:21:55 +0200 From: Patrick Hess To: freebsd-hackers@freebsd.org Subject: Re: Xorg for client-only support Date: Sun, 12 Jul 2015 08:21:53 +0200 Message-ID: <4777726.x7gaKDivgh@desk8.phess.net> User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p10; KDE/4.14.3; i386; ; ) In-Reply-To: <55A1DD4F.1050507@gmx.com> References: <559EDB56.70808@gmx.com> <2863155.VvqRCPmh7x@desk8.phess.net> <55A1DD4F.1050507@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:T5QUL2UW+qbDQCgUMVCW4M3cvW2uM50+N/Uct2eZpbSCBYByRWh RTWEUFHBvQEin2tiPiAt4IC7zkwZ3WOAOpE3bMzM92lo15jK8mAQv2bPbWbnOzmyRgC+wjc 4xUlPOB3skw7zbEJQrpm9IIR/thWKn1CX1DD352FqkRPrgVmyUz6RmXwCHSwA3iOx5mySk9 O+z0DchiyWOJqRtZWHE2w== X-UI-Out-Filterresults: notjunk:1;V01:K0:FEX7/bGQ4SA=:zwBqPekVx1iCyLsXWWoh07 kL1EZm+Z2BQeSpAoe6dvGQhWKPmXGrtay5Yq/WCWSqsV0/UPwi6ZDXix7BttdCsTiQS1hqx1I XnnustdbZ6h2BC0Q349AgpGLjh26H0SiwgABaM6NcuwmLpHojtQh4pM2ufog6lWQN8PpXHVQL SLITPT2dEOjiHGzD0cPQja2M5QmwTxQUYKerCxAUYh76zcOSzmc8CSBeDU80x9r8YqKisUDIa iyQDE1AI0qD+2GTYmVzdmXXg7yD4iAw7GwrkFZj8FRQgb2SqawF/262almCiAvNEXjumA07ma QlkeKlABgXyc9Dk14bIeQZSpfErziTBlSPEuKQXynr5MeStKuQLr/9VtF0A/Ee2bzW3tZ2dUP 5iPoZnB9yN11eoRtosZRlc7KTHpbozrLNcifOpM3Bd6zcCXJtelpstCPt2eABNRzDbHj3vLxO uyPRC8yaTAsSWXAzxLST1RMue1UeuFWV2IzSIlOKlU9b09SyQBQnOmqBFGP+TrjXWQNY+5Ul0 amAIx7lwmp7VBDtOuLiJyUj7VwR72QR1onyO5gezVZLxj0WcrLx+MJUDvVqAFGa4pmrVNGBvW Y7p7ZfLeo/xLMFaOuQquWR55vWEMKOsEz7aksqv6TqxbbG1uTQeZKyLopgaBaxL1hqkAI92O8 frpcaRlsZPpZRD8hQ3F1GqOOayyKqlZW/pcCeLGtWyFXraG6E8WNgyrzzfHdWe7aze5M= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 06:22:05 -0000 Don whY wrote: > On 7/10/2015 9:41 AM, Patrick Hess wrote: > > Don whY wrote: > >> For *headless* devices (i.e., no point in having a real *server*!), > >> are there significant portions of xorg that I can omit? Or, is it > >> easier to build and install it all and remove the unnecessary cruft, > >> later? > > > > Since you don't need the server portions, I don't really see a reason > > why you would want to worry about installing any X.org ports by hand. > > Not sure what you mean "by hand"; if "build from scratch", that's > just the way I've done things for the past 20+ years... Now I'm not so sure any more what you mean by "build from scratch". I was assuming that you were using the FreeBSD ports system, in which case I wouldn't bother to explicitly install any X libraries, like so: make -C /usr/ports/x11/libX11 install && make -C /usr/ports/x11/libXext install && make -C /usr/ports/x11-toolkits/libXt install && [...] Instead, I would just install the actual applications I wanted to run on that machine and have the above libraries be installed by the ports system automatically should one of those applications need them. Of course, if you were building from source without using the ports system, you'd have to resolve all of these dependency issues yourself. I don't see a compelling reason why you would want to take that route, though. > > Just installing the applications you want to use should automatically > > pull in the X.org dependencies that are actually required by these > > applications. > > Are the client dependencies that fine-grained? I.e., they don't just drag > The Kitchen Sink in? I'd say that most ports are pretty good at specifying only the minimum set of dependencies that are actually required by the port. Just off the top of my head, the one counter example that comes to my mind is x11/lumina, which has a dependency on x11/xorg, a metaport for the *entire* X.org distribution. I didn't have the time to take a closer look at that port just yet, but that feels like overkill to me. > > This will prevent any unnecessary parts, like server > > components and video drivers, from being installed on your system > > in the first place. > > I was hoping for a port akin to "xorg-clients". But, i should be able > to hack one together based on your above comment. x11/xorg-libraries seems to bundle a fair amount of client libraries. That being said, I wouldn't bother about it either. Should one of the applications you are to install require x11/xorg-libraries, the ports system will automatically install it for you anyway. Patrick