Wayne Sallee | 6 Jul 2012 17:29

5.4.1. Installation of Cross Binutils -Permission Denied

In a previous chapter the following was given:
chown -v lfs $LFS/tools
chown -v lfs $LFS/sources

But root still owns $LFS

So now when I enter:
mkdir -v ../binutils-build

I get Permission Denied.

Should lfs also own $LFS?

Wayne Sallee
Wayne <at> WayneSallee.com
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Wayne Sallee | 6 Jul 2012 18:03

Re: 5.4.1. Installation of Cross Binutils -Permission Denied

Wayne Sallee wrote:
> In a previous chapter the following was given:
> chown -v lfs $LFS/tools
> chown -v lfs $LFS/sources

And shouldn't that have been:

chown -v lfs $LFS/sources -R

Wayne Sallee
Wayne <at> WayneSallee.com

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Firerat | 6 Jul 2012 18:09
Gravatar

Re: 5.4.1. Installation of Cross Binutils -Permission Denied


On Jul 6, 2012 4:29 PM, "Wayne Sallee" <Wayne <at> waynesallee.com> wrote:
>
> In a previous chapter the following was given:
> chown -v lfs $LFS/tools
> chown -v lfs $LFS/sources
>
> But root still owns $LFS
>
> So now when I enter:
> mkdir -v ../binutils-build
>
> I get Permission Denied.
>
> Should lfs also own $LFS?

Your mkdir command should be done when you are in the binutils src dir, in effect you are creating $LFS/sources/binutils-build
So $LFS need not be owned by lfs

Hope the makes sense,
To clarify that a little more, each chapter assumes you have done

    untar xyz.tar.bz2
    cd xyz

the ../ is the parent dir of the current

....

Just seen your latest post come in,, the -R is the recursive flag, but since that dir has just been created it shouldn't have anything in it, still no harm adding that

 

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Firerat | 6 Jul 2012 18:13
Gravatar

Re: 5.4.1. Installation of Cross Binutils -Permission Denied


On Jul 6, 2012 5:09 PM, "Firerat" <firer4t <at> googlemail.com> wrote:
>
>
>
> To clarify that a little more, each chapter
Sorry, that should read
     Each section of the chapter

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Wayne Sallee | 6 Jul 2012 18:20

Re: 5.4.1. Installation of Cross Binutils -Permission Denied

Firerat wrote:
>
>
> On Jul 6, 2012 4:29 PM, "Wayne Sallee" 
> <Wayne <at> waynesallee.com 
> <mailto:Wayne <at> waynesallee.com>> wrote:
> >
> > In a previous chapter the following was given:
> > chown -v lfs $LFS/tools
> > chown -v lfs $LFS/sources
> >
> > But root still owns $LFS
> >
> > So now when I enter:
> > mkdir -v ../binutils-build
> >
> > I get Permission Denied.
> >
> > Should lfs also own $LFS?
>
> Your mkdir command should be done when you are in 
> the binutils src dir, in effect you are creating 
> $LFS/sources/binutils-build
> So $LFS need not be owned by lfs
>
> Hope the makes sense,
> To clarify that a little more, each chapter 
> assumes you have done
>
>     untar xyz.tar.bz2
>     cd xyz
>
> the ../ is the parent dir of the current
>

Yes, that makes sence, and what I expected, except 
the book says "The Binutils documentation recommends 
building Binutils outside of the source directory in 
a dedicated build directory".
Now I see what it means. It's referring to the 
Binutils source directory not the $LFS/source 
directory. :-)
So yes, it would be created then in 
$LFS/sources/binutils-build
I understand now. Thanks.

Wayne Sallee
Wayne <at> WayneSallee.com
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Wayne Sallee | 12 Jul 2012 23:23

Re: 5.4.1. Installation of Cross Binutils -Permission Denied

Firerat wrote:
> Just seen your latest post come in,, the -R is the recursive flag, but 
> since that dir has just been created it shouldn't have anything in it, 
> still no harm adding that

I think that it's probably better not to use the -R, so that the sources 
don't get accidentally erased when doing an uncompress command, as some 
of those commands delete the compressed files after extracting.

I had asked if it should be -R because I did not know that a root owned 
compressed file could be uncompressed, but it makes since that you can 
uncompress it since you can read it.

So everything is going good.

Thanks,

Wayne Sallee
Wayne <at> WayneSallee.com
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Gmane