Mailinglist Archive: opensuse-buildservice (219 mails)

< Previous Next >
Re: [opensuse-buildservice] Removal of Java:Sun-Java-1.5 Project
  • From: Petr Mladek <pmladek@xxxxxxx>
  • Date: Tue, 5 Feb 2008 19:40:44 +0100
  • Message-id: <200802051940.45488.pmladek@xxxxxxx>
On Wednesday 23 January 2008, Adrian Schroeter wrote:
Hi,

I will remove the obsolete project Java:Sun-Java-1.5 in a second.

No built rpms will disappear, but also no new packages get build until you
fix your project setup.

You can do this easily by calling

osc meta prj -e <your_project>

and replace

<path project="deleted...." repository="...."/>

with a propper :NonFree project which provides the matching Java engines,
for example

<path project="openSUSE:10.3:NonFree" repository="standard"/>

I has got into troubles with the OpenOffice_org:STABLE and
OpenOffice_org:UNSTABLE projects. OpenOffice_org.spec uses:

BuildRequires: java2-devel-packages

It is now substituted to

BuildRequires: gcc-java java-1_4_2-gcj-compat-devel



I would prefere to substitute it to:

BuildRequires: java-1_5_0-sun-devel



Well, I agree that the gcc-java stuff is a good default setting for the "Free"
distro. I tried to change it in the project setting using:

osc meta prjconf -e OpenOffice.org:STABLE

with

%if %suse_version == 1030
Substitute: java2-devel-packages java-1_5_0-sun-devel
%endif

It installed java-1_5_0-sun-devel instead of gcc-java. Though, it did the
following substitution in the spec file:

< BuildRequires: java2-devel-packages
---
> BuildRequires: gcc-java java-1_4_2-gcj-compat-devel
java-1_5_0-sun-devel

and complained about:

error: Failed build dependencies:
gcc-java is needed by OpenOffice_org-2.3.1.2-1.i586
java-1_4_2-gcj-compat-devel is needed by OpenOffice_org-2.3.1.2-1.i586

=> it installed only the Sun Java but it still put the gcc-java stuff into the
spec file. See also the attached files.



I have solved it by changing the original spec file to:

java-1_5_0-sun-devel


What is the preferred solution?

Could you please fix the problem with BuildRequires substitution in the spec
files? The installed packages and BuildRequires should be in sync.


--
Best Regards,

Petr Mladek
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: pmladek@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 952
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
# FIXME: it is not needed after they fix the global substitution in BS
Substitute: java-1_4_2-sun-devel java-1_5_0-sun-devel

%if %suse_version == 1030
Substitute: java2-devel-packages java-1_5_0-sun-devel
%endif

# FIXME: fix it in the BuildRequires
%if %suse_version == 1010
Substitute: gjdoc gjdoc fastjar
%endif
jet started "build OpenOffice_org.spec" at Tue Feb 5 19:23:47 CET 2008.

Using BUILD_ROOT=/abuild/ooo-2.3.99.2.min-10.3-i586-devel-bs-2
Using BUILD_ARCH=i586:i486:i386

