LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-23-2003, 02:12 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Installing findutils-4.1, ch. 6, make options


Ok, the book says:
Quote:
By default, the location of the updatedb database is in /usr/var. To make the location of /var/lib/misc/locatedb file FHS compliant, pass the localstatedir=/var/lib/misc option to both make commands below.

Continue with compiling the package:

make libexecdir=/usr/bin

Finish installing the package:

make libexecdir=/usr/bin install
So, I am assuming they just got lazy in the book and didn't type this all out, but they do expect you to type in:

make libexecdir=/usr/bin --localestatedir=/var/lib/misc
make libexecdir=/usr/bin install --localestatedir=/var/lib/misc

Is that correct? I guess I just want to make sure it's 2 dashes, --, and make sure the stuff after the equal sign doesn't need to be in parenthesis.

Thanks...

Last edited by itsjustme; 07-23-2003 at 02:13 PM.
 
Old 07-23-2003, 03:58 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I believe they mean for you to do this:

Code:
make libexecdir=/usr/bin localestatedir=/var/lib/misc
make libexecdir=/usr/bin localestatedir=/var/lib/misc install
Passing "--localestatedir=/var/lib/misc" shouldn't work. That would be interpreted by make as a command-line option, whereas what you're trying to do is define a directory for the package your compiling... not make. So "localestatedir=/var/lib/misc" would define a shell variable for that command only, and the Makefile for findutils probably looks at that variable's contents to determine where to place the database.
 
Old 07-23-2003, 04:29 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
I see what you are saying.

Quote:
Originally posted by Dark_Helmet
Passing "--localestatedir=/var/lib/misc" shouldn't work. That would be interpreted by make as a command-line option, whereas what you're trying to do is define a directory...
But the part, then, that confused me was:

Quote:

pass the localstatedir=/var/lib/misc option to both make commands
Sounded like a command line option to me.

I'm glad i asked, and I assume that that worked for you.

Thanks...
 
Old 07-23-2003, 05:08 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
To be honest, I can't remember if I made the system 100% FHS compliant. It wouldn't hurt to run the command with the '--' prepended to the localestatdir option, because I'm pretty sure you'll just get an error. And in that case, you just run it again without the dashes...
 
Old 07-24-2003, 12:43 PM   #5
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Well, now I'm confused, or in other words, it's a normal day.

I found this link:
http://archive.linuxfromscratch.org/...findutils.html

Which shows the localestatedir assignment in front of the libexec part.

And in this link:
http://www.de.linuxfromscratch.org/v...findutils.html

it doesn't say where to put the assignment in the command, but it does say to use the '--'.
 
Old 07-24-2003, 01:06 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by itsjustme
Well, now I'm confused, or in other words, it's a normal day.

I found this link:
http://archive.linuxfromscratch.org/...findutils.html

Which shows the localestatedir assignment in front of the libexec part.

And in this link:
http://www.de.linuxfromscratch.org/v...findutils.html

it doesn't say where to put the assignment in the command, but it does say to use the '--'.
Confusing, isn't it?

If you use findutils-4.1 you pass "localstatedir=/var/lib/misc" to make like so:

make localstatedir=/var/lib/misc <other stuff here>

Don't use --localstatedir. In this case it isn't a command line option to the make program, but an override to a definition in the Makefile file. You're passing a variable name and value on the make command line, not a program option.

If you use findutils-4.1.x you pass the option to the configure script as a command line option ala ./configure --blah --localstatedir=/var/lib/misc and the configure script will write the Makefile files with that variable and value so you don't need to override it anymore. Earier findutils versions (like 4.1) don't support the configure script option.

So, which one do you use? Depends on your findutils version. If you're following the CVS version of the book, you're using (or supposed to anyways) version 4.1.7 (use configure script option). If you use a stable release, you're using 4.1 (use make option).

I hope it's clear now?
 
Old 07-24-2003, 02:01 PM   #7
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Hey, thanks a lot!

I'll use this part:
Quote:
If you use findutils-4.1 you pass "localstatedir=/var/lib/misc" to make like so:

make localstatedir=/var/lib/misc <other stuff here>
I purchased the 4.1 book and the CD in your initial pre-order special offer since I have a 56K connection, so I'm not using CVS, which, as I understand it, is Concurrent Version System, and involves a bunch of downloading. I am however, checking the printed book against the online book for typos and changes.

I'm trying not to deviate from the book too much since this is my first attempt. FBBG!

Thanks for the help.


Edit: my typo in posts above: localestatedir - should be localstatedir

Last edited by itsjustme; 07-24-2003 at 02:52 PM.
 
Old 07-24-2003, 03:10 PM   #8
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
[slaps palm to forehead]

Ok, going back and looking at it again I see the directory assignment 'pattern':

make (localstatedir=/var/lib/misc) (libexecdir=/usr/bin)

and

make (localstatedir=/var/lib/misc) (libexecdir=/usr/bin) install

[/slaps palm to forehead]

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make architecture options mcirsta Linux - Newbie 2 04-30-2005 07:09 PM
make <systype> [options] spideywebsling Linux - Newbie 10 07-03-2004 04:05 PM
'make mrproper' - make bzImage options. liguorir Linux - Software 4 06-26-2003 06:48 PM
including options in make watashiwaotaku7 Linux - General 0 01-22-2003 07:55 PM
error findutils.. sapilas Linux From Scratch 2 05-16-2002 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration