Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415619 - net-im/openfire-3.7.1 with dev-java/icedtea-bin-7.2.1-r1 - build.xml missing 1.7 version string
Summary: net-im/openfire-3.7.1 with dev-java/icedtea-bin-7.2.1-r1 - build.xml missing ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-12 20:02 UTC by MrSnivvel
Modified: 2012-05-16 03:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds 1.7 version number for the JDK in build.xml (openfire-371-openjdk-17-build.patch,562 bytes, patch)
2012-05-12 20:03 UTC, MrSnivvel
Details | Diff
Rebuilt patch (buildxml-jdk17.patch,453 bytes, patch)
2012-05-16 02:23 UTC, MrSnivvel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MrSnivvel 2012-05-12 20:02:16 UTC
Building Openfire 3.7.1 using IcedTea JDK 7.2.1-r1 using the supplied build.xml fails until 1.7 version is added.

Reproducible: Always





Portage 2.1.10.59 (hardened/linux/amd64, gcc-4.5.3, glibc-2.15-r1, 3.3.2-hardened x86_64)
=================================================================
System uname: Linux-3.3.2-hardened-x86_64-AMD_Opteron-TM-_Processor_6272-with-gentoo-2.1
Timestamp of tree: Sat, 12 May 2012 14:30:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.cs.uni.edu/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j33"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl admin aio amd64 bash-completion berkdb bzip2 caps cli cracklib crypt curl cxx dri fam fastcgi fpm ftp fuse gd gd-external gdbm gpm hardened iconv iproute2 ipv6 justify libsysfs logwatch lzma lzo mmap mmx modules mudflap multilib mysql mysqli mysqlnd nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nptl openmp openssl pam pax_kernel pcre php pppd readline session sockets sse sse2 ssl suhosin syslog sysvipc tcpd threads truetype udev unicode urandom vhosts vim-syntax xattr xml xmlreader xmlrpc xorg xsl zip zlib zsh-completion" APACHE2_MODULES="actions alias auth_basic authn_alias authn_default authn_file authz_default authz_host authz_user cache cgi cgid deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation reqtimeout rewrite setenvif status unique_id usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en_US en" PHP_TARGETS="php5-3" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 MrSnivvel 2012-05-12 20:03:56 UTC
Created attachment 311539 [details, diff]
Adds 1.7 version number for the JDK in build.xml
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2012-05-15 18:55:07 UTC
(In reply to comment #1)
> Created attachment 311539 [details, diff] [details, diff]
> Adds 1.7 version number for the JDK in build.xml

First of all thanks for the patch!

But:

- I run openfire on icedtea-bin-7 myself
- Your patch seems to allow apach ant-1.7 (and not jdk-7)
  It looks fine but useless, as gentoo disabled ant check:
  > epatch "${FILESDIR}"/buildxml-ant.patch
- Your patch does not apply against (latest) openfire-3.7.1
  So I suspect you've tested something else.

Can you:
- recheck that openfire-3.7.1 fails for you
- paste exact build.log failure
- show your 'java-config -L' output

Thanks!
Comment 3 MrSnivvel 2012-05-16 01:57:58 UTC
[U] dev-java/ant-contrib
     Available versions:  1.0_beta2-r2^t (~)1.0_beta3^t {{doc elibc_FreeBSD source}}
     Installed versions:  1.0_beta2-r2^t(13:24:20 05/12/12)(-doc -elibc_FreeBSD -source)
     Homepage:            http://ant-contrib.sourceforge.net/
     Description:         A collection of tasks (and at one point maybe types and other tools) for Apache Ant.

[I] dev-java/ant-core
     Available versions:  1.7.1-r4 (~)1.7.1-r5 (~)1.8.0-r1 (~)1.8.0-r2 1.8.1 (~)1.8.2 {{doc elibc_FreeBSD source}}
     Installed versions:  1.8.2(13:01:45 05/12/12)(-doc -elibc_FreeBSD -source)
     Homepage:            http://ant.apache.org/
     Description:         Java-based build tool similar to 'make' that uses XML configuration files.


[I] net-im/openfire
     Available versions:  3.6.1 3.6.3 3.6.4 3.7.0 (~)3.7.1 {{doc elibc_FreeBSD}}
     Installed versions:  3.7.1(14:35:29 05/12/12)(-doc -elibc_FreeBSD)
     Homepage:            http://www.igniterealtime.org/projects/openfire/
     Description:         Openfire (formerly wildfire) real time collaboration (RTC)


 emerge openfire

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-im/openfire-3.7.1
 * openfire_src_3_7_1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                         [ ok ]
 * This is an upgrade
 * As the plugin API changed, at least these plugins need to be updated also:
 * User Search, IM Gateway, Fastpath, Monitoring
 * hey can be downloaded via Admin Console or at
 * http://www.igniterealtime.org/projects/openfire/
 * Using: icedtea-bin-7
>>> Unpacking source...
>>> Unpacking openfire_src_3_7_1.tar.gz to /var/tmp/portage/net-im/openfire-3.7.1/work
 * Applying buildxml.patch ...                                                                                       [ ok ]
 * Applying buildxml-ant.patch ...                                                                                   [ ok ]
>>> Source unpacked in /var/tmp/portage/net-im/openfire-3.7.1/work
>>> Compiling source in /var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src ...
Rewriting attributes
Rewriting ./build/build.xml
Rewriting ./src/test/throttletest/build/build.xml
Rewriting ./src/plugins/kraken/build/build.xml
 * Using following ANT_TASKS: ant-contrib
Buildfile: /var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src/build/build.xml

init:

BUILD FAILED
/var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src/build/build.xml:221: Must use JDK 1.5.x or higher to build Openfire

Total time: 0 seconds
 * ERROR: net-im/openfire-3.7.1 failed (compile phase):
 *   eant failed
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3876:  Called eant '-f' 'build/build.xml' 'openfire' 'plugins'
 *   environment, line  497:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of `emerge --info '=net-im/openfire-3.7.1'`,
 * the complete build log and the output of `emerge -pqv '=net-im/openfire-3.7.1'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.1"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/net-im/openfire-3.7.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-im/openfire-3.7.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src'
 * S: '/var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src'

>>> Failed to emerge net-im/openfire-3.7.1, Log file:

>>>  '/var/tmp/portage/net-im/openfire-3.7.1/temp/build.log'

 * Messages for package net-im/openfire-3.7.1:

 * As the plugin API changed, at least these plugins need to be updated also:
 * User Search, IM Gateway, Fastpath, Monitoring
 * hey can be downloaded via Admin Console or at
 * http://www.igniterealtime.org/projects/openfire/
 * ERROR: net-im/openfire-3.7.1 failed (compile phase):
 *   eant failed
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3876:  Called eant '-f' 'build/build.xml' 'openfire' 'plugins'
 *   environment, line  497:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of `emerge --info '=net-im/openfire-3.7.1'`,
 * the complete build log and the output of `emerge -pqv '=net-im/openfire-3.7.1'`.
 * The complete build log is located at '/var/tmp/portage/net-im/openfire-3.7.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-im/openfire-3.7.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src'
 * S: '/var/tmp/portage/net-im/openfire-3.7.1/work/openfire_src'


It still fails for me.  I will try to create a better patch file.
Comment 4 MrSnivvel 2012-05-16 02:00:33 UTC
 java-config -L
The following VMs are available for generation-2:
1)      IcedTea JDK 6.1.11.1 [icedtea-bin-6]
*)      IcedTea JDK 7.2.1 [icedtea-bin-7]
Comment 5 MrSnivvel 2012-05-16 02:22:24 UTC
I see the difference.  The patch in the portage tree takes out the fail condition, mine adds in 1.7 as a JDK option.
Comment 6 MrSnivvel 2012-05-16 02:23:03 UTC
Created attachment 311923 [details, diff]
Rebuilt patch
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2012-05-16 03:36:27 UTC
(In reply to comment #6)
> Created attachment 311923 [details, diff] [details, diff]
> Rebuilt patch

Ah, ant rebuilds build.xml.

I've pushed your fix as:

> 16 May 2012; Sergei Trofimovich <slyfox@gentoo.org>
> +files/openfire-3.7.1-buildxml-jdk7.patch, openfire-3.7.1.ebuild:
> Fixed build against newer ant using jdk-7. Thanks to Matt McAdoo for the fix
> (bug #415619).

Thank you!