[OmniOS-discuss] Building samba4 on Omnios

Geoff Nordli geoffn at gnaa.net
Wed Nov 29 21:02:07 UTC 2017


Hi.

In case anyone else wants to go down this path, I was able to get the 
Samba4 packages built on omnios from this repo: 
https://github.com/oposs/pkg.oetiker.ch-build

The functions.sh file points to gcc-5.1.0, but there is only gcc-5

pkg.oetiker.ch-build/lib$ grep -i gcc functions.sh
PATH="/opt/gcc-5.1.0/bin:/opt/oep/bin:/opt/omni/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/gnu/bin:/usr/sfw/bin"
     [[ -x /opt/gcc-5.1.0/bin/gcc ]] || needed+=" developer/gcc5"

I decided to create a symlink for gcc-5.1.0

#cd /opt

#sudo ln -s gcc-5 gcc-5.1.0

#ls -al /opt/gcc-5*
lrwxrwxrwx 1 root root 5 Nov 24 13:10 /opt/gcc-5.1.0 -> gcc-5

Setup a publisher:

#pkgrepo create /oep-pkg
#pkgrepo -s /oep-pkg add-publisher pkg.oetiker.ch

In the lib/functions.sh file I needed to add sudo to the pkgsend command.

logcmd sudo $PKGSEND -s $PKGSRVR publish -d $DESTDIR -d $TMPDIR/$BUILDDIR \
logcmd sudo $PKGSEND -s $PKGSRVR publish $P5M_FINAL || \


Then go in and build the openldap and samba4 packages.

now, on to getting a working samba4 system...

Geoff







More information about the OmniOS-discuss mailing list