LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   qt5 and pathappend (https://www.linuxquestions.org/questions/linux-from-scratch-13/qt5-and-pathappend-4175615648/)

jr_bob_dobbs 10-14-2017 07:44 AM

qt5 and pathappend
 
Running [B]LFS 8.0, 64 bit.

I finally installed QT5. Had been putting it off for reasons. Anyway, it may have installed fine, save for one message I get on login (as either user).

I haven't got a pathappend command. Now I'm sure I have all of the required dependencies, because configure, make and make install did not complain.

Can anyone please advise? Thank you.

p.s. In the meantime I guess it should be safe for me to go into that script and change any "pathappend" to a more wordy "PATH=stuff:$PATH" ?

jr_bob_dobbs 10-14-2017 08:00 AM

Well, turns out I'm a dope. :o

The pathappend is an environment variable containing a script. Description of setting it up is part of the BLFS 8.0 book.
Code:

pathappend () {
        pathremove $1 $2
        local PATHVARIABLE=${2:-PATH}
        export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
}

That is placed in the /etc/profile script.


All times are GMT -5. The time now is 07:56 AM.