[PATCH wayland-web] Update ubuntu12.04 instructions to build expat from source

Bryce Harrington bryce at osg.samsung.com
Wed Feb 4 22:48:30 PST 2015


On Thu, Feb 05, 2015 at 03:14:00PM +1000, Peter Hutterer wrote:
> On Tue, Feb 03, 2015 at 02:58:57PM -0800, Bill Spitzak wrote:
> > This git repository was the best one I found. Even then the instructions
> > seem to be wrong, there was no buildconf script and the execute bit was
> > not turned on for configure.
> > 
> > This seems to work and I confirmed that the output of wayland-scanner
> > matches the versions in the wayland repository.
> > ---
> >  ubuntu12.04.html |    9 ++++++++-
> >  1 file changed, 8 insertions(+), 1 deletion(-)
> > 
> > diff --git a/ubuntu12.04.html b/ubuntu12.04.html
> > index 805b35c..ed3ad7c 100644
> > --- a/ubuntu12.04.html
> > +++ b/ubuntu12.04.html
> > @@ -40,6 +40,13 @@ mkdir -p $ACLOCAL_PATH
> >  <span class="comment"># dependencies for libwayland:</span>
> >  sudo apt-get install doxygen xmlto <span class="comment"># or use --disable-documentation</span>
> >  
> > +git clone https://github.com/coapp-packages/expat.git
> > +cd expat/
> > +chmod +x ./configure
> > +./configure --prefix=$WLD
> > +make -j 9 install

For consistency with the other directions this should be:

make && make install

> > +cd ..
> 
> please use the proper upstream, not some semi-random github repo. if expat
> is a CVS repo you'll just have to deal with it, as painful as that
> may be (or link to a tarball, which is likely easier to build)

Looks like the authoritative repo is indeed CVS:

    https://sourceforge.net/p/expat/code/

    $  cvs -d:pserver:anonymous at expat.cvs.sourceforge.net:/cvsroot/expat login 
    CVS password: <RETURN>
    $ cvs -z3 -d:pserver:anonymous at expat.cvs.sourceforge.net:/cvsroot/expat co -P expat
    $ cd expat
    $ ./buildconf.sh
    $ ./configure --prefix=$WLD
    $ make && make install

Looks like it also supports cmake as an alternative.
Also, I forgot how truly atrocious CVS is.

Tarball approach is probably simpler:

    $ wget http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
    $ tar xzf expat-2.1.0.tar.gz
    $ cd expat-2.1.0
    ... configure and so on as before ...

> Cheers,
>    Peter
> 
> > +
> >  <span class="comment"># libwayland-*:</span>
> >  git clone git://anongit.freedesktop.org/wayland/wayland
> >  cd wayland
> > @@ -52,7 +59,7 @@ cd ..
> >  # install unwanted items, such as wayland itself, and xcb prototypes
> >  # that are too old.</span>
> >  sudo apt-get install autoconf automake bison debhelper dpkg-dev flex \
> > -  libexpat1-dev libudev-dev libx11-dev libx11-xcb-dev \
> > +  libudev-dev libx11-dev libx11-xcb-dev \
> >    libxdamage-dev libxext-dev libxfixes-dev libxxf86vm-dev \
> >    linux-libc-dev pkg-config python-libxml2 quilt x11proto-dri2-dev \
> >    x11proto-gl-dev xutils-dev

Out of curiousity, what is it that wayland needs from expat 2.1.0 that
isn't available from 2.0.1?  The UTF-8 fixes, or XML_GetAttributeInfo()?

Bryce


More information about the wayland-devel mailing list