Opened 20 years ago

Closed 20 years ago

#714 closed defect (invalid)

Clean "lfs" user environment: CFLAGS, CXXFLAGS and LD_RUN_PATH are other vars that must be unset.

Reported by: gerard@… Owned by: greg@…
Priority: lowest Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc: ryan.oliver@…, lfs@…, fhuberts@…

Description

Since we unset a few vars already, why not add these two. I figure it'll cause more good than harm.

Change History (12)

comment:1 by gerard@…, 20 years ago

Cc: lfs@… added

comment:2 by gerard@…, 20 years ago

* Bug 711 has been marked as a duplicate of this bug. *

comment:3 by gerard@…, 20 years ago

Priority: lowesthigh
Summary: Add CFLAGS and CXXFLAGS to setting up environment for user 'lfs'Clean "lfs" user environment: CFLAGS, CXXFLAGS and LD_RUN_PATH are other vars that must be unset.

Add LD_RUN_PATH to the list and the list will probably keep growing.

We'll need to find a way to clean the entire environment when su'ing to user 'lfs' and only setting the few vars we actually need (PATH, LC_ALL)

comment:4 by greg@…, 20 years ago

Owner: changed from lfs-book@… to greg@…

comment:5 by greg@…, 20 years ago

Resolution: fixed
Status: newclosed

There were no major objections. Committed fixes. Closing.

comment:6 by fhuberts@…, 20 years ago

Cc: fhuberts@… added
Resolution: fixed
Status: closedreopened

For my Red Hat 9 system the description of 'Setting up the environment', file lfs-book-cvs-html-2004-01-26/chapter05/settingenvironment.html do not work under X/Gnome (fully up-to-date system w.r.t. red hat network updates, kernel 2.4.24)

I have worked around by not doing the exec in .bash_profile, but moving this to a script file and executing this after login in an xterm (gnome-terminal)

Haven't traced the cause but Gnome complains that my session lasted fewer than 10 seconds and then refuses to start my session (user lfs)

comment:7 by gerard@…, 20 years ago

Have you tried this outside of a gnome-terminal? We need to know if this same problem occurs when you login from a virtual console, outside of X, so we can rule out a Gnome terminal issue.

comment:8 by gerard@…, 20 years ago

Priority: highlowest

Downgrading to P5 until it is verified by testing team.

comment:9 by ryan.oliver@…, 20 years ago

Have not been able to reproduce the error running from gnome-terminal under

Mandrake-9.1 ( 2.4.21-0.13mdk kernel, glibc 2.3.1, gnome-terminal 2.2.1, bash-2.05b) Devel LFS ( 2.6.1 kernel, glibc 2.3.3 (NPTL), gnome-terminal 2.4.1, bash-2.05b)

Suspect possible RH issue... will continue to investigate.

comment:10 by ryan.oliver@…, 20 years ago

Cc: ryan.oliver@… added

comment:11 by fhuberts@…, 20 years ago

I did try it outside of X on a virtual console, and that works. Must somehow be related to stuff surrounding gnome-terminal, but have no time to trace this at this time, when I have traced it I'll let you know

Linux 2.4.24 i686 i686 i386 GNU/Linux gnome-terminal --geometry 140x40 Gnome gnome-terminal 2.2.1 Gnome 2.2.0

comment:12 by gerard@…, 20 years ago

Resolution: invalid
Status: reopenedclosed

Testing Team qualified bug as invalid. Closing.

Note: See TracTickets for help on using tickets.