public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] installing portage in another directory structure
@ 2003-05-20 14:35 Stephan Hermann
  2003-05-20 14:36 ` Sven Vermeulen
  2003-05-20 15:09 ` Jack Morgan
  0 siblings, 2 replies; 13+ messages in thread
From: Stephan Hermann @ 2003-05-20 14:35 UTC (permalink / raw
  To: gentoo-dev

Hi Folks,

just thinking about portage and thinking about using it to build up a 
dedicated software build server.

As I saw portage want a hardcoded structure for config files etc. (e.g. /etc 
/usr/portage/...).

I'm not the best python programmer, but can I replace all hardcoded 
directories to configurable entries ?

Or do you have a version anywhere with those changes in it ?

regards,

\sh

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 14:35 [gentoo-dev] installing portage in another directory structure Stephan Hermann
@ 2003-05-20 14:36 ` Sven Vermeulen
  2003-05-20 14:54   ` Stephan Hermann
  2003-05-20 15:09 ` Jack Morgan
  1 sibling, 1 reply; 13+ messages in thread
From: Sven Vermeulen @ 2003-05-20 14:36 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

On Tue, May 20, 2003 at 04:35:57PM +0200, Stephan Hermann wrote:
> just thinking about portage and thinking about using it to build up a 
> dedicated software build server.

Our compileserver makes binary packages using "emerge -B" which are then
copied over to the respective Gentoo systems and installed using 
"emerge -k".

You can also try distcc, although I'm disappointed with the features /
results of it.

Wkr,
	Sven Vermeulen

-- 
Thanks to DRM, you know that something has been built in environment of 
unspecified degree of security, from source you cannot check, written by 
programmers you don't know, released after passing QA of unknown quality and 
which is released under a license that disclaims any responsibility...

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 14:36 ` Sven Vermeulen
@ 2003-05-20 14:54   ` Stephan Hermann
  2003-05-20 19:24     ` Paul de Vrieze
  0 siblings, 1 reply; 13+ messages in thread
From: Stephan Hermann @ 2003-05-20 14:54 UTC (permalink / raw
  To: gentoo-dev

Hi,


On Tuesday 20 May 2003 16:36, Sven Vermeulen wrote:
> On Tue, May 20, 2003 at 04:35:57PM +0200, Stephan Hermann wrote:
> > just thinking about portage and thinking about using it to build up a
> > dedicated software build server.
>
> Our compileserver makes binary packages using "emerge -B" which are then
> copied over to the respective Gentoo systems and installed using
> "emerge -k".

But I don't have a gentoo distribution as base linux.
Company standard is debian and we have a split between OS administration and 
"application" administration.
(application in the meaning of: software to run self coded products for 
customers)

so I can't install the portage tree in /etc /usr/portage etc. I need to 
install it at /opt/apps/portage for example.

regards,

\sh

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 14:35 [gentoo-dev] installing portage in another directory structure Stephan Hermann
  2003-05-20 14:36 ` Sven Vermeulen
@ 2003-05-20 15:09 ` Jack Morgan
  1 sibling, 0 replies; 13+ messages in thread
From: Jack Morgan @ 2003-05-20 15:09 UTC (permalink / raw
  To: gentoo-dev; +Cc: gentoo-dev

On Tue, May 20, 2003 at 04:35:57PM +0200, Stephan Hermann wrote:
> 
> just thinking about portage and thinking about using it to build up a 
> dedicated software build server.
> 
> As I saw portage want a hardcoded structure for config files etc. (e.g. /etc 
> /usr/portage/...).
> 
> I'm not the best python programmer, but can I replace all hardcoded 
> directories to configurable entries ?

Edit /etc/make.conf... here is part you want to look at...

# PORTDIR is the location of the portage tree. This is the repository
#     for all profile information as well as all ebuilds. This directory
#     itself can reach 200M. WE DO NOT RECOMMEND that you change this.
#PORTDIR=/usr/portage

Cheers,
Jack Morgan
Gentoo/Sparc
 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 14:54   ` Stephan Hermann
@ 2003-05-20 19:24     ` Paul de Vrieze
  2003-05-20 20:30       ` Martin Schlemmer
                         ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Paul de Vrieze @ 2003-05-20 19:24 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 746 bytes --]

On Tuesday 20 May 2003 16:54, Stephan Hermann wrote:
>
> But I don't have a gentoo distribution as base linux.
> Company standard is debian and we have a split between OS administration
> and "application" administration.
> (application in the meaning of: software to run self coded products for
> customers)
>
> so I can't install the portage tree in /etc /usr/portage etc. I need to
> install it at /opt/apps/portage for example.

Unfortunately most ebuilds presume that they are build on a gentoo system, as 
such they have hardcoded directories. In general portage is not really that 
suitable as a secondary package manager.

Paul

-- 
Paul de Vrieze
Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 19:24     ` Paul de Vrieze
@ 2003-05-20 20:30       ` Martin Schlemmer
  2003-05-20 20:46         ` Paul de Vrieze
  2003-05-21  0:22       ` Luke-Jr
  2003-05-21  3:35       ` Stephan Hermann
  2 siblings, 1 reply; 13+ messages in thread
From: Martin Schlemmer @ 2003-05-20 20:30 UTC (permalink / raw
  To: Paul de Vrieze; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 3061 bytes --]

On Tue, 2003-05-20 at 21:24, Paul de Vrieze wrote:
> On Tuesday 20 May 2003 16:54, Stephan Hermann wrote:
> >
> > But I don't have a gentoo distribution as base linux.
> > Company standard is debian and we have a split between OS administration
> > and "application" administration.
> > (application in the meaning of: software to run self coded products for
> > customers)
> >
> > so I can't install the portage tree in /etc /usr/portage etc. I need to
> > install it at /opt/apps/portage for example.
> 
> Unfortunately most ebuilds presume that they are build on a gentoo system, as 
> such they have hardcoded directories. In general portage is not really that 
> suitable as a secondary package manager.
> 

Actually no.  Most stuff use variables set by portage, with only two or
three packages using hardcoded:

---------------------------------------------------------------
$ find . -type f -name '*.ebuild' -exec awk '
$0 !~ /^[[:space:]]*#/ {
    foo = $0

    if (sub(/usr\/portage/, "", foo)) {

        bar = FILENAME
        sub(/^\.\//, "", bar) 

        print bar ":  " $0
    }
}' {} \;
app-sci/tbass/tbass-20030204.ebuild:  	einfo "/usr/portage/distfiles
before emerging."
app-sci/tbass/tbass-20030318.ebuild:  	einfo "/usr/portage/distfiles
before emerging."
dev-java/blackdown-jre/blackdown-jre-1.3.1-r9.ebuild:  .
/usr/portage/eclass/inherit.eclass
net-ftp/jftpgw/jftpgw-0.13.1.ebuild: 
FILEDIR="/usr/portage/net-ftp/jftpgw/files"
net-ftp/jftpgw/jftpgw-0.13.4.ebuild: 
FILEDIR="/usr/portage/net-ftp/jftpgw/files"
sys-apps/baselayout/baselayout-1.8.5.9.ebuild:  	keepdir /usr/include
/usr/src /usr/portage
sys-apps/baselayout/baselayout-1.8.6.5.ebuild:  	if [ ! -d
"${ROOT}/usr/portage" ]
sys-apps/baselayout/baselayout-1.8.6.5.ebuild:  		keepdir /usr/portage
sys-apps/baselayout/baselayout-1.8.6.6.ebuild:  	if [ ! -d
"${ROOT}/usr/portage" ]
sys-apps/baselayout/baselayout-1.8.6.6.ebuild:  		keepdir /usr/portage
sys-apps/baselayout/baselayout-1.8.5.8.ebuild:  	keepdir /usr/include
/usr/src /usr/portage
sys-apps/baselayout/baselayout-1.8.6.7.ebuild:  	keepdir_mount
/usr/portage
sys-apps/baselayout/baselayout-1.8.6.8.ebuild:  	keepdir_mount
/usr/portage
sys-apps/busybox/busybox-0.60.5-r1.ebuild:  	einfo "Edit
/usr/portage/sys-apps/busybox/files/Config.h and"

---------------------------------------------------------

It will thus not be too much issue to fix these, as the only broken ones
seem to be:

  app-sci/tbass/tbass-20030204.ebuild
  app-sci/tbass/tbass-20030318.ebuild
  dev-java/blackdown-jre/blackdown-jre-1.3.1-r9.ebuild
  net-ftp/jftpgw/jftpgw-0.13.1.ebuild
  net-ftp/jftpgw/jftpgw-0.13.4.ebuild
  sys-apps/busybox/busybox-0.60.5-r1.ebuild

with baselayout prob also falling under what should be fixed,
but could be given to discussion, as I guess you would not install
it if you use portage as second package system.


Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 20:30       ` Martin Schlemmer
@ 2003-05-20 20:46         ` Paul de Vrieze
  2003-05-20 21:15           ` Martin Schlemmer
  2003-05-20 21:49           ` George Shapovalov
  0 siblings, 2 replies; 13+ messages in thread
From: Paul de Vrieze @ 2003-05-20 20:46 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 519 bytes --]

On Tuesday 20 May 2003 22:30, Martin Schlemmer wrote:
>
> Actually no.  Most stuff use variables set by portage, with only two or
> three packages using hardcoded:

No, I was more thinking in the direction of /etc and other such locations. 
Many packages are hardcoded to install in /usr with the config in /etc . Of 
course there are also enough packages that use econf (and so would be easier 
to change).

Paul

-- 
Paul de Vrieze
Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 20:46         ` Paul de Vrieze
@ 2003-05-20 21:15           ` Martin Schlemmer
  2003-05-20 21:49           ` George Shapovalov
  1 sibling, 0 replies; 13+ messages in thread
From: Martin Schlemmer @ 2003-05-20 21:15 UTC (permalink / raw
  To: Paul de Vrieze; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

On Tue, 2003-05-20 at 22:46, Paul de Vrieze wrote:
> On Tuesday 20 May 2003 22:30, Martin Schlemmer wrote:
> >
> > Actually no.  Most stuff use variables set by portage, with only two or
> > three packages using hardcoded:
> 
> No, I was more thinking in the direction of /etc and other such locations. 
> Many packages are hardcoded to install in /usr with the config in /etc . Of 
> course there are also enough packages that use econf (and so would be easier 
> to change).
> 

Hmm, right.  Ok, so I did not read the whole thread :P  I thought
you were only talking about moving the tree to /opt.


Cheers,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 20:46         ` Paul de Vrieze
  2003-05-20 21:15           ` Martin Schlemmer
@ 2003-05-20 21:49           ` George Shapovalov
  1 sibling, 0 replies; 13+ messages in thread
From: George Shapovalov @ 2003-05-20 21:49 UTC (permalink / raw
  To: gentoo-dev

On Tuesday 20 May 2003 13:46, Paul de Vrieze wrote:
> On Tuesday 20 May 2003 22:30, Martin Schlemmer wrote:
> No, I was more thinking in the direction of /etc and other such locations.
> Many packages are hardcoded to install in /usr with the config in /etc . Of
> course there are also enough packages that use econf (and so would be
> easier to change).
Well, then I guess you mention of /usr/portage in the original email was 
misleading, as everybody interpreted your question as related to moving 
PORTDIR and other related stuff.

The issue of installing packages under different (tunable) location has been 
discussed (It's been few month already since the last one I think). The 
conclusion was that it is too much hassle for no clear benefit.
The hassle comes from the fact that many packages have somehow defficient 
Makefile's which have to be patched, configure' not recognizing "standard" 
options, etc (making it impossible to simply script through existing 
packages). More inportant is the requirement to stay FHS compliant to the 
extent possible. 
This issue might be reconsidered at some point, but I don't expect that this 
will ahppen any time soon (there are numerous more important issues on a 
present todo list).

George



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 19:24     ` Paul de Vrieze
  2003-05-20 20:30       ` Martin Schlemmer
@ 2003-05-21  0:22       ` Luke-Jr
  2003-05-21  3:35       ` Stephan Hermann
  2 siblings, 0 replies; 13+ messages in thread
From: Luke-Jr @ 2003-05-21  0:22 UTC (permalink / raw
  To: Paul de Vrieze, gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Last I checked, the directories used by Portage can be changed in make.conf 
easilly... It works fine for me using /home/luke-jr/src/gentoo-x86/ for the 
Portage tree, at least...

On Tuesday 20 May 2003 07:24 pm, Paul de Vrieze wrote:
> On Tuesday 20 May 2003 16:54, Stephan Hermann wrote:
> > But I don't have a gentoo distribution as base linux.
> > Company standard is debian and we have a split between OS administration
> > and "application" administration.
> > (application in the meaning of: software to run self coded products for
> > customers)
> >
> > so I can't install the portage tree in /etc /usr/portage etc. I need to
> > install it at /opt/apps/portage for example.
>
> Unfortunately most ebuilds presume that they are build on a gentoo system,
> as such they have hardcoded directories. In general portage is not really
> that suitable as a secondary package manager.
>
> Paul

- -- 
Luke-Jr
Developer, Gentoo Linux
http://www.gentoo.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+ysbjZl/BHdU+lYMRAgh/AJsHQgmhr81mEngFAuueUDFvvHy8RQCeIgeZ
tIW0DjWMEWDlP2uvCSbaDec=
=x+14
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-20 19:24     ` Paul de Vrieze
  2003-05-20 20:30       ` Martin Schlemmer
  2003-05-21  0:22       ` Luke-Jr
@ 2003-05-21  3:35       ` Stephan Hermann
  2003-05-21  9:20         ` Paul de Vrieze
  2 siblings, 1 reply; 13+ messages in thread
From: Stephan Hermann @ 2003-05-21  3:35 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 1484 bytes --]

Hi,

On Tuesday 20 May 2003 21:24, Paul de Vrieze wrote:
> On Tuesday 20 May 2003 16:54, Stephan Hermann wrote:
> > But I don't have a gentoo distribution as base linux.
> > Company standard is debian and we have a split between OS administration
> > and "application" administration.
> > (application in the meaning of: software to run self coded products for
> > customers)
> >
> > so I can't install the portage tree in /etc /usr/portage etc. I need to
> > install it at /opt/apps/portage for example.
>
> Unfortunately most ebuilds presume that they are build on a gentoo system,
> as such they have hardcoded directories. In general portage is not really
> that suitable as a secondary package manager.

I think you are misunderstanding.

I'm not talking about ebuilds and gentoo software. I'm really talking about 
portage.

Scenario:

	I want to build up a separate build server for own made profiles.
	I'm providing own ebuilds depending on self defined enviroments.
	I want to use portage, to manage different profiles.

So, I have to move the portage python scripts from /usr/portage, the symlinks 
from /usr to somewhere else, and to redeclare all hardcoded path variables in 
the portage python source from e.g. /etc/make.conf to 
/opt/company_standard/portage_dist/etc/make.conf.

I'm not talking about ebuilds, because I'm provinding my own set of ebuilds, 
specialised for several standard application enviroments.

regards,

\sh

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-21  3:35       ` Stephan Hermann
@ 2003-05-21  9:20         ` Paul de Vrieze
  2003-05-21 11:55           ` Stephan Hermann
  0 siblings, 1 reply; 13+ messages in thread
From: Paul de Vrieze @ 2003-05-21  9:20 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 1351 bytes --]

On Wednesday 21 May 2003 05:35, Stephan Hermann wrote:
>
> I think you are misunderstanding.
>
> I'm not talking about ebuilds and gentoo software. I'm really talking about
> portage.
>
> Scenario:
>
> 	I want to build up a separate build server for own made profiles.
> 	I'm providing own ebuilds depending on self defined enviroments.
> 	I want to use portage, to manage different profiles.
>
> So, I have to move the portage python scripts from /usr/portage, the
> symlinks from /usr to somewhere else, and to redeclare all hardcoded path
> variables in the portage python source from e.g. /etc/make.conf to
> /opt/company_standard/portage_dist/etc/make.conf.
>
> I'm not talking about ebuilds, because I'm provinding my own set of
> ebuilds, specialised for several standard application enviroments.
>

Thanks for the clarification. I think that portage itself should be as 
location independent as possible ( one fixed location will be necessary to 
tell portage where to find the rest, but this location could be specified 
optionally by an environment variable). Allthough I'm not responsible for 
portage I encourage you to submit any patches to the extend of making portage 
even more location independent.

Paul

-- 
Paul de Vrieze
Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.cs.kun.nl/~pauldv

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] installing portage in another directory structure
  2003-05-21  9:20         ` Paul de Vrieze
@ 2003-05-21 11:55           ` Stephan Hermann
  0 siblings, 0 replies; 13+ messages in thread
From: Stephan Hermann @ 2003-05-21 11:55 UTC (permalink / raw
  To: gentoo-dev

Hi,


On Wednesday 21 May 2003 11:20, Paul de Vrieze wrote:
> Thanks for the clarification. I think that portage itself should be as
> location independent as possible ( one fixed location will be necessary to
> tell portage where to find the rest, but this location could be specified
> optionally by an environment variable). Allthough I'm not responsible for
> portage I encourage you to submit any patches to the extend of making
> portage even more location independent.


Well, I'm working on it, and if I have this running, I will provide patches 
via gentoozilla ,).
But first, I must learn a bit of snake language ;)

regards,

\sh

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-21 11:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-20 14:35 [gentoo-dev] installing portage in another directory structure Stephan Hermann
2003-05-20 14:36 ` Sven Vermeulen
2003-05-20 14:54   ` Stephan Hermann
2003-05-20 19:24     ` Paul de Vrieze
2003-05-20 20:30       ` Martin Schlemmer
2003-05-20 20:46         ` Paul de Vrieze
2003-05-20 21:15           ` Martin Schlemmer
2003-05-20 21:49           ` George Shapovalov
2003-05-21  0:22       ` Luke-Jr
2003-05-21  3:35       ` Stephan Hermann
2003-05-21  9:20         ` Paul de Vrieze
2003-05-21 11:55           ` Stephan Hermann
2003-05-20 15:09 ` Jack Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox