Mailinglist Archive: opensuse-buildservice (349 mails)

< Previous Next >
Re: [opensuse-buildservice] Building packages that require java for Ubuntu 6.06
  • From: Carsten Hoeger <choeger@xxxxxxxxxxxxxxxx>
  • Date: Tue, 20 Nov 2007 11:28:47 +0100
  • Message-id: <20071120102847.GF4148@xxxxxxxxxxxxxxxx>
On Tue, Nov 20, Hoeger, Carsten wrote:

I did set up a local build service now successfully and in general, building
packages works fine.

Now I tried to build the first java package which results into the following
log:

[...]

installing g++
installing login
installing dpkg-dev
installing debconf-utils
installing ucf
Moving old data out of the way
installing automake1.4
installing flex
installing bash
installing sun-java5-bin
sun-dlj-v1-1 license could not be presented
try 'dpkg-reconfigure debconf' to select a frontend other than noninteractive
dpkg: error processing .init_b_cache/sun-java5-bin.deb (--install):
subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
.init_b_cache/sun-java5-bin.deb

Is that only a local problem here in my installation or doesn't that work at
all?

The problem is, that the package want's to have the sun license accepted.
A workaround:

--------------------------------------[...]---------------------------------
cat <<EOF >> /var/cache/debconf/config.dat
Name: shared/accepted-sun-dlj-v1-1
Template: shared/accepted-sun-dlj-v1-1
Value: true
Owners: sun-java5-bin, sun-java5-jre
Flags: seen

Name: shared/error-sun-dlj-v1-1
Template: shared/error-sun-dlj-v1-1
Value:
Owners: sun-java5-bin, sun-java5-jre
Flags: seen

Name: shared/present-sun-dlj-v1-1
Template: shared/present-sun-dlj-v1-1
Value:
Owners: sun-java5-bin, sun-java5-jre
Flags: seen
EOF
DEBIAN_FRONTEND=noninteractive apt-get install sun-java5-jre
--------------------------------------[...]---------------------------------

Can that somehow be applied to the build systems install process?

I did that now in doing these changes:

buildservice:/usr/lib/obs/server # diff -u ./build/init_buildsystem.orig
./build/init_buildsystem
--- ./build/init_buildsystem.orig 2007-11-18 12:17:05.000000000 +0100
+++ ./build/init_buildsystem 2007-11-18 12:22:16.000000000 +0100
@@ -344,6 +344,26 @@
mkdir -p $BUILD_ROOT/etc || cleanup_and_exit 1
mkdir -p $BUILD_ROOT/proc || cleanup_and_exit 1
test -f $BUILD_ROOT/etc/HOSTNAME || hostname -f >
$BUILD_ROOT/etc/HOSTNAME
+ mkdir -p $BUILD_ROOT/var/cache/debconf || cleanup_and_exit 1
+ cat <<EOF >> $BUILD_ROOT/var/cache/debconf/config.dat
+Name: shared/accepted-sun-dlj-v1-1
+Template: shared/accepted-sun-dlj-v1-1
+Value: true
+Owners: sun-java5-bin, sun-java5-jre
+Flags: seen
+
+Name: shared/error-sun-dlj-v1-1
+Template: shared/error-sun-dlj-v1-1
+Value:
+Owners: sun-java5-bin, sun-java5-jre
+Flags: seen
+
+Name: shared/present-sun-dlj-v1-1
+Template: shared/present-sun-dlj-v1-1
+Value:
+Owners: sun-java5-bin, sun-java5-jre
+Flags: seen
+EOF
if test $PSUF = deb ; then
mkdir -p $BUILD_ROOT/var/lib/dpkg
mkdir -p $BUILD_ROOT/var/log


I'd suggest to add a possibility to add some one buildsystem initialization
scripts.

If there's already such a mechanism, I would be glad to know it... :-)

--
With best regards,

Carsten Hoeger
< Previous Next >
References