Icedtea 2.4.0, build CACAO/OpenJDK -> 'ERROR: You seem to not have installed ALSA 0.9.1 or higher.'

Guillaume Alaux guillaume at alaux.net
Tue Jun 18 13:25:01 PDT 2013


On 17 June 2013 17:01, Andrew Hughes <gnu.andrew at redhat.com> wrote:
>
> ----- Original Message -----
> > On 15 June 2013 09:23, Guillaume Alaux <guillaume at alaux.net> wrote:
> > > On 14 June 2013 21:15, Stefan Ring <stefan at complang.tuwien.ac.at> wrote:
> > >>
> > >> > However, I noticed some errors in the build output that might be
> > >> > related,
> > >> > e.g. http://pastebin.com/F1gETRkH, line 1091:
> > >> > /bin/sh: /bin/egrep: No such file or directory
> > >> >
> > >> > On my system:
> > >> > $ which egrep
> > >> > /usr/bin/egrep
> > >>
> > >> /bin, /usr/bin unification seems to be all the rage these days. On my
> > >> Fedora system, /bin is actually a symlink to /usr/bin. In your case, I
> > >> would create a fresh bin directory somewhere (in your home), symlink
> > >> everything from both /bin and /usr/bin there and use that as
> > >> UNIXCOMMAND_PATH.
> > >>
> > >> > I need to build new CACAO sources because I'm working on a related
> > >> > project
> > >> > as part of an undergrad course and later my Bachelor thesis. I have
> > >> > built it
> > >> > before with GNU Classpath and without IcedTea, but I wanted to try
> > >> > OpenJDK
> > >> > as well. If there is a way to build CACAO for OpenJDK without building
> > >> > OpenJDK itself and you could point it out to me, I might not give up on
> > >> > it
> > >> > now.
> > >>
> > >> Build it with icedtea. Once you have a build, you'll not need to touch
> > >> the icedtea/OpenJDK bits anymore.
> > >
> > > As for binaries not beeing on the expected path, I would just like to
> > > point out that to build it for Arch, we patch these as shown here [0]
> > > [1]. You could have a look at the complete build process for Arch here
> > > BTW [2].
> > >
> > > Also, downloading the sources of the Arch package and modifying them
> > > for your needs could be an easier start.
> > >
> > > [0]
> > > https://projects.archlinux.org/svntogit/packages.git/tree/trunk/01_fix_openjdk_cmds_path.diff?h=packages/java7-openjdk
> > > [1]
> > > https://projects.archlinux.org/svntogit/packages.git/tree/trunk/02_fix_corba_cmds_path.diff?h=packages/java7-openjdk
> > > [2]
> > > https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/java7-openjdk
> > >
> > > --
> > > Guillaume
> >
> > I have just checked and you don't even need these path fixing patches
> > if you have performed the /usr/bin move.
> >
>
> The correct solution would be for IcedTea to detect and set these, I think.
>
> Please let us know if you have patches that could be adapted for IcedTea :)
> --
> Andrew :)
>
> Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
>
> PGP Key: 248BDC07 (https://keys.indymedia.org/)
> Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
>

Well I just got rid of the two patches we had in Arch for these paths
as now /bin, /sbin and /usr/sbin all point at /usr/bin.

@OP: managed to build a running CACAO OpenJDK with this Arch package source [0]:

% java -version
java version "1.7.0_40"
IcedTea Runtime Environment (2.4.0) (ArchLinux build 7.u40_2.4.0.cacao-1-x86_64)
CACAO (build 1.6.1pre+re215e36be9fc, compiled mode)

% javac -version
javac 1.7.0_40

[0] http://pkgbuild.com/~guillaume/misc/java7-openjdk-7.u40_2.4.0.cacao-1.src.tar.gz

--
Guillaume



More information about the distro-pkg-dev mailing list