[gentoo-portage-dev] ACCEPT_PROPERTIES in portage trunk

2009-08-11 Thread Mounir Lamouri
Hi,

I would like to inform you in addition of ACCEPT_KEYWORDS and somewhat
new ACCEPT_LICENSE, portage now uses ACCEPT_PROPERTIES.
As for LICENSE, this var let the user mask some packages considering the
PROPERTIES line.

Contrary to ACCEPT_LICENSE, the default value is "*". This means every
PROPERTIES value will be accepted.
Actually, the only usage I know is for interactive: if you want to mask
interactive ebuilds, you will just have to set
ACCEPT_PROPERTIES="-interactive" then emerge/portage will consider the
ebuild is not visible.

You can also set /etc/portage/package.properties to have a per-package
configuration.

It was needed to fix a blocker for packagekit with interactive ebuilds.
So, it's a bit selfish ;)

Thanks,
Mounir



Re: [gentoo-portage-dev] Portage API questions

2009-06-29 Thread Mounir Lamouri
Hi,

My 2 cents:

Sebastian Pipping wrote:
>   - installed packages with version numbers
>   
vardb = portage.db[portage.settings["ROOT"]]["vartree"].dbapi
vardb.cpv_all() will return cat/package-version
vardb.cp_all() will return cat/package
of installed packages

>   - entries for /var/lib/portage/world
>   
You should think about world + system :

for s in ("system", "world"):
set = portage._sets.base.InternalPackageSet(
initial_atoms=rootconfig.setconfig.getSetAtoms(s))
for cp in set:
print cp # print cat/package in world/system

Good luck :)

Mounir




Re: [gentoo-portage-dev] netbeans-6.7-rc1 (only reporting)

2009-06-02 Thread Mounir Lamouri
Hi,

You should file a bug to bugs.gentoo.org instead of posting your bug
report to a mailing list.
In addition, gentoo-portage-dev is only about portage development.

Thanks,
Mounir

Zhu Sha Zang wrote:
> Problems in installation.
>
> arch: i386
> netbeans flags:
>
> [ebuild U ] dev-util/netbeans-6.7_rc1 [6.7_beta-r7] USE="-debug
> -doc" LINGUAS="pt_BR -ar% -cs -de -es -fr -gl% -id% -it -ja -ko -nl
> -pl -ru -sq -sv% -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupport cnd
> dlight enterprise ergonomics groovy harness ide identity java mobility
> nb php profiler webcommon websvccommon -ruby" 0
>
> PROBLEM:
>
> release:
>   [nbmerge] Failed to build target: all-libs.bytelist
>
> BUILD FAILED
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:664:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:659:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:694:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:677:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:659:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:694:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:677:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:659:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/build.xml:706:
> The following error occurred while executing this line:
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/nbbuild/templates/projectized.xml:189:
> Could not find file
> /usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/work/libs.bytelist/external/bytelist-0.1.jar
> to
> copy  
>  
>  
>  
>  
>
>
> Total time: 3 minutes 16 seconds
>  * 
>  * ERROR: dev-util/netbeans-6.7_rc1 failed.
>  * Call stack:
>  *   ebuild.sh, line   49:  Called src_compile
>  * environment, line 4470:  Called eant
> '-Dstop.when.broken.modules=true' '-Dpermit.jdk6.builds=true'
> '-Dbuild.compiler.deprecation=false'
> '-Dnb.clusters.list=nb.cluster.platform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.dlight,nb.cluster.enterprise,nb.cluster.ergonomics,nb.cluster.groovy,nb.cluster.harness,nb.cluster.ide,nb.cluster.identity,nb.cluster.java,nb.cluster.mobility,nb.cluster.nb,nb.cluster.php,nb.cluster.profiler,nb.cluster.webcommon,nb.cluster.websvccommon'
> '-f' 'nbbuild/build.xml'
> 'build-nozip' 
>  
>  
>  
>  
>
>  * environment, line  973:  Called
> die   
>   
>  
>  
>  
>
>  * The specific snippet of
> code: 
>   
>  
>  
>  
>
>  *   ant ${antflags} "$...@}" || die "eant
> failed"   
> 
>  
>  
>  
>
>  *  The die
> message:  
>  
>  
>  
>  
>
>  *   eant
> failed
>
>  
>  
>  
>
>  *
>  
>  
>  
>  
>
>  * If you need support, post the topmost build error, and the call
> stack if
> relevant. 
>  
>  
>  
>  
>
>  * A complete build log is located at
> '/usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/temp/build.log'.
>
>  
>  
>  
>
>  * The ebuild environment file is located at
> '/usr/local/var/tmp/portage/dev-util/netbeans-6.7_rc1/temp/environment'.  
> 
>  
>  
>  
>
>  *
>  
>  
>  
>  
>
> !!! When you file a