Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 01:03:03 +0200
From:      =?UTF-8?Q?Ren=C3=A9_Ladan?= <r.c.ladan@gmail.com>
To:        Gary Palmer <gpalmer@freebsd.org>
Cc:        "cpm@fbsd.es cpm@fbsd.es" <cpm@fbsd.es>, chromium-list freebsd <freebsd-chromium@freebsd.org>
Subject:   Re: chromium 36 on FreeBSD 9?
Message-ID:  <CADL2u4hKhGCjUM0dUKRn_pGyv150w9kmV=YAf9Y_LNEC_9dKCA@mail.gmail.com>
In-Reply-To: <20140815221247.GB2695@in-addr.com>
References:  <20140815215829.0960c384ed474cf0f4d4b257@fbsd.es> <CADL2u4gnPp3cCLOMh4PT88S5jAYE-hBKVcHtbhiB1xAPfzKLgA@mail.gmail.com> <20140815223653.77a7197f3ef2bddffb005478@fbsd.es> <CADL2u4jvRjvoZByt8LE=nTMHc_myOG8%2BW-5rse29TqSH%2B_OTtw@mail.gmail.com> <20140815221247.GB2695@in-addr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2014-08-16 0:12 GMT+02:00 Gary Palmer <gpalmer@freebsd.org>:

> On Fri, Aug 15, 2014 at 11:18:24PM +0200, Ren?? Ladan wrote:
> > Op 15 aug. 2014 22:37 schreef "Carlos Jacobo Puga Medina" <cpm@fbsd.es>:
> > >
> > > On Fri, 15 Aug 2014 22:25:24 +0200
> > > Ren?? Ladan <r.c.ladan@gmail.com> wrote:
> > >
> > > > Op 15 aug. 2014 21:59 schreef "Carlos Jacobo Puga Medina" <
> cpm@fbsd.es>:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > The latest update doesn't seem to build on 9.2
> > > > > >
> > > > > > Last few lines of build log:
> > > > > >
> > > > > > Updating projects from gyp files...
> > > > > > Package libusb-1.0 was not found in the pkg-config search path.
> > > > > > Perhaps you should add the directory containing `libusb-1.0.pc'
> > > > > > to the PKG_CONFIG_PATH environment variable
> > > > > > Package 'libusb-1.0', required by 'world', not found
> > > > > > gyp: Call to 'pkg-config --libs-only-l libusb-1.0' returned exit
> > status
> > > > 1.
> > > > > > *** [do-configure] Error code 1
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > P.S. not subscribed so please CC me on any reply.  Thanks.
> > > > >
> > > > > Try this patch:
> > > > >
> > > > > # diff -urN Makefile.orig Makefile
> > > > > --- Makefile.orig       2014-08-15 21:54:20.000000000 +0200
> > > > > +++ Makefile    2014-08-15 21:54:34.000000000 +0200
> > > > > @@ -102,7 +102,7 @@
> > > > >                 use_system_libexif=1 \
> > > > >                 use_system_libjpeg=1 \
> > > > >                 use_system_libpng=1 \
> > > > > -               use_system_libusb=1 \
> > > > > +               use_system_libusb=0 \
> > > > >                 use_system_libwebp=1 \
> > > > >                 use_system_libxml=1 \
> > > > >                 use_system_libxslt=1 \
> > > > >
> > > > I don't think this will work for several reasons:
> > > > 1. Bundled libusb is removed in by the remove_bundled_libraries
> script
> > in
> > > > the pre-configure step
> > > > 2. The bundled libusb is a modified one from sourceforge but on
> freebsd
> > we
> > > > are supposed to use the system libusb due to how it interacts with
> the
> > > > lower layers
> > >
> > > We had devel/libusb port but it was removed because was included into
> the
> > base system.
> > >
> > > % less -p libusb /usr/ports/MOVED
> > >
> > > FreeBSD 9.2 doesn't include it? So it won't build.
> > >
> > It should include it, it was added to FreeBSD when it was 8-current (so
> > around 2009).
>
> FreeBSD 9 does include libusb, but it doesn't appear to have a .pc file.
>
> Indeed, only 10 and CURRENT do (neither on 9.3). Hardcoding it in the gyp
file might be a solution.


> I changed work/chromium-36.0.1985.143/build/linux/unbundle/libusb.gyp to
> not require the .pc file and just hard code linking libusb instead,
> but that doesn't work either.  It gets past the libusb existence check,
> however the build fails later with
>
> ../../components/usb_service/usb_device_handle.cc: In member function
> 'virtual bool usb_service::UsbDeviceHandle::GetSerial(base::string16*)':
> ../../components/usb_service/usb_device_handle.cc:390:50: error:
> 'libusb_get_string_descriptor' was not declared in this scope
>
> libusb_get_string_descriptor doesn't appear to be in 9.2
>
> Ah, indeed the non-ascii version is only available in 9.3 and 10.0.

% grep libusb_get_string_descriptor /usr/include/libusb.h
> int     libusb_get_string_descriptor_ascii(libusb_device_handle * devh,
> uint8_t desc_index, uint8_t *data, int length);
>
> (note the grep returned libusb_get_string_descriptor*_ascii* NOT
>  libusb_get_string_descriptor)
>
> Haven't had time to look further.
>
> Maybe the _ascii version can be used too inside some wrapper if the
non-ascii version is not available. I'll look for a workaround.


> Regards,
>
> Gary
>

Rene

-- 
http://www.rene-ladan.nl/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADL2u4hKhGCjUM0dUKRn_pGyv150w9kmV=YAf9Y_LNEC_9dKCA>