[Bug 3880] New: The samba package is not having a correct mount.smb/mount. smbfs link created

bugzilla-daemon at treke.net bugzilla-daemon at treke.net
Mon Feb 25 20:58:27 UTC 2008


           Summary: The samba package is not having a correct
                    mount.smb/mount.smbfs link created
           Product: Openembedded
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: trini at embeddedalley.com

Created an attachment (id=6454)
 --> (http://bugs.openembedded.net/attachment.cgi?id=6454)
Ensure that we have /sbin/mount.smb* links

Currently, samba (3.0.23c, but shown in all recipes) does not create a correct
symlink for mount.smbfs.  The problem is that within the installer we have:
 # this is a special case, mount needs this in a specific location
 if [ $p2 = smbmount ]; then
   if [ ! -d $DESTDIR/@rootsbindir@ ]; then
      mkdir $DESTDIR/@rootsbindir@
   echo "Creating sym link $DESTDIR/@rootsbindir@/mount.smbfs to $BINDIR/$p2 "
   ln -sf $BINDIR/$p2 $DESTDIR/@rootsbindir@/mount.smbfs
In samba-3.0.23c/source/script/installbin.sh.in.  The problem here is that once
we actually setup to build, this becomes (from the install log):

Creating sym link
to /usr/bin/smbmount

So we don't actually end up with a link in /sbin like we must.  The patch I've
attached ensure that:
- Any link in /sbin is removed.  This is because some older recipes did this
possibly as they had a wrong link there.
- We remove the broken link created by the install
- /sbin does exist.

Finally, we provide links for both '-t smb' and '-t smbfs' as other
distributions support either method.

Note that CIFS is also broken and will be a follow-up patch.

Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Openembedded-issues mailing list