Hello,

* Szabolcs Szakacsits <[EMAIL PROTECTED]> [2008-05-17 13:49]:
> On Sat, 17 May 2008, Szabolcs Szakacsits wrote:
> > May I ask why do you install mount.ntfs-3g and ntfs-3g to somewhere else 
> > and where?

Actually I did not intend to do so, $(rootsbindir) is automatically set
to /usr/sbin somewhere deep in the OpenEmbedded build system.

> > Didn't you intend to submit the patch below? Would this fix you problem?
> > (Note, this could still result mount failures if ntfs-3g is not on the root
> > filesystem).
> Sorry, my patch is not ok. Apparently your problem is with the hard coded 
> '/sbin'. The question is why? By definition the mount helpers must be at 
> '/sbin/mount.<filesystem>'. This is hard coded in mount.c.

Your patch also fixes my bug, but it introduces another problem.

The DESTDIR is usually set to an empty directory for creating an ipkg
package, lets say /tmp/ipk/

My problem was, that the install -d line creates a directory
$(DESTDIR)$(rootsbindir), which is /tmp/ipk/usr/sbin then.
After that, a symlink to /sbin/ntfs-3g is created in /tmp/ipk/sbin, but
/tmp/ipk/sbin does not exist. Therefore, ln fails and the installation
aborts. Either replacing the hardcoded /sbin by $(rootsbindir) or
replacing $(rootsbindir) by /sbin will both fix the issue, but following
your arguments the latter one seems to be a better solution.

It is not good though to add $(DESTDIR) to the first parameter to
$(LN_S), because the symlink should reflect the path in the final
installation, not in the intermediate directory (Think about chroot).

I hope this helps in clarifying the issue.

Bye,

Georg
-- 
|| http://op-co.de ++  GCS/CM d? s: a-- C+++ UL+++ !P L+++ E--- W++  ++
|| gpg: 0x962FD2DE ||  N++ o? K- w---() O M V? PS+ PE-- Y+ PGP++ t*  ||
|| Ge0rG: euIRCnet ||  5 X+ R tv b+(+++) DI+(+++) D+ G e* h! r* !y+  ||
++ IRCnet OFTC OPN ||________________________________________________||

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to