# Line attributes in lego1 & lego2

**URL:** <https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152>\
**Category:** ROOT\
**Created:** [May 27, 2013, 12:07pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152 "2013-05-27T12:07:02Z")\
**Posts on this page:** 10\
**Page:** 3

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 2, 2013, 1:22pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/41 "2013-07-02T13:22:53Z")

</div>

FYI, the input file used to generate system.rootrc is:

```auto
$ROOTSYS/config/rootrc.in
```

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 2, 2013, 3:28pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/42 "2013-07-02T15:28:56Z")

</div>

The patch in now applied.  
Thanks

---

<div class="post-metadata">

**Author:** ![Zesp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/b5ac83/32.png) [@Zesp](https://root-forum.cern.ch/u/Zesp)\
**Post date:** [July 2, 2013, 6:09pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/43 "2013-07-02T18:09:36Z")

</div>

[quote]The patch in now applied.[/quote] Thx Olivier.

[quote]FYI, the input file used to generate system.rootrc is:`$ROOTSYS/config/rootrc.in`[/quote]So that’s why $ROOTSYS/etc/system.rootrc was not under version control… 😉  
Thanks.

Z

---

<div class="post-metadata">

**Author:** ![Zesp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/b5ac83/32.png) [@Zesp](https://root-forum.cern.ch/u/Zesp)\
**Post date:** [July 2, 2013, 8:02pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/44 "2013-07-02T20:02:31Z")

</div>

Hi again,

Among the 5 files provided above, 3 are still different between v5-99 (master branch) & v5-34-00-patches

- rootrc.in (see patch below for v5-99)
- TPainter3dAlgorithms.cxx (mainly white spaces)
- THistPainter.cxx (doc, “minor” changes & white spaces)  
For the two latter almost none of the changes seems related to ROOT6.  
So it may be worth keeping these files as close as possible.

Cheers,  
Z  
[rootrc.in.5-99.diff](https://root-forum.cern.ch/uploads/default/original/2X/2/21d759a583092d302c8172f779b2896a72c3a991.diff) (1.74 KB)  
[TPainter3dAlgorithms.cxx.5-99vs5-34-00-patches.diff](https://root-forum.cern.ch/uploads/default/original/2X/8/84c7ee93b2afc4ed2fd47c42b1c75015896957a5.diff) (1.1 KB)  
[THistPainter.cxx.5-99vs5-34-00-patches.diff](https://root-forum.cern.ch/uploads/default/original/2X/2/23d6e56b4b39acd21a261aa1c95e56e275bff5eb.diff) (9.94 KB)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 3, 2013, 8:14am UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/45 "2013-07-03T08:14:44Z")

</div>

so the patch on [rootrc.in](http://rootrc.in) is for ROOT 6 ?  
and the 2 others for 5.34 ?

right ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 3, 2013, 8:23am UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/46 "2013-07-03T08:23:07Z")

</div>

can you send proper diff ?  
The one you sent do not work:

```auto
imaccouet:src couet$ patch TPainter3dAlgorithms.cxx < ~/Downloads/TPainter3dAlgorithms.cxx.5-99vs5-34-00-patches.diff
patching file TPainter3dAlgorithms.cxx
Reversed (or previously applied) patch detected! Assume -R? [n] 
Apply anyway? [n] n
Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file TPainter3dAlgorithms.cxx.rej
```

---

<div class="post-metadata">

**Author:** ![Zesp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/b5ac83/32.png) [@Zesp](https://root-forum.cern.ch/u/Zesp)\
**Post date:** [July 3, 2013, 9:41am UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/47 "2013-07-03T09:41:07Z")

</div>

[quote]so the patch on [rootrc.in](http://rootrc.in) is for ROOT 6 ?[/quote]Yes

[quote]and the 2 others for 5.34 ?[/quote]Nope, these are just the current differences between 5.34 and 5.99 i.e. all the changes you recently commited to the master branch omitting the 5.34 branch.  
The question is: can these changes be backported to 5.34?  
If you can insure me there are no ROOT6 features (e.g. R\_\_SUNCCBUG in TPainter3dAlgorithms.cxx) and no extra dependence with whatever in your recent changes (please check the diff files provided above), I can provide the corresponding patch.

Cheers,  
Z

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 3, 2013, 9:55am UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/48 "2013-07-03T09:55:37Z")

</div>

the diffs show only C++ diff which should fine in both versions (even that SUNCC thing).  
I agree with you that it would be better to have the same code in both versions.

---

<div class="post-metadata">

**Author:** ![Zesp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/b5ac83/32.png) [@Zesp](https://root-forum.cern.ch/u/Zesp)\
**Post date:** [July 3, 2013, 12:34pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/49 "2013-07-03T12:34:46Z")

</div>

So here’s the patch for the branch 5.34.00-patches.  
This amounts to overwrite 5.34.00-patches files by 5.99-patches files.  
Test macros

- [url][Locate like command](https://root-forum.cern.ch/t/locate-like-command/65/1)
- [url][TH1::Integral("width") in TPaveStats (statbox)](https://root-forum.cern.ch/t/th1-integral-width-in-tpavestats-statbox/16238/1)  
still work as expected.  
Cheers,  
Z  
[THistPainter.cxx.5-34-00-patches.diff](https://root-forum.cern.ch/uploads/default/original/2X/0/0c0f4eddae04b5bde8593f7e24a298daeabb7eb3.diff) (15.5 KB)  
[TPainter3dAlgorithms.cxx.5-34-00-patches.diff](https://root-forum.cern.ch/uploads/default/original/2X/e/e55df4dab0e302f3ac05f452aea38801b9dea439.diff) (3.24 KB)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 3, 2013, 2:49pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/50 "2013-07-03T14:49:34Z")

</div>

All in place. Thanks.

[Previous page](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152.md?page=2)
