LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 06-05-2004, 05:11 PM   #1
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
gentoo's portage system info?


hello, I'm think (ok, maybe diffidently) going to be installing gentoo on a system I'm upgrading (hardware and OS's, I'm sick of windows, and got the rest of my family to be more or less convinced that linux will be better for surfing the web)

anyways, one thing i hate in linux is the not to organized file structure, i know most files will let you install them to different places by passing options to configure, and some programs have hardcoded file info (like opening /etc/xyz)

what i want to do is put programs in /progs/(sys|x|math|text|net)/(bin|sbin|lib)

changing etc to /config and maybe having that area a bit split into init/net/boot/users/portage

possibly even other non standards changes, i can deal with the hardcoded things myself, but what i want to know is will portage let me change the options it passes to configure the package? or could it at least let me edit the ebuild for the file?

and also when i tell it to update my system will it keep the options i told it to pass to compile the original program to the new update (so it wont use the default /etc /bin /sbin /lib ?

also can portages config files be changed so they have other names without to much trouble?

-thanks
 
Old 06-05-2004, 05:39 PM   #2
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
What you want is theoretically possible. You can change the directories with which Gentoo configures packages (use E_SBINDIR, E_LIBEXECDIR, E_DOCDIR, E_SYSCONFDIR, E_INITDIR, E_SPOOLDIR, E_MAN1DIR, E_EXAMPLESDIR, and so forth). All portage commands will read make.conf, so as long as you have them set in there it'll work. Some packages, as you say, have hardcoded paths and won't obey these.

However, it is a VERY BAD IDEA. The hierarchy is such a big part of Unix/Linux that it will be a huge headache to ignore it like you want. Just because the logic is different than you're used to doesn't make it bad.
 
Old 06-05-2004, 06:03 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
solnul: thanks, it looks like ill be using sed or at least changing the source files (are there?) for portage then (time to freshen up on python)

but one little thing: some programs will have different install paths that they will require, is there a way to get portage to use a separate E_SBINDIR(just for example) for certain known programs? or have it use ebuilds currently kept on the system to update known programs?
 
Old 06-05-2004, 06:15 PM   #4
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
You can specify variables on the command line for one-time use, like "E_SBINDIR=/just/for/this/command E_SYSCONFDIR=/another/dir emerge whatever".

Portage will look in your overlay first (PORTAGE_OVERLAY="a list of dirs separated by spaces"), so you can put your custom ebuilds there.

Let me stress again, though, that you really don't want to do this.
 
Old 06-05-2004, 06:20 PM   #5
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
Have you looked at GoboLinux? They're experimenting with a different layout too.
 
Old 06-05-2004, 06:55 PM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
ah, i heard something like that when i first started to look at linux, never remembered the name, and forgot about it till now, thanks .. but i wont want to go with that distro (for one i like portage, will let me compile without me needing to be there while its working, plus i don't think i have the time to get it...... and also i don't like there layout to well, i prefer fairly short simple terms that categorize programs by what they do, and not name/version)

it looks like setting up bash functions to execute the emerge command would be best as i could set it up to fairly easily handle what ill need

and yes, i know i shouldn't... il set up everything tho it will still work, and I'm willing to modify little things if need be, and ill be sure to set up a local install directory for users so they wont have to deal with the sources for the misbehaving programs and get all confused over why its going insane

thanks again solnul, you've been incredibly helpful
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo's Portage in SLACKWARE. cheater1034 Slackware 14 06-08-2005 10:56 AM
How to use apt? I'm use to gentoo's portage dataangel Suse/Novell 6 05-30-2005 11:47 PM
portage system for linux integrated with rpm! asprayama Linux - News 1 05-26-2005 09:07 AM
package system portage Boorish Id Linux From Scratch 1 03-04-2005 07:32 PM
ok , I heard of a debian that uses the gentoo portage system I was wonder if maximalred Debian 2 06-12-2004 06:09 PM


All times are GMT -5. The time now is 07:42 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 Google+: linuxquestions
Open Source Consulting | Domain Registration