public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] new packages has no dependencies
@ 2016-04-25 20:50 James
  2016-04-25 21:38 ` Michael Orlitzky
  0 siblings, 1 reply; 6+ messages in thread
From: James @ 2016-04-25 20:50 UTC (permalink / raw
  To: gentoo-user

Hello,

After a sync, One of the new packages called for install was
dev-java/jflex

equery depends came back empty
and it's not in the world file.

strangely, why is my system asking for this package to be installed?

It is related to maven-bin but that's not showing up on the dep. tree.
I do have dev-java/maven-bin installed.

jflex does not show up in maven-bin-3.3.3-r1.ebuild

I guess I need enlightenment? a bug?


So now I installed it anyway, and guess what, a dependency now shows up::
dev-java/javacup

and 'equery depends javacup'  yeilds::
dev-java/jflex-1.6.1

A circular! yippie. So how do I post this bug? Can somebody confirm it?
just weird.....

James



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

* Re: [gentoo-user] new packages has no dependencies
  2016-04-25 20:50 [gentoo-user] new packages has no dependencies James
@ 2016-04-25 21:38 ` Michael Orlitzky
  2016-04-26  1:57   ` [gentoo-user] " James
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Orlitzky @ 2016-04-25 21:38 UTC (permalink / raw
  To: gentoo-user

On 04/25/2016 04:50 PM, James wrote:
> 
> A circular! yippie. So how do I post this bug? Can somebody confirm it?
> just weird.....
> 

It's intentional. In jflex-1.6.1.ebuild, you'll find...

  PDEPEND=">=dev-java/javacup-0.11b_p20151001:0"

That's a "post-merge" dependency, and they exist to get around
otherwise-circular dependencies:

  https://devmanual.gentoo.org/general-concepts/dependencies/

Why those two particular packages have circular deps, I can't say.



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

* [gentoo-user] Re: new packages has no dependencies
  2016-04-25 21:38 ` Michael Orlitzky
@ 2016-04-26  1:57   ` James
  2016-04-26  2:41     ` [gentoo-user] Re: CDEPEND James
  0 siblings, 1 reply; 6+ messages in thread
