Hi Shawn

Am a lot better now. I post what I've done so far, and how. Theres are 2 
questions at the end.. If someone has an idea, any help would be greatly 
appreciated.
install blastwaves pkgutil

jack at cupssrv:~/soft$ pfexec pkgadd -d 
http://blastwave.network.com/csw/pkgutil_`/sbin/uname -p`.pkg 
jack at cupssrv:~/soft$ pfexec cp -p /opt/csw/etc/pkgutil.conf.CSW 
/etc/opt/csw/pkgutil.conf
jack at cupssrv:~/soft$ pfexec /opt/csw/bin/pkgutil --catalog 
jack at cupssrv:~/soft$ pfexec /opt/csw/bin/pkgutil --install gnupg textutils 
jack at cupssrv:~/soft$ pfexec /opt/csw/bin/gpg --keyserver pgp.mit.edu 
--recv-keys A1999E90

add to /etc/default/login

PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin 
(logout and back in)

OR

export PATH=$PATH:/opt/csw/bin/:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin

uninstall gcc 3.4.3 and gccruntime -> packagemanager

Install gcc and gccruntime 4.3.2 on behalf.

We'll need python 2.6 also.

packagemanager -> install:

SUNWpython26
SUNWpython26-extras
SUNWpython26-setuptools
SUNWgnu-gettext
SUNWgnome-xml

root at cupssrv:/# /usr/share/sgml/docbook/docbook-catalog-install.sh

check for GNU make and automake 1.9, install it if it's not there.

well.

--> Take a snaphot !

jack at cupssrv:~/soft$ pfexec zfs snapshot rpool at buildenv

Lets get the sources

jack at cupssrv:~/soft$ wget 
http://dbus.freedesktop.org/releases/dbus/dbus-1.2.4.6permissive.tar.gz

unpack and cd to.

jack at cupssrv:~/soft/dbus-1.2.4.6permissive$ ./configure 
CC=/usr/bin/gcc-4.3.2 --prefix=/usr
jack at cupssrv:~/soft/dbus-1.2.4.6permissive$ make -j 33
jack at cupssrv:~/soft/dbus-1.2.4.6permissive$ pfexec make install
jack at cupssrv:~/soft/dbus-1.2.4.6permissive$ svcs -vx

-> no output, seems to run. check version by:

jack at cupssrv:~/soft/dbus-1.2.4.6permissive$ dbus-launch --version
D-Bus Message Bus Launcher 1.2.4.6permissive
Copyright (C) 2003 Red Hat, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

well, lets move on.

Install some s-c-p dependencies

root at cupssrv:/# pkgutil --install CSWintltool CSWggetopt CSWperl 
CSWpmxmlparser

more deps:

jack at cupssrv:~/soft$ wget 
https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.22.tar.gz 
--no-check-certificate

unpack, cd to it.

jack at cupssrv:~/soft/xmlto-0.0.22$ ./configure CC=/usr/bin/gcc-4.3.2 
GETOPT=/opt/csw/bin/ggetopt --prefix=/usr
jack at cupssrv:~/soft/xmlto-0.0.22$ make
jack at cupssrv:~/soft/xmlto-0.0.22$ pfexec make install

get the system-config-printer sources

jack at cupssrv:~/soft$ wget 
http://cyberelk.net/tim/data/system-config-printer/1.1/system-config-printer-1.1.8.tar.bz2
jack at cupssrv:~/soft$ wget 
http://cyberelk.net/tim/data/pycups/pycups-1.9.46.tar.bz2

unpack pycups, cd to it.

change every occurence of "python" into "python2.6" in Makefile

jack at cupssrv:~/soft/pycups-1.9.46$ make && make install

cd to system-config-printer sources

jack at cupssrv:~/soft/system-config-printer-1.1.8$ ./configure 
CC=/usr/bin/gcc-4.3.2 PYTHON=/usr/bin/python2.6 --prefix=/usr
jack at cupssrv:~/soft/system-config-printer-1.1.8$ make check
jack at cupssrv:~/soft/system-config-printer-1.1.8$ make -j 33


---------------------

jack at cupssrv:~/soft/system-config-printer-1.1.8$ pfexec system-config-printer
Gtk-Message: Failed to load module "pk-gtk-module": ld.so.1: isapython2.4: 
fatal: libpk-gtk-module.so: open failed: No such file or directory
Gtk-Message: Failed to load module "gnomebreakpad": ld.so.1: isapython2.4: 
fatal: libgnomebreakpad.so: open failed: No such file or directory
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 87, in 
?
    import cupshelpers, options
ImportError: No module named cupshelpers

but I don't see any make options to build them directly. is there another way 
to get them built?

Yai cool, if got it now compiled against python2.6. The only thing that lacks 
now are obviously cupshelpers, options

----

a make check yields the following:

jack at cupssrv:~/soft/system-config-printer-1.1.8$ pfexec make check
Making check in po
make[1]: Entering directory 
`/export/home/jack/soft/system-config-printer-1.1.8/po'
rm -f missing notexist
srcdir=. /opt/csw/bin//intltool-update -m
mismatched quotes at line 114 in ../options.py
mismatched quotes at line 116 in ../options.py
mismatched quotes at line 190 in ../gtk_treeviewtooltips.py
mismatched quotes at line 195 in ../gtk_treeviewtooltips.py
mismatched quotes at line 338 in ../cupspk.py
mismatched quotes at line 359 in ../cupspk.py
mismatched quotes at line 35 in ../build/lib/cupshelpers/ppds.py
[lots of above]
mismatched quotes at line 36 in ../build/lib/cupshelpers/__init__.py
mismatched quotes at line 41 in ../build/lib/cupshelpers/__init__.py
mismatched quotes at line 29 in ../build/lib/cupshelpers/cupshelpers.py
[lots of above]
mismatched quotes at line 35 in ../cupshelpers/ppds.py
[lots of above]
mismatched quotes at line 36 in ../cupshelpers/__init__.py
mismatched quotes at line 41 in ../cupshelpers/__init__.py
mismatched quotes at line 81 in ../cupshelpers/openprinting.py
[lots of above]
if [ -r missing -o -r notexist ]; then \
          exit 1; \
        fi
make[1]: Leaving directory 
`/export/home/jack/soft/system-config-printer-1.1.8/po'
make[1]: Entering directory `/export/home/jack/soft/system-config-printer-1.1.8'
/usr/bin/python2.6 setup.py build
running build
running build_py
make  check-TESTS
make[2]: Entering directory `/export/home/jack/soft/system-config-printer-1.1.8'
Traceback (most recent call last):
  File "./test-ppd-module.sh", line 3, in ?
    from cupshelpers.ppds import _self_test
  File 
"/export/home/jack/soft/system-config-printer-1.1.8/cupshelpers/__init__.py", 
line 45, in ?
    from cupshelpers import                             \
  File 
"/export/home/jack/soft/system-config-printer-1.1.8/cupshelpers/cupshelpers.py",
 line 23
    from . import _debugprint
         ^
SyntaxError: invalid syntax
FAIL: test-ppd-module.sh
==================
1 of 1 test failed
==================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/export/home/jack/soft/system-config-printer-1.1.8'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/export/home/jack/soft/system-config-printer-1.1.8'
make: *** [check-recursive] Error 1

----- Qs -----

x must the default SUNWpycups bindings be installed or not before the build?

TIA and cheers
-- 
This message posted from opensolaris.org

Reply via email to