processing specfile
/local/pmladek/prace/OOo/bs/OpenOffice.org:STABLE/OpenOffice_org/OpenOffice_org.spec...
init_buildsystem --rpmlist /tmp/rpmlist.1wt_oF OpenOffice_org.spec ...
reordering...done
installing startup-notification-0.9-15
installing portaudio-19-175
installing libsndfile-1.0.17-81
installing fonts-config-20061025-57
Updating etc/sysconfig/fonts-config...
installing xorg-x11-fonts-core-7.2-85
installing libsndfile-devel-1.0.17-81
installing portaudio-devel-19-175
installing startup-notification-devel-0.9-15
installing xorg-x11-server-extra-7.2-143
keeping aaa_base-10.3-90
keeping acl-2.2.34-75
keeping attr-2.4.28-81
keeping bash-3.2-61
keeping coreutils-6.9-43
keeping diffutils-2.8.7-80
keeping filesystem-10.3-50
keeping fillup-1.42-179
keeping glibc-2.6.1-18
keeping grep-2.5.2-28
keeping insserv-1.09.0-46
keeping libacl-2.2.34-75
keeping libattr-2.4.28-81
keeping libbz2-1-1.0.4-42
keeping libgcc42-4.2.1_20070724-17
keeping libxcrypt-2.4-71
keeping m4-1.4.10-17
keeping ncurses-5.6-41
keeping pam-0.99.8.1-15
keeping permissions-2007.8.10-11
keeping popt-1.7-368
keeping libreadline5-5.2-20
keeping rpm-4.4.2-140
keeping sed-4.1.5-64
keeping tar-1.17-21
keeping zlib-1.2.3-75
keeping util-linux-2.12r+2.13rc2+git20070725-24
keeping perl-base-5.8.8-75
keeping libdb-4_5-4.5.20-29
keeping libvolume_id-114-19
keeping ConsoleKit-0.2.1-57
keeping ImageMagick-6.3.5.10-2
keeping Mesa-7.0.1-18
keeping Mesa-devel-7.0.1-18
keeping PolicyKit-0.4-21
keeping alsa-devel-1.0.14-31
keeping ant-1.7.0-30
keeping arts-1.5.7-42
keeping arts-devel-1.5.7-42
keeping atk-1.20.0-5
keeping atk-devel-1.20.0-5
keeping audiofile-0.2.6-77
keeping audiofile-devel-0.2.6-77
keeping autoconf-2.61-47
keeping automake-1.10-46
keeping avahi-0.6.20-40
keeping avahi-compat-mDNSResponder-0.6.20-40
keeping avahi-compat-mDNSResponder-devel-0.6.20-40
keeping avahi-devel-0.6.20-40
keeping avahi-glib-0.6.20-40
keeping binutils-2.17.50.20070726-14
keeping bison-2.3-63
keeping boost-1.33.1-108
keeping boost-devel-1.33.1-108
keeping bzip2-1.0.4-42
keeping cairo-1.4.10-25
keeping cairo-devel-1.4.10-25
keeping ccache-2.4-75
keeping cdparanoia-IIIalpha9.8-626
keeping check-0.9.5-34
keeping check-devel-0.9.5-34
keeping cups-devel-1.2.12-22
keeping cups-libs-1.2.12-22
keeping curl-ca-bundle-7.16.4-16
keeping cyrus-sasl-2.1.22-82
keeping cyrus-sasl-devel-2.1.22-82
keeping dbus-1-1.0.2-59
keeping dbus-1-devel-1.0.2-59
keeping dbus-1-glib-0.74-25
keeping dbus-1-glib-devel-0.74-25
keeping dbus-1-qt3-0.62-110
keeping dbus-1-qt3-devel-0.62-110
keeping desktop-translations-10.3-64
keeping esound-0.2.38-17
keeping expat-2.0.1-24
keeping fam-2.7.0-70
keeping fam-devel-2.7.0-70
keeping flac-devel-1.2.0-13
keeping flex-2.5.33-63
keeping fontconfig-2.4.2-43
keeping fontconfig-devel-2.4.2-43
keeping freetype2-2.3.5-18
keeping freetype2-devel-2.3.5-18
keeping gail-1.20.0-4
keeping gail-lang-1.20.0-4
keeping gcc-4.2-24
keeping gcc-c++-4.2-24
keeping gcc42-4.2.1_20070724-17
keeping gcc42-c++-4.2.1_20070724-17
keeping gconf2-2.20.0-4
keeping gconf2-devel-2.20.0-4
keeping gconf2-lang-2.20.0-4
keeping gettext-0.16-47
keeping glib2-2.14.1-4
keeping glib2-devel-2.14.1-4
keeping glitz-0.5.6-86
keeping glitz-devel-0.5.6-86
keeping gnome-keyring-2.20-4
keeping gnome-keyring-lang-2.20-4
keeping gnome-vfs2-2.20.0-3
keeping gnome-vfs2-devel-2.20.0-3
keeping gnome-vfs2-lang-2.20.0-3
keeping gperf-3.0.2-61
keeping gstreamer010-0.10.13-34
keeping gstreamer010-devel-0.10.13-34
keeping gstreamer010-lang-0.10.13-34
keeping gstreamer010-plugins-base-0.10.13-36
keeping gstreamer010-plugins-base-devel-0.10.13-36
keeping gtk2-2.12.0-5
keeping gtk2-devel-2.12.0-5
keeping hal-0.5.9_git20070831-13
keeping hal-devel-0.5.9_git20070831-13
keeping hicolor-icon-theme-0.10-37
keeping icu-3.6-13
keeping jack-devel-0.103.0-55
keeping java-1_5_0-sun-1.5.0_update12-23
keeping java-1_5_0-sun-devel-1.5.0_update12-23
keeping jpackage-utils-1.7.0-77
keeping kdelibs3-3.5.7-72
keeping kdelibs3-arts-3.5.7-72
keeping kdelibs3-default-style-3.5.7-72
keeping kdelibs3-devel-3.5.7-72
keeping kdelibs3-doc-3.5.7-72
keeping keyutils-libs-1.2-42
keeping krb5-1.6.2-22
keeping libFLAC++6-1.2.0-13
keeping libFLAC8-1.2.0-13
keeping libMagick10-6.3.5.10-2
keeping libWand10-6.3.5.10-2
keeping libacl-devel-2.2.34-75
keeping libart_lgpl-2.3.19-35
keeping libart_lgpl-devel-2.3.19-35
keeping libasound2-1.0.14-31
keeping libattr-devel-2.4.28-81
keeping libblkid-devel-1.40.2-20
keeping libblkid1-1.40.2-20
keeping libbonobo-2.20.0-5
keeping libbonobo-devel-2.20.0-5
keeping libbonobo-lang-2.20.0-5
keeping libbonoboui-2.20.0-4
keeping libbonoboui-lang-2.20.0-4
keeping libcom_err-devel-1.40.2-20
keeping libcom_err2-1.40.2-20
keeping libcurl-devel-7.16.4-16
keeping libcurl4-7.16.4-16
keeping libdaemon-0.12-18
keeping libdb-4_5-devel-4.5.20-29
keeping libdrm-2.3.0-43
keeping libdrm-devel-2.3.0-43
keeping libexif-0.6.16-23
keeping libexpat-devel-2.0.1-24
keeping libexpat1-2.0.1-24
keeping libext2fs-devel-1.40.2-20
keeping libext2fs2-1.40.2-20
keeping libgcrypt-1.2.4-39
keeping libgcrypt-devel-1.2.4-39
keeping libglade2-2.6.2-20
keeping libgnome-2.20.0-7
keeping libgnome-lang-2.20.0-7
keeping libgnomecanvas-2.20.0-4
keeping libgnomecanvas-lang-2.20.0-4
keeping libgnomeui-2.20.0-3
keeping libgnomeui-lang-2.20.0-3
keeping libgomp42-4.2.1_20070724-17
keeping libgpg-error-1.4-59
keeping libgpg-error-devel-1.4-59
keeping libicu-3.6-13
keeping libicu-devel-3.6-13
keeping libidl-0.8.9-4
keeping libidn-1.0-11
keeping libidn-devel-1.0-11
keeping libjack-0.103.0-55
keeping libjpeg-6.2.0-812
keeping libjpeg-devel-6.2.0-78
keeping liblcms-1.16-39
keeping liblcms-devel-1.16-39
keeping libmng-1.0.10-14
keeping libmng-devel-1.0.10-14
keeping libnscd-2.0.2-43
keeping libogg-1.1.3-74
keeping libogg-devel-1.1.3-74
keeping liboil-0.3.9-67
keeping libopenssl-devel-0.9.8e-45
keeping libopenssl0_9_8-0.9.8e-45
keeping libpng-1.2.18-15
keeping libpng-devel-1.2.18-15
keeping libsmbios-libs-0.13.6-2
keeping libstdc++-devel-4.2-24
keeping libstdc++42-devel-4.2.1_20070724-17
keeping libtheora0-0.99.0.7-44
keeping libtiff-devel-3.8.2-68
keeping libtiff3-3.8.2-68
keeping libtool-1.5.24-17
keeping libusb-0.1.12-72
keeping libusb-devel-0.1.12-72
keeping libuuid-devel-1.40.2-20
keeping libuuid1-1.40.2-20
keeping libvisual-0.4.0-85
keeping libvorbis-1.2.0-11
keeping libvorbis-devel-1.2.0-11
keeping libxml2-2.6.30-4
keeping libxml2-devel-2.6.30-4
keeping libxslt-1.1.20-41
keeping libxslt-devel-1.1.20-41
keeping mono-core-1.2.5-16
keeping mono-data-1.2.5-16
keeping mono-devel-1.2.5-16
keeping mono-web-1.2.5-16
keeping mono-winforms-1.2.5-16
keeping mozilla-nspr-4.6.7-20
keeping mozilla-nspr-devel-4.6.7-20
keeping mozilla-nss-3.11.7-15
keeping mozilla-nss-devel-3.11.7-15
keeping mozilla-xulrunner181-1.8.1.4-30
keeping mozilla-xulrunner181-devel-1.8.1.4-30
keeping neon-0.26.4-17
keeping neon-devel-0.26.4-17
keeping nss-mdns-0.9-42
keeping openldap2-client-2.3.37-20
keeping openldap2-devel-2.3.37-20
keeping openssl-0.9.8e-45
keeping openssl-certs-0.9.8e-45
keeping orbit2-2.14.9-5
keeping orbit2-devel-2.14.9-5
keeping pam-config-0.23-9
keeping pam-devel-0.99.8.1-15
keeping pango-1.18.2-4
keeping pango-devel-1.18.2-4
keeping parted-1.8.7-40
keeping pcre-7.2-14
keeping pcre-devel-7.2-14
keeping perl-5.8.8-75
keeping perl-Archive-Zip-1.20-19
keeping perl-Compress-Raw-Zlib-2.005-17
keeping perl-Compress-Zlib-2.005-13
keeping perl-IO-Compress-Base-2.005-17
keeping perl-IO-Compress-Zlib-2.005-16
keeping pkg-config-0.21-38
keeping pmtools-20061026-44
keeping popt-devel-1.7-368
keeping pwdutils-3.1.4-27
keeping python-2.5.1-39
keeping python-devel-2.5.1-39
keeping qt3-3.3.8-76
keeping qt3-devel-3.3.8-76
keeping recode-3.6-563
keeping sablot-1.0.3-44
keeping sablot-devel-1.0.3-44
keeping setserial-2.17-654
keeping sgml-skel-0.6-346
keeping sqlite-3.4.1-14
keeping sudo-1.6.9p2-23
keeping tcpd-7.6-791
keeping unixODBC-2.2.12-55
keeping unixODBC-devel-2.2.12-55
keeping unsermake-0.4_20070504-42
keeping unzip-5.52-77
keeping update-alternatives-1.8.3-75
keeping update-desktop-files-10.3-64
keeping xalan-j2-2.7.0-105
keeping xerces-j2-2.8.1-85
keeping xml-commons-1.3.02-128
keeping xml-commons-apis-1.3.02-128
keeping xml-commons-resolver-1.1-133
keeping xorg-x11-7.2-135
keeping xorg-x11-devel-7.2-103
keeping xorg-x11-fonts-devel-7.2-53
keeping xorg-x11-libICE-7.2-61
keeping xorg-x11-libICE-devel-7.2-61
keeping xorg-x11-libSM-7.2-58
keeping xorg-x11-libSM-devel-7.2-58
keeping xorg-x11-libX11-7.2-75
keeping xorg-x11-libX11-devel-7.2-75
keeping xorg-x11-libXau-7.2-54
keeping xorg-x11-libXau-devel-7.2-54
keeping xorg-x11-libXdmcp-7.2-53
keeping xorg-x11-libXdmcp-devel-7.2-53
keeping xorg-x11-libXext-7.2-65
keeping xorg-x11-libXext-devel-7.2-65
keeping xorg-x11-libXfixes-7.2-64
keeping xorg-x11-libXfixes-devel-7.2-64
keeping xorg-x11-libXmu-7.2-65
keeping xorg-x11-libXmu-devel-7.2-65
keeping xorg-x11-libXp-7.2-60
keeping xorg-x11-libXp-devel-7.2-60
keeping xorg-x11-libXpm-7.2-65
keeping xorg-x11-libXpm-devel-7.2-65
keeping xorg-x11-libXprintUtil-7.2-60
keeping xorg-x11-libXprintUtil-devel-7.2-60
keeping xorg-x11-libXrender-7.2-65
keeping xorg-x11-libXrender-devel-7.2-65
keeping xorg-x11-libXt-7.2-65
keeping xorg-x11-libXt-devel-7.2-65
keeping xorg-x11-libXv-7.2-61
keeping xorg-x11-libXv-devel-7.2-61
keeping xorg-x11-libfontenc-7.2-59
keeping xorg-x11-libfontenc-devel-7.2-59
keeping xorg-x11-libs-7.2-103
keeping xorg-x11-libxcb-7.2-51
keeping xorg-x11-libxcb-devel-7.2-51
keeping xorg-x11-libxkbfile-7.2-63
keeping xorg-x11-libxkbfile-devel-7.2-63
keeping xorg-x11-proto-devel-7.2-67
keeping xorg-x11-util-devel-7.2-54
keeping xorg-x11-xtrans-devel-7.2-55
keeping zip-2.32-11
keeping zlib-devel-1.2.3-75
keeping audit-libs-1.5.5-13
keeping cpio-2.9-17
keeping cpp-4.2-24
keeping cpp42-4.2.1_20070724-17
keeping cracklib-2.8.10-37
keeping cvs-1.12.12-85
keeping file-4.21-7
keeping findutils-4.2.31-24
keeping gawk-3.1.5g-25
keeping gdbm-1.8.3-302
keeping gettext-devel-0.16-47
keeping glibc-devel-2.6.1-18
keeping glibc-locale-2.6.1-18
keeping groff-1.18.1.1-99
keeping gzip-1.3.12-34
keeping info-4.9-15
keeping less-406-16
keeping libbz2-devel-1.0.4-42
keeping libltdl-3-1.5.24-17
keeping libmudflap42-4.2.1_20070724-17
keeping libstdc++42-4.2.1_20070724-17
keeping libzio-0.4-43
keeping linux-kernel-headers-2.6.22-19
keeping make-3.81-66
keeping man-2.4.3-86
keeping mktemp-1.5-804
keeping net-tools-1.60-650
keeping netcfg-10.3-39
keeping pam-modules-10.3-47
keeping patch-2.5.9-219
keeping sysvinit-2.86-102
keeping texinfo-4.9-15
keeping timezone-2007g-9
removing nis flags from
/abuild/ooo-2.3.99.2.min-10.3-i586-devel-bs-2/etc/nsswitch.conf...
now finalizing build dir...
Checking permissions and ownerships - using the permissions files
/tmp/Check.perms.I31819
setting /usr/src/packages/SOURCES/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/BUILD/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/RPMS/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/RPMS/i386/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/RPMS/i686/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/RPMS/noarch/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/SPECS/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
setting /usr/src/packages/SRPMS/ to root:root 1777. (wrong owner/group
abuild:abuild permissions 0755)
Starting SuSEconfig, the SuSE Configuration Tool...
Running in full featured mode.
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.fonts...
Creating fonts.{scale,dir} files ...
writing /etc/fonts/suse-font-dirs.conf
writing /etc/fonts/suse-hinting.conf
writing /etc/fonts/suse-bitmaps.conf
Creating cache files for fontconfig ...................
generating java font setup
Warning: cannot find a sans serif Japanese font. Japanese in Java might not
work.
Warning: cannot find a serif Japanese font. Japanese in Java might not work.
Warning: cannot find a sans serif simplified Chinese font. Simplified Chinese
in Java might not work.
Warning: cannot find a serif simplified Chinese font. Simplified Chinese in
Java might not work.
Warning: cannot find a sans serif traditional Chinese font. Traditional Chinese
in Java might not work.
Warning: cannot find a serif traditional Chinese font. Traditional Chinese in
Java might not work.
Warning: cannot find a sans serif Korean font. Korean in Java might not work.
Warning: cannot find a serif Korean font. Korean in Java might not work.
writing
/usr/lib/jvm/java-1.5.0-sun-1.5.0_update12/jre/lib/fontconfig.SuSE.properties
Executing /sbin/conf.d/SuSEconfig.gnome-vfs2...
Executing /sbin/conf.d/SuSEconfig.groff...
Executing /sbin/conf.d/SuSEconfig.gtk2...
Executing /sbin/conf.d/SuSEconfig.icu...
Adjust the current ICU link in /usr/lib/icu/ ...
Executing /sbin/conf.d/SuSEconfig.perl...
Executing /sbin/conf.d/SuSEconfig.permissions...
Finished.
unknown keyword in config: patterntype:
unknown keyword in config: runscripts:
unknown keyword in config: vminstall:
unknown keyword in config: patterntype:
unknown keyword in config: runscripts:
unknown keyword in config: vminstall:
-----------------------------------------------------------------
I have the following modifications for OpenOffice_org.spec:
21c21
< BuildRequires: java2-devel-packages
---
BuildRequires: gcc-java java-1_4_2-gcj-compat-devel java-1_5_0-sun-devel
-----------------------------------------------------------------
----- building OpenOffice_org.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
error: Failed build dependencies:
gcc-java is needed by OpenOffice_org-2.3.1.2-1.i586
java-1_4_2-gcj-compat-devel is needed by OpenOffice_org-2.3.1.2-1.i586

< Previous Next >
This Thread