View Issue Details

IDProjectCategoryView StatusLast Update
0004546GNUnetARM servicepublic2018-06-06 22:24
ReporterlynX Assigned ToChristian Grothoff Due Date
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.11.0pre66Fixed in Version0.11.0pre66 
Summary0004546: GLOBAL_POSTFIX not added when OPTIONS is set
DescriptionGLOBAL_POSTFIX is not added to the command-line options if a per-service OPTIONS is set. It'd be desireable to either always add GLOBAL_POSTFIX or have a variant of it that is always added.

///

When using GLOBAL_POSTFIX = -l $GNUNET_CACHE_HOME/{}-%Y-%m-%d.log as
suggested by some configurations, only some services write to such
individual logs. Others still gladly send all of their output to the
main log that was provided to gnunet-arm.

https://gnunet.org/bugs/view.php?id=4542#c10785 shows an example of how
the unglobality of GLOBAL_POSTFIX needs to be circumvented.

TagsNo tags attached.

Activities

tg

2016-05-31 20:21

reporter   ~0010824

updated description

Christian Grothoff

2016-06-01 20:01

manager   ~0010841

Should be fixed in SVN 37226 (but not extensively tested).

tg

2016-06-01 22:30

reporter   ~0010846

just tested, GLOBAL_POSTFIX is now added after OPTIONS,
however it would make sense to do it the otherway around:
first GLOBAL_OPTIONS (actually this is a better name for it) then OPTIONS

this results in OPTIONS being able to
- override GLOBAL_OPTIONS (getopt takes the last one out of multiple options with the same name)
- add additional non-switch arguments at the end

also, possibly due to this change or the one for 0004545,
var expansion does not work anymore, see 0004555

lynX

2016-06-02 15:04

developer   ~0010848

tg, we reported this *because* it was behaving the way you are suggesting.. right? While I am fine with a GLOBAL_OPTIONS setting, that is indeed applied to all services (I like the name, if it is more accurate), you would want something more which would be more appropriate to call "DEFAULT_OPTIONS" as the word 'default' makes it clear that it likes to be overridden. Not that I needed such a feature, but if you want it...

Christian Grothoff

2016-06-02 15:13

manager   ~0010849

Option order inverted in SVN 37235.

Issue History

Date ModifiedUsernameFieldChange
2016-05-31 16:11lynXNew Issue
2016-05-31 20:20tgSummaryGLOBAL_POSTFIX inconsistently honored (not as global as expected) => GLOBAL_POSTFIX not added when OPTIONS is set
2016-05-31 20:20tgDescription Updated
2016-05-31 20:21tgNote Added: 0010824
2016-05-31 20:26tgDescription Updated
2016-06-01 12:32lynXDescription Updated
2016-06-01 12:35lynXDescription Updated
2016-06-01 17:12Christian GrothoffAssigned To => Christian Grothoff
2016-06-01 17:12Christian GrothoffStatusnew => assigned
2016-06-01 17:12Christian GrothoffTarget Version => 0.11.0pre66
2016-06-01 20:01Christian GrothoffNote Added: 0010841
2016-06-01 20:01Christian GrothoffStatusassigned => resolved
2016-06-01 20:01Christian GrothoffFixed in Version => 0.11.0pre66
2016-06-01 20:01Christian GrothoffResolutionopen => fixed
2016-06-01 22:30tgNote Added: 0010846
2016-06-02 15:04lynXNote Added: 0010848
2016-06-02 15:04lynXStatusresolved => feedback
2016-06-02 15:04lynXResolutionfixed => reopened
2016-06-02 15:13Christian GrothoffNote Added: 0010849
2016-06-02 15:13Christian GrothoffStatusfeedback => resolved
2016-06-02 15:13Christian GrothoffResolutionreopened => fixed
2018-06-06 22:24Christian GrothoffStatusresolved => closed