From owner-freebsd-questions@freebsd.org Mon Apr 9 07:32:16 2018 Return-Path: Delivered-To: freebsd-questions@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 A4824F8AA41; Mon, 9 Apr 2018 07:32:16 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1C7B376FB2; Mon, 9 Apr 2018 07:32:15 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from webmail.gandi.net (unknown [10.200.201.8]) (Authenticated sender: mayuresh@kathe.in) by relay6-d.mail.gandi.net (Postfix) with ESMTPA id 70794C0025; Mon, 9 Apr 2018 09:32:07 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 09 Apr 2018 13:02:06 +0530 From: Mayuresh Kathe To: Polytropon Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: swi-pl : minimalist edition Reply-To: mayuresh@kathe.in Mail-Reply-To: mayuresh@kathe.in In-Reply-To: <20180408105104.8c5da199.freebsd@edvax.de> References: <4651cc3af73323df69b574a07eb7dbe2@kathe.in> <20180407142728.235d7af2.freebsd@edvax.de> <20180408105104.8c5da199.freebsd@edvax.de> Message-ID: X-Sender: mayuresh@kathe.in User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2018 07:32:16 -0000 On 2018-04-08 02:21 PM, Polytropon wrote: > On Sun, 08 Apr 2018 12:03:54 +0530, Mayuresh Kathe wrote: >> On 2018-04-07 05:57 PM, Polytropon wrote: >> > On Sat, 07 Apr 2018 16:10:53 +0530, Mayuresh Kathe wrote: >> >> i liked prolog and was pleasantly surprised to see a port of swi-pl >> >> under freebsd. >> >> there's one hitch though, the swi-pl port has too many dependencies. >> >> would there be some way to _also_ have a minimalist edition of swi-pl? >> > >> > That's hard to say... >> > >> > The port's description says there are no options to configure, >> > so I'd guess you cannot get rid of the X dependencies (if you >> > don't use X). >> >> i ended up tinkering with ubuntu 16.0, and guess what, they have >> a "no x" version in their package repository. >> so, eliminating 'x' dependencies is possible, similarly, building a >> small, tight core should be possible too. > > Great finding! > > Even though the port itself does not offer the ability to > configure it without X, you should be able to at least > manually tweak the configuration and see if you can remove > the X dependencies. If you succeed, suggest a -without-x11 > port (or whatever they are called today) of swi-pl to be > published - so it can be installed with "pkg install" on > a system with no X. :-) alrighty, i tried, failed, and resorted to asking for advice on the swipl mailing list. i got the following; If you really want to go minimal, just install "SWI-Prolog lite", as described in the link I posted above: http://eu.swi-prolog.org/build/unix.html Follow the instruction under "Doing it in multiple steps" and see if this is good enough. If you use build.templ just add the package names you don't want to the DISABLE_PKGS variable. For example, to skip a bunch of things, including the GUI (xpce): export DISABLE_PKGS="jpl xpce chr cql protobufs odbc ssl RDF semweb" and so on. You can look under packages to see what are the names of the packages. can i now approach the "ports" mailing list with a request to also provide swipl-lite? ~mayuresh