Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage curly brace use flag for test [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 1:31 pm    Post subject: portage curly brace use flag for test [SOLVED] Reply with quote

It appears that sometimes portage shows use flags with curly braces surrounding the flag.
It appears that "USE=-flag" has no effect on such a flag.
After two days of searching over internet I ask : is this feature documented in gentoo?

example:
USE="-test" emerge opensp
answer:
circular dependency
It might be possible to break the cycle
by applying the following change
- app-text/opensp-1.5.2-r3 (changed USE: -test)


Last edited by sinfree on Wed Sep 11, 2013 4:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 2:44 pm    Post subject: RDEPEND and PDEPEND in openjade ebuild Reply with quote

As stated in https://devmanual.gentoo.org/general-concepts/dependencies/index.html
saying:
Post-Merge Dependencies

The PDEPEND variable specifies dependencies which must be merged after the package. This is sometimes used for plugins which have a dependency upon the package being merged. Generally PDEPEND should be avoided in favour of RDEPEND except where this will create circular dependency chains.

should I change RDEPEND to PDEPEND for app-text/opensp dependency in openjade ebuild?
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 2:49 pm    Post subject: Pdepend Reply with quote

If I modify the ebuild to add the PDEPEND modification how do I avoid package corruption?
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 2:55 pm    Post subject: --digest option Reply with quote

The digest option seems to avoid portage corruption from being noticed.
But the circular dependency continues to block upgrade.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Wed Sep 11, 2013 2:55 pm    Post subject: Reply with quote

The Dev guide isn't quite accurate. Packages listed in PDEPEND in an ebuild are not guarenteed to be emerged after that package. See https://bugs.gentoo.org/show_bug.cgi?id=424117 . As far as corruption the best solution is to create an overlay and stick your modified ebuild in it.
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 2:59 pm    Post subject: Bad solution Reply with quote

These solutions appears to be bad solutions as they are too complex to be implied:
the circular dependency appears each time the package openjade is used.
It blocks my world update.
There should be a simple solution avoiding developing tchniques.
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 3:02 pm    Post subject: simple solution but heavy Reply with quote

The simple solution is to ask package maintainer to correct their ebuild, but it has a time effect on package upgrade as it blocks world upgrade.

What should be temporary work around?
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 3:04 pm    Post subject: email of ebuild maintainer Reply with quote

If I want to signal ebuild problem where can I find ebuild maintainer email?
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 3:33 pm    Post subject: "test" flag has conditional flag in opensp Reply with quote

"test" flag has conditional flag in opensp; why I cannot disable it with USE="-test"?
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 3:39 pm    Post subject: USE="-test" is what emerge preconises, so what els Reply with quote

USE="-test" is what emerge preconises, so what else?
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 3:47 pm    Post subject: http://dev.gentoo.org/~zmedico/portage/doc/man/emerge.1.html Reply with quote

--changed-use
Tells emerge to include installed packages where USE flags have changed since installation. This option also implies the --selective option. Unlike --newuse, the --changed-use option does not trigger reinstallation when flags that the user has not enabled are added or removed.
NOTE: This option ignores the state of the "test" USE flag, since that flag has a special binding to FEATURES="test" (see make.conf(5) for more information about FEATURES settings).

So that USE="-test" has no effect as changed-use cannot affect test.

I have to modify FEATURES settings, just web browsing a little more...
Back to top
View user's profile Send private message
sinfree
n00b
n00b


Joined: 10 Sep 2013
Posts: 17

PostPosted: Wed Sep 11, 2013 3:53 pm    Post subject: FEATURES="-test" [SOLVED] Reply with quote

The USE variable has no effect on test.

But FEATURES can,

so
FEATURES="-test" emerge opensp

can unlock
emerge --update world
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum