diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2009-08-26 10:00:38 -0500 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:41:17 +0200 |
commit | 5a12e7c134274dba706667107d10d231517d3e05 (patch) | |
tree | 55718d5acb710fde798d9f38d0bbaf594ed4b296 /extra/source/kde3-compat/kdelibs3 | |
download | current-5a12e7c134274dba706667107d10d231517d3e05.tar.gz |
Slackware 13.0slackware-13.0
Wed Aug 26 10:00:38 CDT 2009
Slackware 13.0 x86_64 is released as stable! Thanks to everyone who
helped make this release possible -- see the RELEASE_NOTES for the
credits. The ISOs are off to the replicator. This time it will be a
6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD.
We're taking pre-orders now at store.slackware.com. Please consider
picking up a copy to help support the project. Once again, thanks to
the entire Slackware community for all the help testing and fixing
things and offering suggestions during this development cycle.
As always, have fun and enjoy! -P.
Diffstat (limited to 'extra/source/kde3-compat/kdelibs3')
7 files changed, 165 insertions, 0 deletions
diff --git a/extra/source/kde3-compat/kdelibs3/apply-patches.sh b/extra/source/kde3-compat/kdelibs3/apply-patches.sh new file mode 100644 index 00000000..68190b0b --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/apply-patches.sh @@ -0,0 +1,3 @@ +zcat $CWD/kdelibs-utempter.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 +zcat $CWD/kdelibs.inotify.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 +zcat $CWD/kdelibs.no.inotify.externs.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 diff --git a/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff b/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff new file mode 100644 index 00000000..4f7c8f3a --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff @@ -0,0 +1,23 @@ +diff -Naur kdelibs-3.5.7.orig/kdecore/kpty.cpp kdelibs-3.5.7/kdecore/kpty.cpp +--- kdelibs-3.5.7.orig/kdecore/kpty.cpp 2006-05-22 19:14:21.000000000 +0100 ++++ kdelibs-3.5.7/kdecore/kpty.cpp 2007-06-10 14:08:18.000000000 +0100 +@@ -401,7 +401,9 @@ + #ifdef HAVE_UTEMPTER + KProcess_Utmp utmp; + utmp.cmdFd = d->masterFd; +- utmp << "/usr/sbin/utempter" << "-a" << d->ttyName << ""; ++ utmp << "/usr/lib/utempter/utempter" << "add"; ++ if (remotehost) ++ utmp << remotehost; + utmp.start(KProcess::Block); + Q_UNUSED(user); + Q_UNUSED(remotehost); +@@ -444,7 +446,7 @@ + #ifdef HAVE_UTEMPTER + KProcess_Utmp utmp; + utmp.cmdFd = d->masterFd; +- utmp << "/usr/sbin/utempter" << "-d" << d->ttyName; ++ utmp << "/usr/lib/utempter/utempter" << "del"; + utmp.start(KProcess::Block); + #elif defined(USE_LOGIN) + const char *str_ptr = d->ttyName.data(); diff --git a/extra/source/kde3-compat/kdelibs3/kdelibs.inotify.diff b/extra/source/kde3-compat/kdelibs3/kdelibs.inotify.diff new file mode 100644 index 00000000..791b5e68 --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/kdelibs.inotify.diff @@ -0,0 +1,11 @@ +--- ./kio/kio/kdirwatch.cpp.orig 2006-07-22 03:16:37.000000000 -0500 ++++ ./kio/kio/kdirwatch.cpp 2009-06-18 19:27:38.000000000 -0500 +@@ -71,7 +71,7 @@ + #include <linux/types.h> + // Linux kernel headers are documented to not compile + #define _S390_BITOPS_H +-#include <linux/inotify.h> ++#include <sys/inotify.h> + + static inline int inotify_init (void) + { diff --git a/extra/source/kde3-compat/kdelibs3/kdelibs.no.inotify.externs.diff b/extra/source/kde3-compat/kdelibs3/kdelibs.no.inotify.externs.diff new file mode 100644 index 00000000..ef06c1dc --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/kdelibs.no.inotify.externs.diff @@ -0,0 +1,37 @@ +--- ./kio/kio/kdirwatch.cpp.orig 2009-06-18 19:29:01.000000000 -0500 ++++ ./kio/kio/kdirwatch.cpp 2009-06-18 19:32:41.000000000 -0500 +@@ -73,20 +73,20 @@ + #define _S390_BITOPS_H + #include <sys/inotify.h> + +-static inline int inotify_init (void) +-{ +- return syscall (__NR_inotify_init); +-} +- +-static inline int inotify_add_watch (int fd, const char *name, __u32 mask) +-{ +- return syscall (__NR_inotify_add_watch, fd, name, mask); +-} +- +-static inline int inotify_rm_watch (int fd, __u32 wd) +-{ +- return syscall (__NR_inotify_rm_watch, fd, wd); +-} ++// static inline int inotify_init (void) ++// { ++// return syscall (__NR_inotify_init); ++// } ++ ++// static inline int inotify_add_watch (int fd, const char *name, __u32 mask) ++// { ++// return syscall (__NR_inotify_add_watch, fd, name, mask); ++// } ++ ++// static inline int inotify_rm_watch (int fd, __u32 wd) ++// { ++// return syscall (__NR_inotify_rm_watch, fd, wd); ++// } + + #ifndef IN_ONLYDIR + #define IN_ONLYDIR 0x01000000 diff --git a/extra/source/kde3-compat/kdelibs3/kdelibs3.SlackBuild b/extra/source/kde3-compat/kdelibs3/kdelibs3.SlackBuild new file mode 100755 index 00000000..d197ea32 --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/kdelibs3.SlackBuild @@ -0,0 +1,68 @@ +#!/bin/sh +CWD=`pwd` +TMP=/tmp +PKG=$TMP/package-kdelibs + +# Set the config option variables if they are not already set: +if [ -r ../KDE.options ]; then + . ../KDE.options +fi + +# The global options may be overridden here (if needed): +if [ -r ./local.options ]; then + . ./local.options +fi + +rm -rf $PKG +mkdir -p $PKG/usr + +# Avoid a version number in .la files: +if [ -d /opt/kde3/lib64/qt ]; then + QTDIR=/opt/kde3/lib64/qt3 +fi + +cd $TMP +echo "Building kdelibs-$VERSION.tar.bz2..." +tar xjvf $CWD/kdelibs-$VERSION.tar.bz2 || exit 1 +cd kdelibs-$VERSION || exit 1 + +if [ -r $CWD/apply-patches.sh ]; then + . $CWD/apply-patches.sh +fi + +chown -R root:root . +CFLAGS=$CPUOPT \ +CXXFLAGS=$CPUOPT \ +./configure \ + --prefix=/opt/kde3 \ + --libdir=/opt/kde3/lib64 \ + --sysconfdir=/opt/kde3/etc \ + --with-ssl-dir=/usr \ + --with-xinerama \ + --disable-debug \ + --enable-dnotify \ + --program-prefix="" \ + --program-suffix="" \ + --build=$TARGET-slackware-linux + +make $NUMJOBS || exit 1 +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/kdelibs-$VERSION +cp -a \ + AUTHORS COMPILING COMPILING.html COPYING* DEBUG INSTALL KDE2PORTING.html KDE3PORTING.html NAMING README kdelibs.lsm \ + $PKG/usr/doc/kdelibs-$VERSION +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) +if [ -d $PKG/usr/man ]; then + gzip -9 $PKG/usr/man/man?/* +fi + +cd $PKG +makepkg -l y -c n ../kdelibs3-$VERSION-$ARCH-$BUILD.txz + diff --git a/extra/source/kde3-compat/kdelibs3/local.options b/extra/source/kde3-compat/kdelibs3/local.options new file mode 100644 index 00000000..05670327 --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/local.options @@ -0,0 +1,4 @@ +VERSION=3.5.10 +ARCH=x86_64 +TARGET=x86_64 +BUILD=opt1 diff --git a/extra/source/kde3-compat/kdelibs3/slack-desc b/extra/source/kde3-compat/kdelibs3/slack-desc new file mode 100644 index 00000000..b6e75d1d --- /dev/null +++ b/extra/source/kde3-compat/kdelibs3/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +kdelibs3: kdelibs3 (KDE3 runtime libraries) +kdelibs3: +kdelibs3: System libraries and other resources required by KDE3. +kdelibs3: +kdelibs3: +kdelibs3: +kdelibs3: +kdelibs3: +kdelibs3: +kdelibs3: +kdelibs3: |