[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: KDE Package Policy Explained
by APW on Wednesday 11/Apr/2001, @20:02
Bruce,

You raise some good points, but I must admit that I max out at building either KDE or the incomprehensible GNOME because of the multitude of packages. It's just a big pain in the ass to compile because of the handholding that you have to do to compile and install.

But, OTOH, I've downloaded and compiled XFree86 (comparable in source size) because it contains one configure and one make file. It takes time, but it's a straightforward compile and install -- just like every other compile that I bother to do.

I've seen recently that a global make script is in the works. After that's reasonably stable, you're absolutely right -- RPMs won't matter. Today for me personally, they do matter.

Cheers,

APW
  Related Links
 ·   Articles on KDE Official News
 ·   Also by APW
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: KDE Package Policy Explained
by Thorsten Schnebeck on Thursday 12/Apr/2001, @01:49
Ok, lets start a new "culture" of self-compiling ;-)

Here is my compile-from-cvs-script: I call it "makelib". You can easily change it to a "makebase", "makegraphics" ...
I am far away form being a script-god. If you want to use this script, you have to change it according to your own system settings. <WARNING: This can trash your current KDE installation. "make install" happens as user "root" (asked for password)>
(There are maybe some unmotivated line breaks caused by the HTML-formating)

USE IT AT OWN RISK! ;-)

#!/bin/bash
########### User Options ################
PACKAGE=kdelibs
DOWNLOAD_DIR=/opt/kde2/progs
CONFIGURE_OPTS="--host=i586-pc-linux-gnu --prefix=/opt/kde2 --disable-debug --with-ssl-dir=/usr/local/ssl"
MAKE_OPTS=""
CVSROOT=":pserver:anonymous@finwal03.tu-graz.ac.at:/cvs"
CVS_OPTS="-r KDE_2_1_1_RELEASE"
#########################################
export CVSROOT
if !(test -e ~/.cvsrc); then
echo -e "cvs -z4 -q\ndiff -u3 -p\nupdate -dP\ncheckout -P" > ~/.cvsrc
echo "Found no ~/.cvsrc... fixed!"
fi
cd $DOWNLOAD_DIR
if test -e $DOWNLOAD_DIR/$PACKAGE; then
MODE=up
cd $PACKAGE
echo "cleaning old build before update..."
make cvs-clean
echo "updating $PACKAGE ..."
cd ..
else
MODE=co
echo "first check-out of $PACKAGE ..."
fi
echo -e "\r" > cvs login
cvs $MODE $CVS_OPTS $PACKAGE
echo "*** ready! ***"
cd $PACKAGE
make -f Makefile.cvs
test -w config.cache && rm config.cache
if test $MODE = "co"; then
./configure --help
echo
echo "**************************************"
echo "all configure options are shown above."
echo "$PACKAGE will be configured by:"
echo "./configure $CONFIGURE_OPTS"
echo "** CHECK YOUR OPTS **"
echo
fi
./configure $CONFIGURE_OPTS
make $MAKE_OPTS
echo "$PACKAGE compiled!"

echo -e "#!/bin/bash\ncd $DOWNLOAD_DIR/$PACKAGE\nmake install && ldconfig\n" > /tmp/inst.sh
chmod a+x /tmp/inst.sh
su -m -l root --command="/tmp/inst.sh"
rm /tmp/inst.sh

echo "installation of $PACKAGE successfull :-)"
exit 0
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Ahhh, the whole screen feels bigger now." -- Waldo Bastian
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]