Re: librsvg fails to find cargo, no install but no error

"Ken Moffat" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
On Tue, Nov 02, 2021 at 09:51:50PM +0000, Ken Moffat wrote:
> On Tue, Nov 02, 2021 at 10:25:12PM +0100, Pierre Labastie wrote:
> > On Tue, 2021-11-02 at 19:20 +0000, Ken Moffat wrote:
> > > Hi Pierre, list,
> > > 
> > > However, librsvg is beating me.

> > 
> > Problem is that if you use "sudo -E sh << ROOT_EOF", at this point, PATH is
> > /usr/bin:/usr/sbin (or any default secure_path set in /etc/sudoers or
> > /etc/sudoers.d) and does not contain /opt/rustc/bin anymore. Furthermore, since
> > a new shell has been launched, set -e is not in effect so:
> > - cargo is not found
> > - the script does not exit although there is an error
> > 
> > I've been knowing this for a while, but too lazy to think of a way to fix it.
> > when I have a problem with PATH after sudo -E, I usually add "source
> > /etc/profile", which is somewhat overkill. And I live with non fatal errors...
> > Since I think I was the only regular user of ablfs tools, I did not bother to
> > change the script generation... But now that we are two of us, I think I can try
> > to fix that.
> > 
> > I guess I should change to:
> > sudo -E sh -e << ROOT_EOF
> > PATH=$PATH:/usr/sbin
> > ...
> > 
> > Needs some testing though.
> > 
> > Pierre
> > 
I confirm that following this suggestion fixes the install of
librsvg.

Oddly (IMHO) caro is only referenced that once at the start of the
install, apparently to release a lock, I'd have thought that could
have been done at the end of the build.

Will let you know when I encounter any similar issues.

ĸen
-- 
Vetinari smiled. "Can you keep a secret, Mister Lipwig?"
"Oh, yes, sir. I've kept lots."
"Capital. And the point is, so can I. You do not need to know.”

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.