Click to See Complete Forum and Search --> : spager installation on debian doesnt work very well


MeanGuy
03-22-2003, 11:03 PM
hey there, im on debian testing. i dont have gnome two, can't afford to upgrade to sid. anyways. im trying toget spager to work cuz i wanna get rid of the start menu at the bottom . thats what i get when i do make private-install
~/pager-0.6$ make install
(standard_in) 1: parse error
make: *** No rule to make target `install'. Stop.
johar@Linux:~/pager-0.6$ make private install
(standard_in) 1: parse error
make: *** No rule to make target `private'. Stop.
johar@Linux:~/pager-0.6$ make private-install
(standard_in) 1: parse error
cc -DUSE_SAWFISH_LIBCLIENT -DFRAMEOVER `gtk-config --cflags` -Wl,-rpath `rep-config --execdir`/sawfish `rep-config --execdir`/sawfish/client.so `gtk-config --libs` pager.c -o pager
/bin/sh: line 1: rep-config: command not found
/bin/sh: line 1: rep-config: command not found
cc: /sawfish: No such file or directory
cc: /sawfish/client.so: No such file or directory
make: *** [pager] Error 1

i wasn't been able to find client.so and also i have doubts what to set /sawfish for /usr/share/sawfish? or ~/.sawfish would be enough? ... the home page of the program is http://dapfy.bei.t-online.de/sawfish/pager/
any ideas if i can turn this one into debian package? thanx.

-----------
after edit
-----------
could someone take a look at the makefile and tell me what i need to change in it?
SAWFISH_CLIENT_LIB_DIR := `rep-config --execdir`/sawfish

CFLAGS = -DUSE_SAWFISH_LIBCLIENT -DFRAMEOVER
LDFLAGS = -Wl,-rpath $(SAWFISH_CLIENT_LIB_DIR) $(SAWFISH_CLIENT_LIB_DIR)/client.
so

ifndef GTK1
GTK1 := $(shell pkg-config gtk+-2.0 >/dev/null 2>&1 || echo 1)
endif

ifdef GTK1
CFLAGS += `gtk-config --cflags`
LDFLAGS += `gtk-config --libs`
else
CFLAGS += `pkg-config --cflags gtk+-2.0` -DHAVE_GTK2
LDFLAGS += `pkg-config --libs gtk+-2.0`
endif


ifndef PRE_SAWFISH1_2
SAWFISH_VERSION := $(word 3,$(shell sawfish --version))
ifeq "$(SAWFISH_VERSION)" "2.0.pre1"

PRE_SAWFISH1_2 := $(shell [ -f /etc/redhat-release ] && fgrep 8.0 /etc/redha
t-release)
else
PRE_SAWFISH1_2 := $(filter-out 0,$(shell echo '1.2 > $(SAWFISH_VERSION)' | b
c))
endif
endif
ifdef PRE_SAWFISH1_2
CFLAGS += -DPRE_SAWFISH1_2
endif

all: pager pager.jlc

%.jlc: %.jl
sawfish --batch --no-rc compiler -f compile-batch $^

private-install: all
-mkdir -p $(HOME)/.sawfish/lisp/sawfish/wm/ext/
cp -p pager.jl pager.jlc $(HOME)/.sawfish/lisp/sawfish/wm/ext/
mv pager $(HOME)/.sawfish/

clean:
rm -f pager pager.jlc

thanx

AdaHacker
03-23-2003, 02:42 PM
You don't need to change the Makefile; it's perfectly fine. The problem seems to be that you don't have the development headers for librep installed. That's what the messages about "rep-config: command not found" indicate. The rep-config script is used to determine the correct paths to all the librep libraries. In order to build spager, you're going to need to install the development packages for your version of librep. Once you have those, everything should go smoothly.

MeanGuy
03-25-2003, 09:55 AM
hey, thanx for replying. yeah, well, i thought about getting the new versions from the unstable debian. and then building my own packages, but it just needs alot of them and it's not worth it. so i decided to upgrade to sid, though i have unpleasent experience with it in the past, but i think i can use it now without problems :)
thanx for the help