From: James @ 2016-04-26  1:57 UTC (permalink / raw
  To: gentoo-user

Michael Orlitzky <mjo <at> gentoo.org> writes:


> > A circular! yippie. So how do I post this bug? Can somebody confirm it?
> > just weird.....

> It's intentional. In jflex-1.6.1.ebuild, you'll find...

>   PDEPEND=">=dev-java/javacup-0.11b_p20151001:0"

AH. OK. Interesting postulate.....

> That's a "post-merge" dependency, and they exist to get around
> otherwise-circular dependencies:

>   https://devmanual.gentoo.org/general-concepts/dependencies/

Huh. OK. Never looked at this closely before. It strangely makes sense
but, I'm going to have to marinate on this......


> Why those two particular packages have circular deps, I can't say.

Beats me too. That why I'm going to marinate on this. Perhaps if somebody
was to shed a bit more light on the circular need, it might ease the
effort of understanding.

Thanks for the the insight.

James





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

* [gentoo-user] Re: CDEPEND
  2016-04-26  1:57   ` [gentoo-user] " James
@ 2016-04-26  2:41     ` James
  2016-04-26  2:54       ` Sam Jorna
  0 siblings, 1 reply; 6+ messages in thread
From: James @ 2016-04-26  2:41 UTC (permalink / raw
  To: gentoo-user

James <wireless <at> tampabay.rr.com> writes:


> > > A circular! yippie. 
> > It's intentional. In jflex-1.6.1.ebuild, you'll find...

> >   PDEPEND=">=dev-java/javacup-0.11b_p20151001:0"

and I see CDEPEND::

     CDEPEND="dev-java/ant-core:0"

Compile-Depend? If so, what's the difference in DEPEND and CDEPEND?

Googling only produced examples with CDEPND, no clear definition::

[1] https://wiki.gentoo.org/wiki/Java_Developer_Guide
[2] https://devmanual.gentoo.org/eclass-reference/autotools-utils.eclass/

Do you have a definition of exactly what a CDEPEND is?

Those (2) aforemention docs do not show CDEPEND in the local search, as 
they (occurences of "CDEPEND") are found in non-text parts of the documents.


Is there way to globally search doc indexs like: [3] ?

[3] https://devmanual.gentoo.org/eclass-reference/index.html


tia,
James




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

* Re: [gentoo-user] Re: CDEPEND
  2016-04-26  2:41     ` [gentoo-user] Re: CDEPEND James
@ 2016-04-26  2:54       ` Sam Jorna
  2016-04-26 10:35         ` Rich Freeman
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Jorna @ 2016-04-26  2:54 UTC (permalink / raw
  To: gentoo-user

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

On Tue, Apr 26, 2016 at 02:41:23AM +0000, James wrote:
> Do you have a definition of exactly what a CDEPEND is?

CDEPEND is a commonly used name for COMMON_DEPEND - dependencies shared between
DEPEND and RDEPEND (and, potentially, PDEPEND). In cases where you have a fair
number of shared dependencies, and one or two in only DEPEND or RDEPEND, you
could enter the common ones in a variable (commonly CDEPEND) and add that to
your {,R}DEPEND definition.

Use of CDEPEND is common, but not policy. You can find other examples of it's
usage with `qgrep -H CDEPEND` (qgrep is provided by app-portage/portage-utils).

> Those (2) aforemention docs do not show CDEPEND in the local search, as 
> they (occurences of "CDEPEND") are found in non-text parts of the documents.
> 
> 
> Is there way to globally search doc indexs like: [3] ?
> 
> [3] https://devmanual.gentoo.org/eclass-reference/index.html

You could always use a Google search of "CDEPEND site:devmanual.gentoo.org" (or
similar), but otherwise there isn't that I'm aware of.

There is, however, a definition of CDEPEND in the Java Developer Guide[0] on the
wiki (as found with Googling "CDEPEND site:wiki.gentoo.org"). Note that the wiki
*does* have native built-in searching, though).

[0] https://wiki.gentoo.org/wiki/Java_Developer_Guide#JDK.2FJRE

-- 
Sam Jorna (wraeth)
GnuPG Key: D6180C26

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

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

* Re: [gentoo-user] Re: CDEPEND
  2016-04-26  2:54       ` Sam Jorna
@ 2016-04-26 10:35         ` Rich Freeman
  0 siblings, 0 replies; 6+ messages in thread
From: Rich Freeman @ 2016-04-26 10:35 UTC (permalink / raw
  To: gentoo-user

On Mon, Apr 25, 2016 at 10:54 PM, Sam Jorna <wraeth@gentoo.org> wrote:
> On Tue, Apr 26, 2016 at 02:41:23AM +0000, James wrote:
>> Do you have a definition of exactly what a CDEPEND is?
>
> CDEPEND is a commonly used name for COMMON_DEPEND - dependencies shared between
> DEPEND and RDEPEND (and, potentially, PDEPEND). In cases where you have a fair
> number of shared dependencies, and one or two in only DEPEND or RDEPEND, you
> could enter the common ones in a variable (commonly CDEPEND) and add that to
> your {,R}DEPEND definition.
>
> Use of CDEPEND is common, but not policy. You can find other examples of it's
> usage with `qgrep -H CDEPEND` (qgrep is provided by app-portage/portage-utils).
>

Just in case it wasn't obvious from your explanation above, portage
completely ignores the contents of the CDEPEND variable.  It is just
used interally within the ebuild and as you pointed out it gets
included in RDEPEND/DEPEND which is what portage uses.

This is why it isn't in any of the official docs.  If you edited an
ebuild and replaced all occurrences of CDEPEND with MY_VAR_NAME it
would work exactly the same.

Using it is generally a good practice all the same, unless the DEPENDs
really are RDEPENDs as well (which isn't always the case).

-- 
Rich


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

end of thread, other threads:[~2016-04-26 10:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-25 20:50 [gentoo-user] new packages has no dependencies James
2016-04-25 21:38 ` Michael Orlitzky
2016-04-26  1:57   ` [gentoo-user] " James
2016-04-26  2:41     ` [gentoo-user] Re: CDEPEND James
2016-04-26  2:54       ` Sam Jorna
2016-04-26 10:35         ` Rich Freeman

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