Re: [gentoo-portage-dev] layman: hard-coded fetching from gentoo.org and broken overlays when an 'add' is interrupted

2010-04-22 Thread Amit Dor-Shifer
Robin H. Johnson wrote: On Thu, Apr 22, 2010 at 01:05:11AM +0300, Amit Dor-Shifer wrote: When I invoke the following, I see http interaction w/gentoo.org: layman -c /dev/null -N -f -a oversi -o file:///tmp/layman-oversi.xml which AFAIK doesn't read /etc/layman/layman.cfg. The config

[gentoo-portage-dev] layman: hard-coded fetching from gentoo.org and broken overlays when an 'add' is interrupted

2010-04-21 Thread Amit Dor-Shifer
Hi all. Some questions rgd layman: 1. Seems like layman is hard-wired to contain the layman-global.txt list of overlays. What's the reasoning behind this? My issue w/this is that, lately, when gentoo.org was unreachable, this hard-wiring presented considerable hangs on fetch

Re: [gentoo-portage-dev] layman: hard-coded fetching from gentoo.org and broken overlays when an 'add' is interrupted

2010-04-21 Thread Amit Dor-Shifer
Robin H. Johnson wrote: On Thu, Apr 22, 2010 at 12:09:21AM +0300, Amit Dor-Shifer wrote: Hi all. Some questions rgd layman: 1. Seems like layman is hard-wired to contain the layman-global.txt list of overlays. What's the reasoning behind this? My issue w/this is that, lately

[gentoo-portage-dev] equery displays warnings about masked deps, even when those deps are deeper than --depth specification

2010-01-11 Thread Amit Dor-Shifer
test-depgraph has a primary dep: amit0 ~ # equery depgraph --depth=1 test-depgraph [ Searching for packages matching test-depgraph... ] * dependency graph for test/test-depgraph-1.0 `-- test/test-depgraph-1.0 `-- test/test-primary-dep-1.0 [ test/test-depgraph-1.0 stats: packages (2), max depth

Re: [gentoo-portage-dev] equery displays warnings about masked deps, even when those deps are deeper than --depth specification

2010-01-11 Thread Amit Dor-Shifer
amit0 ~ # qfile -v $(which equery) app-portage/gentoolkit-0.2.4.5 (/usr/bin/equery) Paul Varner wrote: On Mon, 2010-01-11 at 15:40 +0200, Amit Dor-Shifer wrote: is this a bug? As the gentoolkit maintainer, I would say that it is a bug. Which version of gentoolkit do you have

Re: [gentoo-portage-dev] can an overlay force a USE flag on a host?

2010-01-03 Thread Amit Dor-Shifer
Zac Medico wrote: On 12/31/2009 06:41 AM, Amit Dor-Shifer wrote: In cont. to my prev. question (http://archives.gentoo.org/gentoo-portage-dev/msg_9973fd6c12d7c2088457697f49ea2f5e.xml) Can I append use.force/package.use.force/package.use or similar to an overlay, and by that control USE

[gentoo-portage-dev] forcing a USE flag if another is on

2009-12-30 Thread Amit Dor-Shifer
Is there some method of specifing if USE flag X is enabled, enable USE flag y as-well? Something like a conditional use.force file in profiles/. Amit

[gentoo-portage-dev] Can emerge be instructed not to upgrade a dependency?

2009-12-29 Thread Amit Dor-Shifer
Hi. I want package A to incur a rebuild of package B, due to a newly introduced USE flag which affects B. I wish to express this in the package's ebuild. I therefore DEPENDed A in B[use_flag]. When I attempt to emerge A, portage offers to *upgrade* the dependency, taking in the new USE

[gentoo-portage-dev] binpkg doesn't pull-in dependency required by USE flag

2009-12-29 Thread Amit Dor-Shifer
Hi. amit0 myebuilds # qlist -Iv sys-apps/portage sys-apps/portage-2.1.6.13 I've binpkg-ed sun-jdk. I did so w/USE+=jce: amit0 myebuilds # qtbz2 -x /usr/portage/packages/dev-java/sun-jdk-1.6.0.16.tbz2 amit0 myebuilds # qxpak -x /usr/portage/packages/dev-java/sun-jdk-1.6.0.16.xpak

Re: [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?

2009-10-18 Thread Amit Dor-Shifer
with CONFIG_PROTECT_MASK)? Amit Zac Medico wrote: Amit Dor-Shifer wrote: Thanks. IMHO this usage of env.d should be documented in the ebuild howto, as it presents a useful-yet-not-trivial mechanism. I'd document it, if: a) I get no objection from others. Anyone? b) I'd be referred to the proper place

[gentoo-portage-dev] layman attempts to read all overlay lists when synchronizing local overlay

2009-09-09 Thread Amit Dor-Shifer
Hi. I'm attempting to synchronize an existing local overlay (layman -s myoverlay). /etc/layman/config.cfg:overlays contains an unresolvable URL. The overlay is synchronizes as-expected, yet layman also issues an error: QUOTE * Failed to update the overlay list from:

Re: [gentoo-portage-dev] Re: layman attempts to read all overlay lists when synchronizing local overlay

2009-09-09 Thread Amit Dor-Shifer
Sorry. Didn't notice nofetch. 10x for the prompt reply. Amit Duncan wrote: Amit Dor-Shifer posted on Wed, 09 Sep 2009 10:54:50 +0300 as excerpted: I'm wondering: why should layman attempt to access overlay lists when synching? It can use overlays.xml, since the overlay is already installed

Re: [gentoo-portage-dev] ebuild --debug takes forever when FEATURES contains keeptemp: detects QA warnings in build.log

2009-09-08 Thread Amit Dor-Shifer
/usr/portage/local/myebuilds/test/test-mkdir/test-mkdir-1.0.ebuild install /tmp/bla) ^C^C real3m48.985s user3m32.271s sys 0m16.436s Amit Zac Medico wrote: Amit Dor-Shifer wrote: amit0 ~ $ grep -m 3 ': warning:' /var/tmp/portage/test/test-mkdir-1.0/temp/build.log + msgs

Re: [gentoo-portage-dev] ebuild --debug takes forever when FEATURES contains keeptemp: detects QA warnings in build.log

2009-09-01 Thread Amit Dor-Shifer
wrote: Amit Dor-Shifer wrote: Hi. When I'm executing ebuild --debug /path/to/my/ebuild.ebuild /some/file, ebuild keeps dumping QA warnings to /some/file. I think its because its grepping for : warning : in build.log, and such messages are quoted into build.log because of the use of --debug

[gentoo-portage-dev] ebuild --debug takes forever when FEATURES contains keeptemp: detects QA warnings in build.log

2009-08-31 Thread Amit Dor-Shifer
Hi. When I'm executing ebuild --debug /path/to/my/ebuild.ebuild /some/file, ebuild keeps dumping QA warnings to /some/file. I think its because its grepping for : warning : in build.log, and such messages are quoted into build.log because of the use of --debug. If I remove

[gentoo-portage-dev] depgraph.display_problems directs unsatisfied dependencies messages to stdout

2009-07-28 Thread Amit Dor-Shifer
Hello all SHELL amit0 ~ # emerge -p my_non_existing_pkg 2 /tmp/err 1 /tmp/out amit0 ~ # echo $? 1 amit0 ~ # cat /tmp/err amit0 ~ # cat /tmp/out These are the packages that would be merged, in order: Calculating dependencies ... done! emerge: there are no ebuilds to satisfy my_non_existing_pkg.

Re: [gentoo-portage-dev] ebuild/emerge lookup category differently?

2009-07-26 Thread Amit Dor-Shifer
Solved. I was missing the profiles/ dir in the build env. (a temp folder, which is wiped-clean before the build). Your reply gave me a lead. Thanks, Amit Zac Medico wrote: Amit Dor-Shifer wrote: Hi. In my overlay, I can have packages assigned to a private category, and have that category

[gentoo-portage-dev] ebuild/emerge lookup category differently?

2009-07-23 Thread Amit Dor-Shifer
Hi. In my overlay, I can have packages assigned to a private category, and have that category specified in profiles/categories, under the overlay itself. However, in-order to ebuild such a package I have to append the category to /etc/portage/categories, else I get an error message: !!!

[gentoo-portage-dev] what does /var/db/pkg/CAT/PKG/COUNTER count?

2009-07-22 Thread Amit Dor-Shifer
amit0 ~ # cat /var/db/pkg/sys-apps/portage-2.1.6.7/COUNTER 5316amit0 ~ #

[gentoo-portage-dev] layman: appending overlay list on cmdline

2009-07-02 Thread Amit Dor-Shifer
Hi, I'm assuming this is be the right place to discuss layman. If not, please redirect me and ignore the rest. I'm using layman-1.1.1 (not the most-recent). Its -o option appends additional overlays to the list found in layman.cfg. If an overlay appears in both lists, the one from cfg takes

[gentoo-portage-dev] euse creates broken /etc/make.conf when USE declaration starts with empty line:

2009-06-24 Thread Amit Dor-Shifer
Hi. I have the following USE setup in /etc/make.conf: USE= a b c -d -e Portage seems ok with this layout. However, when I euse to enable some other flag, /etc/make.conf gets corrupted: amit0 ~ # euse -E f /etc/make.conf was modified, a backup copy has been placed at

[gentoo-portage-dev] rsync support for fetching binary packages

2009-05-19 Thread Amit Dor-Shifer
Hi. Looking at getbinpkg.py, I see that BINPKGs can be retrieved using http/s s/ftp. I'm wondering about rsync, as it is mostly supported across portage (and also in layman). Is there some design reasoning behind this lack of support, or is it that no-one has yet gotten around to implement it?

[gentoo-portage-dev] pretend --columns depends on --quiet?

2009-05-07 Thread Amit Dor-Shifer
Hi. Seems like --columns depends on -q to work: amit0 ~ # emerge -p --color=n --columns -O -q portage Rsys-apps/portage 2.1.6.7 amit0 ~ # emerge -p --color=n --columns -O portage These are the packages that would be merged, in order: [ebuild R ] sys-apps/portage

Re: [gentoo-portage-dev] Re: does emerge verify arch compatibility when merging a binary package?

2009-04-22 Thread Amit Dor-Shifer
) and qxpak(1) for more info. END Comments, please. Amit Zac Medico wrote: Amit Dor-Shifer wrote: I don't think I would have realized this implementation myself. Is this xpak piggybacking documented somewhere?Can you refer me? BTW: amit0 Installation # man xpak No manual entry for xpak amit0

Re: [gentoo-portage-dev] Re: does emerge verify arch compatibility when merging a binary package?

2009-04-21 Thread Amit Dor-Shifer
xpak No matches found. Amit Zac Medico wrote: Amit Dor-Shifer wrote: When you say ut checks CHOST/keywording, where are those definitions stored for the binary pkg? It's appended to the tail end of the tbz2, in xpak format (see `man 5 xpak`). I see one instance of CHOST in the 'Packages' index

Re: [gentoo-portage-dev] Re: does emerge verify arch compatibility when merging a binary package?

2009-04-20 Thread Amit Dor-Shifer
:56:31 -0500: Amit Dor-Shifer wrote: E.G: would portage block an attempt to install a ppc binary on an amd64? I believe it checks the CHOST in the binpkg and compares it against the configured CHOST for the system. Doesn't it also still check keywording, at least on newer

Re: [gentoo-portage-dev] using python in installation scripts

2009-04-18 Thread Amit Dor-Shifer
Great. 10x! Amit Alec Warner wrote: On Thu, Apr 16, 2009 at 1:17 AM, Zac Medico zmed...@gentoo.org wrote: Amit Dor-Shifer wrote: I want to read/write an XML file while an ebuild executes. Since I'm unaware of any XML support in bash, I'm thinking of using python: I'd write some python code

[gentoo-portage-dev] using python in installation scripts

2009-04-16 Thread Amit Dor-Shifer
I want to read/write an XML file while an ebuild executes. Since I'm unaware of any XML support in bash, I'm thinking of using python: I'd write some python code and bundle it somehow into the package, so that is shall be usable from pkg_XXX scripts. I browsed the tree and couldn't find other

[gentoo-portage-dev] Error notification when PORTAGE_BINHOST unreachable?

2009-04-07 Thread Amit Dor-Shifer
Hi. I'm trying to emerge a binary package I've put on a remote host. Initially I couldn't get the package to emerge: amit0 Common # emerge -pvg =app-editors/vim-7.1.266 These are the packages that would be merged, in order: Calculating dependencies - Fetching bininfo from

Re: [gentoo-portage-dev] version management for eclasses

2009-03-29 Thread Amit Dor-Shifer
wrote: Amit Dor-Shifer wrote: I've been through the list, and also read GLEP #33, in search for recommended practices regarding eclasses. the way I understand it, when an eclass is modified to accomodate a new ebuild, old ebuilds are broken. Specifically, downgrading with those broken ebuilds

Re: [gentoo-portage-dev] version management for eclasses

2009-03-29 Thread Amit Dor-Shifer
Yep. I'd have to maintain the old eclass in the tree, just to facilitate for those special downgrades. Thanks. Wanted to assure myself that I got that one correctly. Amit Zac Medico wrote: Amit Dor-Shifer wrote: That environment.bz relates to the installed package? And downgrading means

[gentoo-portage-dev] version management for eclasses

2009-03-26 Thread Amit Dor-Shifer
I've been through the list, and also read GLEP #33, in search for recommended practices regarding eclasses. the way I understand it, when an eclass is modified to accomodate a new ebuild, old ebuilds are broken. Specifically, downgrading with those broken ebuilds is no longer possible, as the

[gentoo-portage-dev] qfile assumes category names contain a hyphen

2009-03-16 Thread Amit Dor-Shifer
Hi all. While working on my overlay, I stumbled on an issue where qfile refused to acknowledge an installed file as being part of my package. Looking into q's implementation (portage-utils-0.1.29), I see: amit0 portage-utils-0.1.29 # grep -A 2 next_entry ./libq/vdb_get_next_dir.c next_entry:

[gentoo-portage-dev] Who's maintaining the Eclass HOWTO page nowdays?

2009-03-11 Thread Amit Dor-Shifer
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2chap=2 10x, Amit

[gentoo-portage-dev] use of sftp/scp transfer protocol in ebuilds.

2009-01-29 Thread Amit Dor-Shifer
Hi. I'm trying to make a package that downloads the distfile using a secured transfer protocol and ssh's pubkey authentication. I've modified /etc/make.conf: amit0 myapp # grep SFTP /etc/make.conf FETCHCOMMAND_SFTP=/usr/bin/sftp \${URI} \${DISTDIR} When I'm setting SRC_URI like this: amit0

Re: [gentoo-portage-dev] How to extract the version/revision of an installed package?

2008-11-26 Thread Amit Dor-Shifer
Is there syntax in eix for querying: is package X installed with a version X.Y or higher? Amit René 'Necoro' Neumann wrote: Amit Dor-Shifer schrieb: Thanks :) Reason I thought this is relevant is: I'm basically looking for an API to get an installed package's version/rev. I prefer

[gentoo-portage-dev] How to extract the version/revision of an installed package?

2008-11-25 Thread Amit Dor-Shifer
Given the following: # qlist -Iv sys-apps/portage sys-apps/portage-2.1.4.5 How do I safely extract the 2.1.4.5? (I don't necessarily need to use qlist. Just want to get the version of an installed package within a bash script) 10x Amit

[gentoo-portage-dev] Re: querying whether pkg is installed with version X or upwards (atom syntax) (re-post)

2008-03-26 Thread Amit Dor-Shifer
reposting, hoping for a reply this time. Thanks, Amit Amit Dor-Shifer wrote: emerge features syntax for installing a package according to certain bounds. This is referred to in the manpage as atom specification. I'm wondering whether equery has the same feature for querying. E.G: I'd like

[gentoo-portage-dev] querying whether pkg is installed with version X or upwards (atom syntax)

2008-02-12 Thread Amit Dor-Shifer
emerge features syntax for installing a package according to certain bounds. This is referred to in the manpage as atom specification. I'm wondering whether equery has the same feature for querying. E.G: I'd like to be able to ask: equery l '=app-misc/my-pkg-1.1' I'd expect the listing to be