LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-30-2007, 05:13 PM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
PKG_CONFIG_PATH gets longer & longer?


I have found a curiousity.. this is probably not super important, but I can't stand not understanding this.

why does my PKG_CONFIG_PATH seem to keep getting longer & longer?

if I do 'echo $PKG_CONFIG_PATH'

as myself, from the console:
Code:
/opt/gEDA/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig
as root from the console:
Code:
/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig
as myself, from terminal in xfce:
Code:
/opt/gEDA/lib/pkgconfig:/opt/gEDA/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/kde/lib/pkgconfig
and as root, from terminal in xfce:
Code:
/opt/gEDA/lib/pkgconfig:/opt/gEDA/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/kde/lib/pkgconfig
I guess I understand that 'su' from inside xfce _should_ inherit the environment vars from the terminal because they are all set when I open it? But I don't understand why the line grows between the console and X session, other than this I found :
Code:
# cat /etc/profile.d/pkgconfig.sh 
#!/bin/sh
if [ ! "$PKG_CONFIG_PATH" = "" ]; then
  PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig:/opt/kde/lib/pkgconfig
else
  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig
fi
export PKG_CONFIG_PATH
so is it like every terminal opened in X will go through the profile.d scripts and since $PKG_CONFIG_PATH is defined it keeps appending the standard directories? (my theory)

Why? It seems this is incorrect and should only set PKG_CONFIG_PATH once and let the user's .bash_profile or CLI modify it as needed.

Is there another reason I don't know of for doing it this way?

Does it bother anyone else? Does it matter anyway?

many thanks!

Last edited by bioe007; 07-30-2007 at 05:14 PM.
 
Old 07-31-2007, 01:54 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
It doesn't matter and most people wouldn't have noticed.
 
Old 07-31-2007, 10:13 AM   #3
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
does that qualify me for ultra nerd status?
 
Old 07-31-2007, 12:30 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Au contraire, I meant that as a stroke.
 
Old 07-31-2007, 12:39 PM   #5
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by gnashley
Au contraire, I meant that as a stroke.
i'm googling to find out if that is an insult..

no help...

Last edited by bioe007; 07-31-2007 at 12:40 PM.
 
Old 08-01-2007, 02:51 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Sorry, it means:
"On the contrary, I meant the comment as a compliment." -for being so sharp that you checked yourself and noticed something unusual.
 
Old 08-01-2007, 10:01 AM   #7
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
ahh, well in that case. thanks.
 
  


Reply

Tags
pkgconfig


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba user name & passwd no longer accepted spawn007 Linux - Networking 0 07-18-2007 03:20 PM
eth0 & wlan0 lag longer than usual at boot time loads lostlyre Linux - Wireless Networking 0 04-02-2004 02:09 PM
SuSE 8.2 & USB Optical Wheelmouse no longer working buttersoft Linux - Hardware 2 12-17-2003 12:24 PM
I can no longer see anything...! Thymox Linux - Networking 8 11-19-2002 04:57 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration