<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>223875</bug_id>
          
          <creation_ts>2008-05-27 18:27 0000</creation_ts>
          <short_desc>sci-chemistry/gperiodic-2.0.10 (update)</short_desc>
          <delta_ts>2008-05-29 18:57:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rgkmg25@gmail.com</reporter>
          <assigned_to>cryos@gentoo.org</assigned_to>
          <cc>mlm@ngc17.pl</cc>
    
    <cc>sci-chemistry@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rgkmg25@gmail.com</who>
            <bug_when>2008-05-27 18:27:05 0000</bug_when>
            <thetext>Please find attached gperiodic-2.0.10.ebuild which is an update to gperiodic-2.0.7.ebuild in portage.

GPeriodic is a program for looking up data of elements from the periodic table. It is an easy reference to the periodic table if you ever need it. Go to http://www.frantz.fi/software/gperiodic.php for more information.

rgk</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rgkmg25@gmail.com</who>
            <bug_when>2008-05-27 18:29:25 0000</bug_when>
            <thetext>Created an attachment (id=154509)
http://www.frantz.fi/software/gperiodic.php

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlm@ngc17.pl</who>
            <bug_when>2008-05-28 10:20:26 0000</bug_when>
            <thetext>My sed complains about &apos;|&apos; delimiter:

USE=&quot;-nls&apos; emerge -v1 =gperiodic-2.0.10
-----
&gt;&gt;&gt; Source unpacked.
&gt;&gt;&gt; Compiling source in /tmp/portage/tmpdir/portage/sci-chemistry/gperiodic-2.0.10/work/gperiodic-2.0.10 ...
sed: -e expression #1, char 1: unknown command: `|&apos;
sed: -e expression #1, char 1: unknown command: `|&apos;
make gperiodic
-----

This is about lines:
26: sed -i -e &quot;|make clean|d&quot; Makefile
and 
29: sed -i -e &quot;|make -C po|d&quot; Makefile
Changing &apos;|&apos; to &apos;/&apos; fixes the case.

Another problem is that the ebuild doesn&apos;t check 
if cairo was compiled with USE=&quot;X&quot;. I had cairo without
X support and got following error:
-----
gcc `pkg-config --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -march=pentium-m -pipe -fomit-frame-pointer -g -ggdb -o gperiodic gperiodic.o `pkg-config --libs gtk+-2.0`
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libgdk-x11-2.0.so: undefined reference to `cairo_xlib_surface_create_for_bitmap&apos;
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libgdk-x11-2.0.so: undefined reference to `cairo_xlib_surface_set_size&apos;
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libgdk-x11-2.0.so: undefined reference to `cairo_xlib_surface_create&apos;
collect2: ld returned 1 exit status
make[1]: *** [gperiodic] Error 1
make[1]: Leaving directory `/tmp/portage/tmpdir/portage/sci-chemistry/gperiodic-2.0.10/work/gperiodic-2.0.10&apos;
make: *** [all] Error 2
-----

Again, recompiling cairo with X fixex the case.
Tested on x86.
Hope it will help.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlm@ngc17.pl</who>
            <bug_when>2008-05-28 16:21:46 0000</bug_when>
            <thetext>One more thing: exactly the same is with the stable gperiodic-2.0.7.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-29 12:43:41 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; One more thing: exactly the same is with the stable gperiodic-2.0.7.
&gt; 

Thanks guys, I&apos;ll have a look at this.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cryos@gentoo.org</who>
            <bug_when>2008-05-29 12:54:14 0000</bug_when>
            <thetext>Did something change with sed? The | character has certainly always worked in the past and was one of the preferred delimiters for a while. The current stable ebuild still works here and I am at a loss as to why that would not work. What does your emerge --info look like - I am sure there are many more ebuilds in the tree using this delimiter.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-29 13:31:53 0000</bug_when>
            <thetext>I&apos;ve added gperiodic-2.0.10 to portage.
The sed errors should be fixed and I&apos;ve added a
check for cairo&apos;s X use flag.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-29 13:34:40 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Did something change with sed? The | character has certainly always worked in
&gt; the past and was one of the preferred delimiters for a while. The current
&gt; stable ebuild still works here and I am at a loss as to why that would not
&gt; work. What does your emerge --info look like - I am sure there are many more
&gt; ebuilds in the tree using this delimiter.
&gt; 

I think &quot;|&quot; is allowed for regular expression type things (s|foo|bar|)
but invalid for delete expressions (/foobar/d). I am not sure if &apos;|&apos;
used to be valid in the latter case, but newer sed&apos;s clearly reject it.

Best,
Markus </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cryos@gentoo.org</who>
            <bug_when>2008-05-29 15:13:39 0000</bug_when>
            <thetext>Which versions of sed? I have sys-apps/sed-4.1.5-r1 and it didn&apos;t reject it. I am using ~amd64 and so would have thought I would have been able to reproduce the error...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-29 15:22:08 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; Which versions of sed? I have sys-apps/sed-4.1.5-r1 and it didn&apos;t reject it. I
&gt; am using ~amd64 and so would have thought I would have been able to reproduce
&gt; the error...
&gt; 

Hmm, interesting. I am using sys-apps/sed-4.1.5-r1 as well on ~amd64 and
here is what happens

# cat bla.txt 
foobar
# sed -e &quot;|foobar|d&quot; -i bla.txt 
sed: -e expression #1, char 1: unknown command: `|&apos;
# sed -e &quot;/foobar/d&quot; -i bla.txt 
# cat bla.txt


Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-29 15:28:54 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; Which versions of sed? I have sys-apps/sed-4.1.5-r1 and it didn&apos;t reject it. I
&gt; &gt; am using ~amd64 and so would have thought I would have been able to reproduce
&gt; &gt; the error...
&gt; &gt; 
&gt; 
&gt; Hmm, interesting. I am using sys-apps/sed-4.1.5-r1 as well on ~amd64 and
&gt; here is what happens
&gt; 
&gt; # cat bla.txt 
&gt; foobar
&gt; # sed -e &quot;|foobar|d&quot; -i bla.txt 
&gt; sed: -e expression #1, char 1: unknown command: `|&apos;
&gt; # sed -e &quot;/foobar/d&quot; -i bla.txt 
&gt; # cat bla.txt
&gt; 
&gt; 
&gt; Best,
&gt; Markus
&gt; 

