Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Apr 2018 13:02:06 +0530
From:      Mayuresh Kathe <mayuresh@kathe.in>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org
Subject:   Re: swi-pl : minimalist edition
Message-ID:  <e86c9ac4d05cd37eb8377e5615dfab1d@kathe.in>
In-Reply-To: <20180408105104.8c5da199.freebsd@edvax.de>
References:  <4651cc3af73323df69b574a07eb7dbe2@kathe.in> <20180407142728.235d7af2.freebsd@edvax.de> <a1acbee7d81a029cc6f500261c1b1a62@kathe.in> <20180408105104.8c5da199.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?e86c9ac4d05cd37eb8377e5615dfab1d>