Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

/etc/env.d question: $var replace or $var append?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Hal[PT]
n00b
n00b
Posts: 33
Joined: Sun Feb 09, 2003 1:02 pm
Location: Lisbon

/etc/env.d question: $var replace or $var append?

  • Quote

Post by Hal[PT] » Wed Mar 09, 2005 9:44 pm

Hi

I'm trying to install java web services and make it use tomcat5. Portage has tomcat5 but it doesn't have jwsdp so I'm installing it by hand but trying to use all features gentoo offers. On the instalation process it is said that I must change some env var which is set in /etc/env.d. Instead of replacing /etc/env.d/21tomcat I wrote a /etc/env.d/22jwsdp... it seamed cleaner.

But while reading other files on the same dir I got myself these unanswered questions:
Do the numbers on the beginning of the file names mean the order by which they are read?
Why are some variables (like MANPATH and CLASSPATH) appended while others (like CATALINA_HOME) are simply replaced?


Thanks
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Wed Mar 09, 2005 11:41 pm

Yes, the numbers are used exactly because that causes them to be read in that order (they are simply read alphabetically.)
Why some are appended to and others replaced will have to do with what kind of variable it is: if a variable is used - and therefore owned by - only one package then that package may safely reset it at will.
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
Hal[PT]
n00b
n00b
Posts: 33
Joined: Sun Feb 09, 2003 1:02 pm
Location: Lisbon

  • Quote

Post by Hal[PT] » Thu Mar 10, 2005 12:21 am

The append vs reset question was more like regarding this:

In my file I do:
CATALINA_HOME=xxx
PATH=yyy
CLASSPATH=zzz

None of this is only used by this package. CATALINA_HOME get's completely rewritten. PATH gets appended and so does CLASSPATH. Now why that? :?:
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Thu Mar 10, 2005 12:24 am

I have no idea - what is that catalina_home variable for ?
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
Hal[PT]
n00b
n00b
Posts: 33
Joined: Sun Feb 09, 2003 1:02 pm
Location: Lisbon

  • Quote

Post by Hal[PT] » Thu Mar 10, 2005 1:00 pm

Just some env var that tomcat needs. I need to rewrite it so that instead of tomcat's install dir i use jwsdp install dir.

The behaviour of the rewrite/append is good for me because it does what i wanted it to, but still i would like to know why :P
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic