FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat Jan 16, 2021 04:19



Post new topic Reply to topic  [ 5 posts ] 
configure option --exec-prefix not honored ? 
Author Message

Joined: Tue Jun 24, 2008 15:49
Posts: 4
Post configure option --exec-prefix not honored ?
Hello,

I am cross compiling ntfs-3g (2009.1.1, gcc 4.1.1) and would like the "make install" step to put everything in some directory of my choice. So I use the --prefix option:

Code:
./configure --prefix=/mnt/dir --host=sh4-linux --build=i686
make
make install

the problem is that --prefix is not honored for architecture dependent files in my host install directories (which would screw up my system and is annoying because it's difficult to see what it has done). It seems to have put at the correct place all the architecture independent ones (man pages, links, ...).

I have also tried to add explicitly the --exec-prefix option (normally it should default to the $PREFIX value), but same result.

PS: transparent UTF-8 conversion support is a really cool feature, thanks !


Wed Jan 28, 2009 16:21
Profile

Joined: Tue Jun 24, 2008 15:49
Posts: 4
Post Re: configure option --exec-prefix not honored ?
sorry, syntax error :) (can't edit posts ?)

I meant:

the problem is that --prefix is not honored for architecture dependent files and tries to install them in my host install directories

instead of:

Quote:
the problem is that --prefix is not honored for architecture dependent files in my host install directories


Wed Jan 28, 2009 16:33
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: configure option --exec-prefix not honored ?
It's honored except the binaries. From the NTFS-3G build system

Code:
# Executables should be installed to the root filesystem, otherwise
# automounting NTFS volumes can fail during boot if the driver binaries
# and their dependencies are on an unmounted partition. Use --exec-prefix
# to override this.


So --exec-prefix should work.

Moreover mount.ntfs-3g MUST BE ALWAYS in /sbin due to the design of the Linux mounting system. If you don't want to add /sbin/mount.ntfs-3g and want 'mount -t ntfs-3g' ... to be broken then use './configure --disable-mount-helper'.


Wed Jan 28, 2009 17:59
Profile

Joined: Tue Jun 24, 2008 15:49
Posts: 4
Post Re: configure option --exec-prefix not honored ?
szaka wrote:
It's honored except the binaries.


then in this line that is output by ./configure --help:

Code:
--exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX [PREFIX]

[PREFIX] should be removed because it wrongly suggests that PREFIX will be the default

szaka wrote:
So --exec-prefix should work.

It's actually true, except for one thing. With --exec-prefix it copies the binaries to the right place, but it tries to do this:

ln -s -f "/mnt/dir/bin/ntfs-3g" "/sbin/mount.ntfs-3g"
(that's why I was mistaken)

apparently that's the only thing that is wrong

I tried setting all the options (--bindir, --sbindir, --libexecdir, ...) but it still wants to make the link to my host instead of to the target.

szaka wrote:
Moreover mount.ntfs-3g MUST BE ALWAYS in /sbin due to the design of the Linux mounting system.

I want mount.ntfs-3g to bin in /sbin but only on the TARGET, not on the HOST where it will just break my system. When you cross compile, you need an intermediate step (first in some temp dir, then at the correct place on the target) because you DON'T want binaries from a different arch being installed or even worse replace your current binaries.


Wed Jan 28, 2009 18:54
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: configure option --exec-prefix not honored ?
What you want to achieve is done by using DESTDIR: http://www.gnu.org/prep/standards/html_ ... STDIR.html


Wed Jan 28, 2009 19:14
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.