Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37903 - SWI-Prolog comes with GUI (XPCE), but ebuild swi-prolog-lite, doesn't have support for it.
Summary: SWI-Prolog comes with GUI (XPCE), but ebuild swi-prolog-lite, doesn't have su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prolog project
URL: http://www.swi-prolog.org/packages/xpce/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-11 12:11 UTC by Rene Androsch
Modified: 2005-10-27 20:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rene Androsch 2004-01-11 12:11:24 UTC
I would suggest
a) rename to swi-prolog
b) add a USE variable +X to also build the XPCE part

Shouldn't be hard, but I don't know how to make an ebuild ... :(

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-01-18 07:42:08 UTC
Not sure why this was assigned to me, or why I'm in metadata.xml for swi-prolog-lite either...
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2004-01-18 10:41:27 UTC
reassigning to prolog herd.

Rene: you at least can post more details on required modifications ;). This would save us some "research". Is it just another option that you pass to ./configure or is there more?

George
Comment 3 Rene Androsch 2004-01-18 13:14:40 UTC
I've downloaded pl-5.2.11.tar.gz
By looking inside the extracted archive, there are two files: pl-lite.spec and pl.spec.
By reading both files, it becomes clear, that pl.spec include XPCE (GUI) and sgml and sgml/RDF ....

What is unclear to me is how to get it to compile these extra features!

Looking in pl-5.2.11/packages/README has the not so obvious solution:

--cut--
The package directory  contains  a   subdirectory  for  each  SWI-Prolog
package. Without packages, SWI-Prolog is called SWI-Prolog/lite.

Building
--------

To build these packages, first build  and install SWI-Prolog itself This
creates Makefile, copying some of the   configuration  settings from the
SWI-Prolog configuration options.

Now edit the PKG variable  in  Makefile   to  reflect  the  packages and
options preferred. If you install XPCE  (strongly recommended for better
online help, graphical  tracer,  integrated   editor  and  powerful  GUI
toolkit), .....
--cut--

from their, on there are the required libraries (nice dependencies) and how to get it done :(



These are the available packages:
xpce clib cpp odbc table sgml sgml/RDF semweb http


And believe it or not, I need:
xpce sgml sgml/RDF semweb and odbc (if it works stable enough) ....

Comment 4 Rene Androsch 2004-01-18 13:28:23 UTC
I think I got it:

From the Makefile (top level):
---start---
all:            lite

install:        install-lite
....
world:  lite .pkg-config packages
----end----

So it just should be
make world
and not
make all

it would be cool to have the following USE flags:

xpce clib cpp odbc table sgml sgml_rdf semweb http

And the USE flags must only be used in packages/Makefile :) (I think)
And sgml_rdf depends on sgml.
And semweb on smgl and sgml_rdf.



Comment 5 Rene Androsch 2004-02-16 03:44:31 UTC
Is there any chance to get an ebuild that will support the GUI (XPCE)?
And there is a newer verions available: 5.2.13

And there is a small compile/install howto from the author: http://www.swi-prolog.org/installunix.html

I just would like to see the GUI and the additional packages working :)

BTW I just encountered a bug: (by running plld -h)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
gcc returned code 256
*** plld exit status 1
Comment 6 Rene Androsch 2004-02-17 16:35:47 UTC
I've built today, pl-5.2.13 on my system, from the sources.

Here is what I did:

--start--
cd src
./configure --enabble-mt
make
make check
make install

cd ..
cd packages

// now which package(s)
// package clib
cd clib
./configure --enable-mt
make
make install
cd ..

//package cpp
cd cpp
./configure
make (nothing todo?)
make install
cd ..

// package db
cd db
./configure --enable-mt
make
make install
cd ..

// package http
cd http
./configure
make (nothing todo?)
make install
cd ..

// package jasmine -> has compile error
// package ltx2htm -> doesn't find perl on my system

// package mp
cd mp
./configure
make
make install
cd ..

// package odbc
cd odbc
./configure --enable-mt
make
make install
cd ..

// package semweb
cd semweb
./configure --enable-mt
make
make install
cd ..

// package sgml
cd sgml
./configure --enable-mt
make
make check
make install
cd ..

// package table
cd table
./configure --enable-mt
make
make install
cd ..

// package xpce (the GUI)
cd xpce
./configure --enable-mt --with-x (I was to lazy to search the include/lib dirs for xpm and jpeg)
make
make install
cd ..
---end---

BTW:
Compiling with: --enable-cpp doesn't work and I filled a bug report:
http://gollem.swi.psy.uva.nl/bugzilla/show_bug.cgi?id=131


I think, it would be cool to have an ebuild and the packages could be installed via the USE flags!

Could somebody please create the ebuild ?
Comment 7 Daniel Herzog 2004-10-10 14:00:40 UTC
I'd be please if someone would do so too. (I myself will not.)
Comment 8 Rene Androsch 2005-05-23 00:46:11 UTC
Any ebuild builders out there?
Comment 9 SpanKY gentoo-dev 2005-09-17 01:47:18 UTC
looks like the package/configure script doesnt handle --without-PKG arguments
properly ... need to export PKGS ...

however, 5.5.30 does seem to have this little issue fixed ...
Comment 10 SpanKY gentoo-dev 2005-10-27 20:26:40 UTC
should be fixed with swi-prolog-lite-5.5.36+