Could it be locale related? I am using en_US.UTF-8, but plain &quot;C&quot;
fails as well.

Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cryos@gentoo.org</who>
            <bug_when>2008-05-29 15:51:20 0000</bug_when>
            <thetext>Sorry - looking closer it does fail now. May be those sed statements should be | die &quot;sed failed&quot;. May be the author should bring back a build system too but hey... Sorry for the noise. In related news I don&apos;t seem to be able to fetch the 2.0.10 package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlm@ngc17.pl</who>
            <bug_when>2008-05-29 16:11:01 0000</bug_when>
            <thetext>If it will help, my emerge --info is an in bug 218084, comment 3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlm@ngc17.pl</who>
            <bug_when>2008-05-29 18:56:23 0000</bug_when>
            <thetext>Answer to comment 5

&gt; I am sure there are many more
&gt; ebuilds in the tree using this delimiter.

I scaned the whole portage tree, sunrise and science overlays
and there is only _one_ ebuild that uses &apos;|&apos; in delete expressions.
Guess which one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-29 18:57:20 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt;In related news I don&apos;t seem to be able to fetch
&gt; the 2.0.10 package.

It should be on our mirrors, I just tried it. In any case,
both SRC_URI and HOMEPAGE were broken so I updated them.
It looks like the 2.0.7 tarball is gone from upstream&apos;s
download page and I&apos;ve therefore changed SRC_URI to point to 
our mirrors instead.

Best,
Markus
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>154509</attachid>
            <date>2008-05-27 18:29 0000</date>
            <desc>http://www.frantz.fi/software/gperiodic.php</desc>
            <filename>gperiodic-2.0.10.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA4IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgoKaW5oZXJp
dCB0b29sY2hhaW4tZnVuY3MKCkRFU0NSSVBUSU9OPSJQZXJpb2RpYyB0YWJsZSBhcHBsaWNhdGlv
biBmb3IgTGludXgiClNSQ19VUkk9Imh0dHA6Ly93d3cuZnJhbnR6LmZpL3NvZnR3YXJlLyR7UH0u
dGFyLmd6IgpIT01FUEFHRT0iaHR0cDovL3d3dy5mcmFudHouZmkvc29mdHdhcmUvZ3BlcmlvZGlj
LnBocCIKCktFWVdPUkRTPSJ4ODYgYW1kNjQiClNMT1Q9IjAiCkxJQ0VOU0U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