Re: svn commit: r288929 - in head: etc/mtree lib/libxo lib/libxo/tests usr.bin/xo usr.bin/xo/tests

2015-10-07 Thread Bryan Drewery
On 10/6/2015 9:58 AM, Garrett Cooper wrote:
> Author: ngie
> Date: Tue Oct  6 16:58:47 2015
> New Revision: 288929
> URL: https://svnweb.freebsd.org/changeset/base/288929
> 
> Log:
>   Integrate the tests from libxo into the FreeBSD test suite
>   
>   The functional_test.sh harness for each test subdir was inspired
>   by the version in bin/sh/tests/functional_test.sh
>   
>   Some gymnastics were required to deal with implicit rules for
>   .c / .o -> .out as the suffix transformation rules were
>   incorrectly trying to create the test outputs from some of the
>   source files
>   
>   Sponsored by: EMC / Isilon Storage Division
> 
> Added:
>   head/lib/libxo/tests/
>   head/lib/libxo/tests/Makefile   (contents, props changed)
>   head/lib/libxo/tests/functional_test.sh
>  - copied, changed from r288904, head/bin/sh/tests/functional_test.sh
>   head/usr.bin/xo/tests/
>   head/usr.bin/xo/tests/Makefile   (contents, props changed)
>   head/usr.bin/xo/tests/functional_test.sh
>  - copied, changed from r288904, head/bin/sh/tests/functional_test.sh
> Modified:
>   head/etc/mtree/BSD.tests.dist
>   head/lib/libxo/Makefile
>   head/usr.bin/xo/Makefile
> 
> Modified: head/etc/mtree/BSD.tests.dist
> ==
> --- head/etc/mtree/BSD.tests.dist Tue Oct  6 16:35:50 2015
> (r288928)
> +++ head/etc/mtree/BSD.tests.dist Tue Oct  6 16:58:47 2015
> (r288929)
> @@ -310,6 +310,8 @@
>  ..
>  libutil
>  ..
> +libxo
> +..
>  msun
>  ..
>  ..
> @@ -568,6 +570,8 @@
>  ..
>  xargs
>  ..
> +xo
> +..
>  yacc
>  yacc
>  ..
> 
> Modified: head/lib/libxo/Makefile
> ==
> --- head/lib/libxo/Makefile   Tue Oct  6 16:35:50 2015(r288928)
> +++ head/lib/libxo/Makefile   Tue Oct  6 16:58:47 2015(r288929)
> @@ -1,5 +1,7 @@
>  # $FreeBSD$
>  
> +.include 
> +
>  LIBXOSRC=${SRCTOP}/contrib/libxo
>  
>  .PATH:   ${LIBXOSRC}/libxo
...
LIB=xo
SHLIB_MAJOR=0

SHLIBDIR?=  /lib


FYI SHLIBDIR? needs to be before the src.opts.mk otherwise it changes to
/usr/lib, which Peter found breaks boot :)

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: svn commit: r288929 - in head: etc/mtree lib/libxo lib/libxo/tests usr.bin/xo usr.bin/xo/tests

2015-10-07 Thread Bryan Drewery
On 10/7/2015 6:37 PM, NGie Cooper wrote:
> On Wed, Oct 7, 2015 at 6:34 PM, Bryan Drewery  wrote:
> ...
>>> Modified: head/lib/libxo/Makefile
>>> ==
>>> --- head/lib/libxo/Makefile   Tue Oct  6 16:35:50 2015(r288928)
>>> +++ head/lib/libxo/Makefile   Tue Oct  6 16:58:47 2015(r288929)
>>> @@ -1,5 +1,7 @@
>>>  # $FreeBSD$
>>>
>>> +.include 
>>> +
>>>  LIBXOSRC=${SRCTOP}/contrib/libxo
>>>
>>>  .PATH:   ${LIBXOSRC}/libxo
>> ...
>> LIB=xo
>> SHLIB_MAJOR=0
>>
>> SHLIBDIR?=  /lib
>>
>>
>> FYI SHLIBDIR? needs to be before the src.opts.mk otherwise it changes to
>> /usr/lib, which Peter found breaks boot :)
> 
> *smacks head*
> 
> Yes, I forgot about that caveat ;(.
> 

It would have bitten me too. It's a strange thing.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: svn commit: r288929 - in head: etc/mtree lib/libxo lib/libxo/tests usr.bin/xo usr.bin/xo/tests

2015-10-07 Thread NGie Cooper
On Wed, Oct 7, 2015 at 7:04 PM, Bryan Drewery  wrote:
...
>> *smacks head*
>>
>> Yes, I forgot about that caveat ;(.
>
> It would have bitten me too. It's a strange thing.

It's technically be me once before and another person as well at $work.

Libraries in /lib is not the norm so the default works for most cases
(but not with bsd.libnames.mk when dealing with libraries that are not
in /usr/lib for instance >_>..).

Thanks for the reminder :(..
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r288929 - in head: etc/mtree lib/libxo lib/libxo/tests usr.bin/xo usr.bin/xo/tests

2015-10-07 Thread NGie Cooper
On Wed, Oct 7, 2015 at 6:34 PM, Bryan Drewery  wrote:
...
>> Modified: head/lib/libxo/Makefile
>> ==
>> --- head/lib/libxo/Makefile   Tue Oct  6 16:35:50 2015(r288928)
>> +++ head/lib/libxo/Makefile   Tue Oct  6 16:58:47 2015(r288929)
>> @@ -1,5 +1,7 @@
>>  # $FreeBSD$
>>
>> +.include 
>> +
>>  LIBXOSRC=${SRCTOP}/contrib/libxo
>>
>>  .PATH:   ${LIBXOSRC}/libxo
> ...
> LIB=xo
> SHLIB_MAJOR=0
>
> SHLIBDIR?=  /lib
>
>
> FYI SHLIBDIR? needs to be before the src.opts.mk otherwise it changes to
> /usr/lib, which Peter found breaks boot :)

*smacks head*

Yes, I forgot about that caveat ;(.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"