Commit e001cbee authored by Luca Giambonini's avatar Luca Giambonini

replaced lesstif and motif with openmotif

parent 5554dc43
Description: Copy/paste segfaults on i386
Forwarded: yes
Author: Hans de Goede <hdegoede@redhat.com>
diff -up lesstif-0.95.2/lib/Xm-2.1/CutPaste.c.long64 lesstif-0.95.2/lib/Xm-2.1/CutPaste.c
--- lesstif-0.95.2/lib/Xm-2.1/CutPaste.c.long64 2007-09-12 22:05:58.000000000 +0200
+++ lesstif-0.95.2/lib/Xm-2.1/CutPaste.c 2009-07-28 11:32:20.000000000 +0200
@@ -1028,9 +1028,11 @@ _XmClipboardReplaceItem(Display *display
/* XChangeProperty expects a buffer of longs when receiving 32 bits
data, MEUHH */
if (sizeof(long) != 4)
+ {
convert_buf = XtMalloc(len * sizeof(long));
- for (i = 0; i < len; i++)
- convert_buf[i] = data[i];
+ for (i = 0; i < len; i++)
+ convert_buf[i] = data[i];
+ }
break;
case 16:
2010-01-05 Eric Belanger <eric@archlinux.org>
* lesstif 0.95.2-2
* Fixed segmentation fault when doing copy/paste on i686 (close FS#17712)
2009-12-30 Eric Belanger <eric@archlinux.org>
* lesstif 0.95.2-1
* Upstream update
* Added docs
2008-12-08 Eric Belanger <eric@archlinux.org>
* lesstif 0.95.0-3
* Added license
* Updated options syntax
* Added url
* FHS man pages
* Added ChangeLog
/*****************************************************************************/
/** Copyright 1988 by Evans & Sutherland Computer Corporation, **/
/** Salt Lake City, Utah **/
/** Portions Copyright 1989 by the Massachusetts Institute of Technology **/
/** Cambridge, Massachusetts **/
/** **/
/** All Rights Reserved **/
/** **/
/** Permission to use, copy, modify, and distribute this software and **/
/** its documentation for any purpose and without fee is hereby **/
/** granted, provided that the above copyright notice appear in all **/
/** copies and that both that copyright notice and this permis- **/
/** sion notice appear in supporting documentation, and that the **/
/** names of Evans & Sutherland and M.I.T. not be used in advertising **/
/** in publicity pertaining to distribution of the software without **/
/** specific, written prior permission. **/
/** **/
/** EVANS & SUTHERLAND AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD **/
/** TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- **/
/** ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND OR **/
/** M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM- **/
/** AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA **/
/** OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER **/
/** TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE **/
/** OR PERFORMANCE OF THIS SOFTWARE. **/
/*****************************************************************************/
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=lesstif
pkgver=0.95.2
pkgrel=2
pkgdesc="LGPL'd re-implementation of Motif."
arch=('i686' 'x86_64')
url="http://www.lesstif.org/"
license=('LGPL' 'MIT')
depends=('libxt' 'libxp' 'libxft' 'libxrender' 'fontconfig' 'freetype2')
options=('!libtool')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'LICENSE'
'040_fedora_XxxxProperty-64bit.diff')
md5sums=('754187dbac09fcf5d18296437e72a32f'
'b1f320192a9154f72d83e9d3d5a25a2f'
'30e2c0babc84696af089d55cb9cb2908')
sha1sums=('b894e544d529a235a6a665d48ca94a465f44a4e5'
'5d7f38555417cb617d7d5b7e41a93af8430dc638'
'85412aba25058110db8da99da4a2c5ab44330467')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/040_fedora_XxxxProperty-64bit.diff"
# the following redefinition of CFLAGS and LIBS is because the configuration
# script relies on a 'fontconfig-config' executable which does not exist
# anymore, as it has been superseded by pkg-config.
CFLAGS="${CFLAGS} -I/usr/include/fontconfig"
export CFLAGS
LIBS="${LIBS} -L/usr/lib -lfontconfig"
export LIBS
# the -x-* switches below are needed to correctly find Xrender and friends...
# reference: http://www.linuxfromscratch.org/pipermail/blfs-dev/2009-January/019225.html
./configure --prefix=/usr \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--with-xdnd \
--enable-production \
--enable-nonstandard-conversions \
--enable-editres \
--enable-build-21 \
--enable-static \
--disable-debug \
--x-includes=/usr/include \
--x-libraries=/usr/lib
# fix linkage against already installed version
perl -pi -e 's/^(hardcode_into_libs)=.*/$1=no/' libtool
make
# fix linkage against already installed version
for f in $(find . -name \*.la -type f); do
perl -pi -e 's/^(relink_command=.*)/# $1/' "${f}"
done
make -C lib/Mrm-2.1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Commented out, since it fails:
#
# make -C lib/Mrm-2.1 DESTDIR="${pkgdir}" install
#
# It should be covered by the following "make" command anyway...
make appdir=/usr/share/X11/app-defaults rootdir=/usr/share/LessTif DESTDIR="${pkgdir}" install
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
pkgname=motif
pkgver=2.3.4
pkgrel=1
pkgdesc="Motif is the industry standard toolkit for UNIX systems."
arch=('x86_64')
url="http://motif.ics.com/"
license=('GPL')
depends=('libpng' 'libjpeg' 'libxt' 'libxext' 'libxft')
makedepends=('xbitmaps')
conflicts=('lesstif')
source=("http://downloads.sourceforge.net/project/motif/Motif ${pkgver} Source Code/${pkgname}-${pkgver}-src.tgz")
md5sums=('612bb8127d0d31da6e5474edf8a5c247')
build() {
# Disable parallel builds, since they seem not to work properly
export MAKEFLAGS="${MAKEFLAGS/-j?/}"
# Reset LDFLAGS, without this the package won't build
export LDFLAGS="-lX11"
cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh --prefix=/usr \
--enable-xft \
--enable-png \
--enable-jpeg \
--enable-themes
# Serially build the software
make -j1
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -k check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
}
# vim:set ts=2 sw=2 et:
pkgname=openmotif
pkgver=2.3.7
pkgrel=1
pkgdesc="Open Motif"
arch=('x86_64')
url="http://www.motifzone.org/"
license=('LGPL')
depends=(libxext libxp libxft libxt libxmu libpng libjpeg)
makedepends=(xbitmaps xproto printproto xextproto automake)
conflicts=(lesstif motif)
source=("http://downloads.sourceforge.net/project/motif/Motif%20$pkgver%20Source%20Code/motif-$pkgver.tar.gz")
sha256sums=('8f7aadbb0f42df2093d4690735a2b9a02ea2bf69dfb15ae0a39cae28f1580d14')
build() {
cd "$srcdir"/motif-$pkgver
export LDFLAGS="-lX11"
[ -x configure ] || ./autogen.sh --prefix=/usr
[ -f Makefile ] || ./configure --prefix=/usr
make -j1
}
package() {
cd "$srcdir"/motif-$pkgver
make DESTDIR="$pkgdir" install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment