Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Catalyst (http://www.linux-archive.org/gentoo-catalyst/)
-   -   How to accept licences (http://www.linux-archive.org/gentoo-catalyst/545023-how-accept-licences.html)

Martino Dell'Ambrogio 06-27-2011 03:43 PM

How to accept licences
 
Hello,

I'm trying to build a livecd with catalyst 2.0.6.916.

While building the livecd-stage1 target I've got this obvious error:

!!! All ebuilds that could satisfy "dev-java/sun-jdk" have been masked.
!!! One of the following masked packages is required to complete your
request:

- dev-java/sun-jdk-1.6.0.26 (masked by: dlj-1.1 license(s))

I set portage_confdir to a path with a package.license file containing
the line "dev-java/sun-jdk dlj-1.1", but I got the same result.


I tried with a package.license directory, with a "*" flag, even with an
export ACCEPT_LICENSE="*" within catalystrc, but portage seems to ignore
all of them.
The portage version is 2.1.9.42 for both host and build. Also both
systems are amd64.


I can't seem to find my error anywhere, and I guess catalyst is aware of
everything LICENSE-related or it wouldn't be possible to build the
official distributions, right? Thank you for your help.


--
Martino DELL'AMBROGIO
GCIA
Expert Sécurité

----------------------------------------------------
KYOS IT SECURITY
Audit, Conseil & Solutions en Sécurité Informatique
12 bis avenue Rosemont - 1208 Genève
Mobile : +41 78 920 88 67
Bureau : +41 22 566 76 33
Fax: +41 22 734 79 03
www.kyos.ch - martino.dellambrogio@kyos.ch
----------------------------------------------------

Matt Turner 06-27-2011 04:17 PM

How to accept licences
 
On Mon, Jun 27, 2011 at 11:43 AM, Martino Dell'Ambrogio
<martino.dellambrogio@kyos.ch> wrote:
> Hello,
>
> I'm trying to build a livecd with catalyst 2.0.6.916.
>
> While building the livecd-stage1 target I've got this obvious error:
>
> !!! All ebuilds that could satisfy "dev-java/sun-jdk" have been masked.
> !!! One of the following masked packages is required to complete your
> request:
> - dev-java/sun-jdk-1.6.0.26 (masked by: dlj-1.1 license(s))
>
> I set portage_confdir to a path with a package.license file containing the
> line "dev-java/sun-jdk dlj-1.1", but I got the same result.
>
> I tried with a package.license directory, with a "*" flag, even with an
> export ACCEPT_LICENSE="*" within catalystrc, but portage seems to ignore all
> of them.
> The portage version is 2.1.9.42 for both host and build. Also both systems
> are amd64.
>
> I can't seem to find my error anywhere, and I guess catalyst is aware of
> everything LICENSE-related or it wouldn't be possible to build the official
> distributions, right? Thank you for your help.

Actually, the only references I see to 'license' when I grep the
catalyst source appear in license headers.

It looks to me like catalyst doesn't export any way to modify
ACCEPT_LICENSES, though I would have thought that putting 'export
ACCEPT_LICENSES=...' in catalystrc would work.

Matt

Sebastian Pipping 06-27-2011 04:54 PM

How to accept licences
 
On 06/27/2011 05:43 PM, Martino Dell'Ambrogio wrote:
> [..] even with an export ACCEPT_LICENSE="*" within catalystrc

Is there any indicator that calalyst is even sourcing that script? Have
you tried putting echos or "exit 1" in there?

This is an adapted workround of mine to put into the *envscript* to get
certain stuff into the chroot's /etc/make.conf:


================================================== ==================
if [[ ! -f /root/envscript_actions_run ]]; then
touch /root/envscript_actions_run

cat <<-MAKE_CONF_EOF >> /etc/make.conf

ACCEPT_LICENSE="* -@EULA dlj-1.1"
MAKE_CONF_EOF
fi
================================================== ==================


If anyone is aware of a cleaner solution, please share.

Martino, if you find out later why ACCEPT_LICENSE doesn't work straight
from the environment, please let us know.

Best,



Sebastian

Martino Dell'Ambrogio 06-27-2011 08:20 PM

How to accept licences
 
Thanks to your advice, I discovered that the "autoresume" feature was
preventing the script to be loaded... the -a flag fixed it.


Thanks to all who helped! I'm absolutely new to catalyst, hope to get
better soon.


Martino Dell'Ambrogio
Security Auditor

-----------------------------------------------------------------------
KYOS IT SECURITY
Consulting, Integration and Facility Management
12 bis avenue Rosemont - 1208 Geneva
Tel:+41 (0)22 734 7888
mobile:+41 (0)79 715 12 90
Fax:+41 (0)22 734 7903
http://www.kyos.ch - martino.dellambrogio@kyos.ch
-----------------------------------------------------------------------


On 06/27/2011 06:54 PM, Sebastian Pipping wrote:

On 06/27/2011 05:43 PM, Martino Dell'Ambrogio wrote:

[..] even with an export ACCEPT_LICENSE="*" within catalystrc

Is there any indicator that calalyst is even sourcing that script? Have
you tried putting echos or "exit 1" in there?

This is an adapted workround of mine to put into the *envscript* to get
certain stuff into the chroot's /etc/make.conf:


================================================== ==================
if [[ ! -f /root/envscript_actions_run ]]; then
touch /root/envscript_actions_run

cat<<-MAKE_CONF_EOF>> /etc/make.conf

ACCEPT_LICENSE="* -@EULA dlj-1.1"
MAKE_CONF_EOF
fi
================================================== ==================


If anyone is aware of a cleaner solution, please share.

Martino, if you find out later why ACCEPT_LICENSE doesn't work straight
from the environment, please let us know.

Best,



Sebastian

Matt Turner 06-27-2011 08:23 PM

How to accept licences
 
On Mon, Jun 27, 2011 at 4:20 PM, Martino Dell'Ambrogio
<martino.dellambrogio@kyos.ch> wrote:
> Thanks to your advice, I discovered that the "autoresume" feature was
> preventing the script to be loaded... the -a flag fixed it.
>
> Thanks to all who helped! I'm absolutely new to catalyst, hope to get better
> soon.

Ah, if -a fixed it, then the problem was that the first time catalyst
was run on your stage build, the ACCEPT_LICENSE stuff wasn't sourced.
Using -a wiped out the stage and started cleanly, so ACCEPT_LICENSE
was read.

From now on, with your confdir and ACCEPT_LICENSE stuff working, you
shouldn't have to use -a.

Thanks,
Matt


All times are GMT. The time now is 01:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.