Bug 3329 - Solaris testing problems.
Solaris testing problems.
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.21
Sparc Solaris
: P3 minor
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-14 17:16 UTC by David May
Modified: 2006-01-17 21:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David May 2005-12-14 17:16:41 UTC
In Samba 3.0.21rc2:

1) I can create the Solaris package for Samba using the
supplied shell script makepkg.sh. But pkgadd fails with
an error message about duplicate paths. The problem does
not occur if I fix file pkginfo.master before running
makepkg.sh

2) The supplied shell script makepkg.sh rebuilds Samba
from source with the wrong configure options. This 
problem can be worked around by specifying "nobuild"
parameter to prevent a build from being run.  But I 
think the script should not rebuild Samba by default. 
This is a bad feature that shold be changed.
Comment 1 David May 2005-12-14 17:27:03 UTC
In Samba 3.0.21rc2:

A number of errors occur when make test is run on Solaris8, Solaris9
due to shell syntax errors and platform dependencies in various scripts.
And loopback interface is not "lo" - it is lo0 on the Solaris machines
which I used for testing.
 
./source/script/tests/functions:
37c37
<       if test $? == 0; then
---
>       if test $? = 0; then
77c77
<       if test $? == 0; then
---
>       if test $? = 0; then


In ./source/script/tests/runtests.sh:
3c3
< if [ "x$1" == "x" ]; then
---
> if [ "x$1" = "x" ]; then
8c8
< if [ $# == 2 ]; then
---
> if [ $# = 2 ]; then
19c19
< export PREFIX_ABS=`pwd`
---
> PREFIX_ABS=`pwd`; export PREFIX_ABS
26c26
< USERNAME=`whoami`
---
> USERNAME=`who am i |awk '{print $1}`
52c52
< if test "x`smbd -b | grep SOCKET_WRAPPER`" == "x"; then
---
> if test "x`smbd -b | grep SOCKET_WRAPPER`" = "x"; then
83c83
<       interfaces = lo
---
>       interfaces = lo0

Comment 2 Gerald (Jerry) Carter 2006-01-17 21:44:39 UTC
I'm applying the patch except the change to 
the loopback interface.  I'll deal with that later.