Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#9290 - SWT would not build from source

Attached to Project: Arch Linux
Opened by Jackson (toomanymirrors) - Monday, 21 January 2008, 18:00 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 09 February 2008, 14:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Simo Leone (neotuli)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
After the X server upgrade SWT was broken, but compiling from source did not work and it tried to uninstall Sun's jdk and jre. I changed the server, and the depends and everything worked.

Steps to Reproduce:
This PKGBUILD worked for me:
# $Id: PKGBUILD,v 1.12 2007/08/26 10:42:18 jgc Exp $
# Maintainer: simo <simo@archlinux.org>
pkgname=swt
pkgver=3.3
pkgrel=1
pkgdesc="An open source widget toolkit for Java"
_date=200706251500
arch=(i686 x86_64)
url="http://www.eclipse.org/swt/"
license=('EPL')
depends=('java-runtime')
makedepends=('apache-ant' 'jre' 'jdk' 'libxtst' 'mesa' 'libgnomeui' 'xulrunner')
source=(http://mirror.calvin.edu/eclipse/downloads/drops/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86.zip
build-swt.xml)
noextract=(swt-${pkgver}-gtk-linux-x86.zip)
md5sums=('7398cdf9340cb131b76ed98495239520'
'f5e548bc26a0f1f3c18131be76face40')
if [ "${CARCH}" = "x86_64" ]; then
source=(http://download.eclipse.org/eclipse/downloads/drops/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86_64.zip
build-swt.xml)
noextract=(swt-${pkgver}-gtk-linux-x86_64.zip)
fi

build() {
cd ${startdir}/src
unzip -jqo ${startdir}/src/swt-${pkgver}-gtk-linux-*.zip "*src.zip"
unzip -qo src.zip
rm -rf about_files
mkdir src
mv org src/
cp build-swt.xml build.xml || return 1

[ "${CARCH}" = "x86_64" ] && export SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64

make -f make_linux.mak make_awt || return 1
make -f make_linux.mak make_swt || return 1
make -f make_linux.mak make_atk || return 1
make -f make_linux.mak make_gnome || return 1
MOZILLA_INCLUDES="`pkg-config --cflags xulrunner-xpcom`" \
MOZILLA_LIBS="`pkg-config --libs xulrunner-xpcom` -Wl,-R/opt/mozilla/lib/xulrunner" \
make -f make_linux.mak make_mozilla || return 1
XULRUNNER_INCLUDES="`pkg-config --cflags xulrunner-xpcom`" \
XULRUNNER_LIBS="`pkg-config --libs xulrunner-xpcom` -Wl,-R/opt/mozilla/lib/xulrunner" \
make -f make_linux.mak make_xulrunner || return 1

make -f make_linux.mak make_cairo || return 1
make -f make_linux.mak make_glx || return 1

ant compile || return 1
cp version.txt build/version.txt
cp src/org/eclipse/swt/internal/SWTMessages.properties build/org/eclipse/swt/internal/

ant jar || return 1

install -D -m644 swt.jar ${startdir}/pkg/usr/share/java/swt.jar
mkdir -p ${startdir}/pkg/usr/lib
install -m755 *.so ${startdir}/pkg/usr/lib/
}
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 09 February 2008, 14:10 GMT
Reason for closing:  Fixed
Comment by Dan McGee (toofishes) - Monday, 21 January 2008, 18:53 GMT
  • Field changed: Attached to Project (Pacman → Arch Linux)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Simo Leone (neotuli)
Not a pacman bug.

Please check your project when submitting bugs!
Comment by Jan de Groot (JGC) - Tuesday, 22 January 2008, 07:39 GMT
The sun JRE uninstall is normal: Packages that depend on java-runtime to work are usually built with gcj/eclipse-ecj and have a makedepend on java-gcj-compat to do so. The only bug here is that the source location changed.

Loading...