bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] missing deps in unistr/


From: Bruno Haible
Subject: Re: [PATCH] missing deps in unistr/
Date: Sat, 28 Aug 2010 22:41:41 +0200
User-agent: KMail/1.9.9

Hi Ian,

> Several of the unistr/u{8,16}-str* modules fail the test suite
> due to missing dependencies on unistr/u32-to-u{8,16}.

Indeed, I reproduce it.

> Patch attached.
> --- a/modules/unistr/u16-strchr
> +++ b/modules/unistr/u16-strchr
> @@ -7,6 +7,7 @@ lib/unistr/u16-strchr.c
>  Depends-on:
>  unistr/base
>  unistr/u16-uctomb
> +unistr/u32-to-u16
>  
>  configure.ac:
>  gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-strchr])

Well, it's not the u16_strchr function which needs the u32_to_u16 function,
it's only its test:

  gcc  -g -O2   -o test-u16-strchr unistr/test-u16-strchr.o ../gllib/libgnu.a  
  unistr/test-u16-strchr.o: In function `test_strchr':
  /tmp/testdir/gltests/unistr/test-strchr.h:45: undefined reference to 
`u32_to_u16'
  collect2: ld returned 1 exit status
  make[4]: *** [test-u16-strchr] error 1

I'm therefore applying this fix. Thanks for the report!


2010-08-28  Bruno Haible  <address@hidden>

        unistr/u*-strchr: Fix tests dependencies.
        * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
        * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
        Reported by Ian Beckwith <address@hidden>.

--- modules/unistr/u8-strchr-tests.orig Sat Aug 28 22:35:13 2010
+++ modules/unistr/u8-strchr-tests      Sat Aug 28 22:30:57 2010
@@ -10,6 +10,7 @@
 getpagesize
 unistr/u8-set
 unistr/u32-set
+unistr/u32-to-u8
 
 configure.ac:
 gl_FUNC_MMAP_ANON
--- modules/unistr/u16-strchr-tests.orig        Sat Aug 28 22:35:13 2010
+++ modules/unistr/u16-strchr-tests     Sat Aug 28 22:30:57 2010
@@ -10,6 +10,7 @@
 getpagesize
 unistr/u16-set
 unistr/u32-set
+unistr/u32-to-u16
 
 configure.ac:
 gl_FUNC_MMAP_ANON



reply via email to

[Prev in Thread] Current Thread [Next in Thread]