[rrd-users] Re: rpmbuild issues

Tobias Oetiker oetiker at ee.ethz.ch
Tue Apr 18 07:32:24 MEST 2006


Hi Abhijit,

thanks for the rrdtool.spec fix (1) ... for 2 and 3 I can not
say much since no rpm heads seem to be interested in fixing this
spec file we have ... very sad ...

regarding the pixel > 7 thing ... the correct fix is:

            for(i=0;ylab[i].grid > 0;i++){
                pixel = im->ysize / (scaledrange / ylab[i].grid);
                gridind = i;
                if (pixel > 7)
                    break;
            }

thanks
tobi


Yesterday Abhijit Das wrote:

> Hi,
>
>
> Recently I tried to build the RPM from rrdtool-1.2.12. However, I ran into
> some problems regarding the build.
>
> 1)       %exclude %{_prefix}/shared/ under the first '%files' section gives
> errors. It should probably be /share instead of shared.
>
> 2)       The '%doc rpm-doc/docs/ examples/' in the same section causes
> issues.
>
> 3)       The font DejaVuSansMono-Roman.ttf is not copied over to the share
> directory. And hence example files are unable to run.
>
>
>
> When configured manually i.e. w/o using RPMs, it seems to work fine.
>
>
>
> The following patch handles the equality case while drawing the graphs.
>
>
>
> --- rrdtool-1.2.12/src/rrd_graph-orig.c 2006-04-17 14:46:55.166186709 -0700
>
> +++ rrdtool-1.2.12/src/rrd_graph.c      2006-04-17 14:47:06.256356891 -0700
>
> @@ -1582,7 +1582,7 @@
>
>         else {
>
>             for(i=0;ylab[i].grid > 0;i++){
>
>                 pixel = im->ysize / (scaledrange / ylab[i].grid);
>
> -               if (pixel > 7) {
>
> +               if (pixel >= 7) {
>
>                     gridind = i;
>
>                     break;
>
>                 }
>
>
>
>
>
> Thanks,
>
> Abhijit
>
>
>
>
>
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://lists.ee.ethz.ch/rrd-users
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>

-- 
ETH Zurich
Tobias Oetiker, IT Support Group D-ITET (ISG.EE)
ETL F24.2, Physikstrasse 3, 8092 Zurich, Switzerland
Phone +41 44 63 25286,  http://people.ee.ethz.ch/oetiker/

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list