Re: [blfs-dev] Xorg Font package causes script stop and exit shell

2014-03-06 Thread Bruce Dubbs
Arthur Radley wrote:
> Bruce Dubbs  gmail.com> writes:
>
>>
>> I don't understand why they didn't get installed.  I can see that a
>> several directories may be kept that are not needed, but all the files
>> should still be installed.
>>
>> -- Bruce
>
> That happened because the errors caused by the failure to remove two files
> in the build directory resulted in the script exiting the shell at that
> exact point, as it should I guess. That particular package is somewhere in
> the middle of the md5 file. Nothing following it was installed.

OK.  I see the issue now.  We jsut need to add as_root to the rm command.

> All of this happened without a lot of visual evidence that anything went
> awry. The two single lines reporting the error are plainly there if I am
> looking for them, but not particularly noticeable the first time as I was
> moving fast through this stuff as usual.
>
> Anyway, the one thing that made me stop and start looking at it was that the
> exit command logged me out of the console instead of merely dropping back to
> the previous shell. I repeated this several times. It happens consistently.

If the exit is a part of the script started by bash -e, then that 
shouldn't happen.  If it is after the script, I can see that.

   -- Bruce



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


Re: [blfs-dev] Xorg Font package causes script stop and exit shell

2014-03-06 Thread Arthur Radley
Bruce Dubbs  gmail.com> writes:

> 
> I don't understand why they didn't get installed.  I can see that a 
> several directories may be kept that are not needed, but all the files 
> should still be installed.
> 
>-- Bruce

That happened because the errors caused by the failure to remove two files
in the build directory resulted in the script exiting the shell at that
exact point, as it should I guess. That particular package is somewhere in
the middle of the md5 file. Nothing following it was installed. 

All of this happened without a lot of visual evidence that anything went
awry. The two single lines reporting the error are plainly there if I am
looking for them, but not particularly noticeable the first time as I was
moving fast through this stuff as usual. 

Anyway, the one thing that made me stop and start looking at it was that the
exit command logged me out of the console instead of merely dropping back to
the previous shell. I repeated this several times. It happens consistently.

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


Re: [blfs-dev] Xorg Font package causes script stop and exit shell

2014-03-06 Thread Bruce Dubbs
Arthur Radley wrote:
> Bruce Dubbs  gmail.com> writes:
>
>>
>> Some packages modify or create packages in the local directory when
>> doing a make install so when you exit sudo, you can't delete those files
>> in the directory.  Just go ahead and use sudo to delete.

> Well, that isn't exactly why I posted about this. I already knew to delete
> the directory as root. It's more about how I easily could have overlooked
> this and moved on not knowing that about 600 files did not get installed.

I don't understand why they didn't get installed.  I can see that a 
several directories may be kept that are not needed, but all the files 
should still be installed.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] Xorg Font package causes script stop and exit shell

2014-03-06 Thread Arthur Radley
Bruce Dubbs  gmail.com> writes:

> 
> Some packages modify or create packages in the local directory when 
> doing a make install so when you exit sudo, you can't delete those files 
> in the directory.  Just go ahead and use sudo to delete.
> 
>-- Bruce
> 

Well, that isn't exactly why I posted about this. I already knew to delete
the directory as root. It's more about how I easily could have overlooked
this and moved on not knowing that about 600 files did not get installed.

I experimented with re-installing Xorg Fonts again with sudo as currently
written in the book, and also again as root, and again with the as_root
function added to the rm -rf line. The script as it is in the book
consistently exits the shell after installing that particular package.
Installing Xorg Fonts as root or with the extra as_root function call both
install identical complete package sets (I'm using a timestamp package
logging script).

I just sort of viewed this a potential defect in the those Xorg installation
scripts. Maybe not though. Could just be some kind of local issue with me.
So long.

Arthur




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


Re: [blfs-dev] Xorg Font package causes script stop and exit shell

2014-03-06 Thread Bruce Dubbs
Arthur Radley wrote:
> I'm building BLFS from a recent development version. The package
> font-bh-ttf-1.0.3.tar.bz2 in Xorg Fonts causes the installation script to
> exit with an error...
>
> rm: cannot remove
> 'font-bh-ttf-1.0.3/@baseconfigdir@/conf.avail/42-luxi-mono.conf': Permission
> denied
> rm: cannot remove
> 'font-bh-ttf-1.0.3/@baseconfigdir@/conf.d/42-luxi-mono.conf': Permission 
> denied
>
> So some files did not get installed, and it wasn't really obvious either. I
> might not have known except for noticing that the exit command did not
> return to the previous shell but logged me out of the console. And there was
> the build directory still sitting there in the font directory.
>
> I'm running the Xorg scripts as an ordinary user and Sudo is installed, so
> the as_root function is using the sudo "if" condition. I reproduced this
> issue by attempting to re-install font-bh-ttf-1.0.3 manually. The ordinary
> user cannot delete this package's build directory (and perhaps others, who
> knows). I could remove it with sudo. I often find that root is required to
> delete build directories.
>
> Anyway, I don't know if this affects other people or not. What's your
> opinion of adding the as_ root function to the rm -rf $packagedir command in
> these Xorg scripts?

Some packages modify or create packages in the local directory when 
doing a make install so when you exit sudo, you can't delete those files 
in the directory.  Just go ahead and use sudo to delete.

   -- Bruce

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