<?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>140321</bug_id>
          
          <creation_ts>2006-07-14 02:17 0000</creation_ts>
          <short_desc>app-portage/euses doesn&apos;t work in gentoo/alt</short_desc>
          <delta_ts>2006-12-05 03:23:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>Other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>drizzt@gentoo.org</reporter>
          <assigned_to>jer@gentoo.org</assigned_to>
          <cc>alt@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>drizzt@gentoo.org</who>
            <bug_when>2006-07-14 02:17:34 0000</bug_when>
            <thetext>Hi,
euses doesn&apos;t work on gentoo/alt (source command not exist in /bin/sh),
i attach a patch that resolves that problem (yes, it works also in linux).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>drizzt@gentoo.org</who>
            <bug_when>2006-07-14 02:18:25 0000</bug_when>
            <thetext>Created an attachment (id=91690)
My patch to fix euses source problem

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-07-14 13:46:35 0000</bug_when>
            <thetext>euse is completely broken on OSX because readlink seems to expect other input.  What gentoo/alt system are you using?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-07-14 13:50:57 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; euse is completely broken on OSX because readlink seems to expect other input. 
&gt; What gentoo/alt system are you using?

euses, not euse. I cannot test this myself, sadly, though I am euses&apos; maintainer and upstream. I might be able to support Gentoo/Alt with your help, though. Could you look at the patch? I guess this is a patch against app-portage/euses-2.4.3, which should at the least compile properly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>drizzt@gentoo.org</who>
            <bug_when>2006-07-14 14:46:48 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; euse is completely broken on OSX because readlink seems to expect other input. 
&gt; &gt; What gentoo/alt system are you using?
&gt; 
&gt; euses, not euse. I cannot test this myself, sadly, though I am euses&apos;
&gt; maintainer and upstream. I might be able to support Gentoo/Alt with your help,
&gt; though. Could you look at the patch? I guess this is a patch against
&gt; app-portage/euses-2.4.3, which should at the least compile properly.

also 2.5.0_pre1 works
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-07-15 01:09:58 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; also 2.5.0_pre1 works

Based on the patch in you other bug, you are on a x86-fbsd system?!?

@jer: euses has depend on autoconf-wrapper, which I cannot keyword on OSX, so I won&apos;t even get to compiling the thing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>drizzt@gentoo.org</who>
            <bug_when>2006-07-15 02:20:48 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; also 2.5.0_pre1 works
&gt; 
&gt; Based on the patch in you other bug, you are on a x86-fbsd system?!?
&gt; 
&gt; @jer: euses has depend on autoconf-wrapper, which I cannot keyword on OSX, so I
&gt; won&apos;t even get to compiling the thing.
&gt; 

Yes, i am on x86-fbsd
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-17 21:14:29 0000</bug_when>
            <thetext>Try 2.5.0. It should be able to figure out by itself where bash is.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-11-18 01:43:56 0000</bug_when>
            <thetext>I tried patching it, but maybe upstream can first use their define EMF in euses.c, such that a one place change actually reflects a change in all other locations.

e.g.:

popen(&quot;source /etc/make.globals;&quot;
          &quot;source /etc/make.conf;&quot; &quot;echo -n ${PORTDIR}&quot;, &quot;r&quot;);

to

popen(&quot;source &quot; ETC &quot;/make.globals;&quot;
          &quot;source &quot; EMF &quot;;&quot; &quot;echo -n ${PORTDIR}&quot;, &quot;r&quot;);

or

popen(&quot;source &quot; ETC &quot;/make.globals;&quot;
          &quot;source &quot; ETC &quot;/make.conf;&quot; &quot;echo -n ${PORTDIR}&quot;, &quot;r&quot;);

Maybe you better run eautoreconf as upstream, and if you do in the ebuild, in src_unpack would be better.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-18 04:50:20 0000</bug_when>
            <thetext>Let&apos;s try a different approach: today I (upstream for euses) committed app-portage/euses-2.5.0 to the tree. It finds bash on its own so you might want to try this version (the final &gt;&gt;&gt;app-portage/euses-2.5.0&lt;&lt;&lt; to be precice, not the preview) and see if the problem is solved. Hint: emerge -u euses.


Kind regards,
     JeR</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-11-18 06:40:40 0000</bug_when>
            <thetext>hint:
please || die &quot;I&apos;m not interested in bash&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-18 13:49:34 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; hint:
&gt; please || die &quot;I&apos;m not interested in bash&quot;

How very blunt of you. I don&apos;t think you are cooperating very well. Did you really intend to be this uninformative?

If you would kindly tell me what exactly it is that BSD/OSX needs, I would happily implement it. Some of the questions you never answered are:

1) Are you telling me the script would work with any sh (that is not bash)?
2) Which shells would you like me to test with?
2) Does BSD/OSX support eautoreconf these days?


Kind regards,
     JeR</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-18 14:29:33 0000</bug_when>
            <thetext>2.5.0-r1 is in the tree with all your suggested fixes. Please test (and possibly mark ~arch if you want to).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-11-19 04:25:11 0000</bug_when>
            <thetext>Ok, maybe my comment wasn&apos;t too polite, I&apos;m sorry for that.  Anyhow, you&apos;re not polite at all, so I don&apos;t care at all to get euses to _function_ correcty, as it _compiles_ fine, but _runs_ only if you have /etc/make.conf and /etc/make.globals.  Your package simply doesn&apos;t respect the --sysconfdir= configure flag.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-19 12:03:34 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Ok, maybe my comment wasn&apos;t too polite, I&apos;m sorry for that.  Anyhow, you&apos;re not
&gt; polite at all, so I don&apos;t care at all to get euses to _function_ correcty, as
&gt; it _compiles_ fine, but _runs_ only if you have /etc/make.conf and
&gt; /etc/make.globals.  Your package simply doesn&apos;t respect the --sysconfdir=
&gt; configure flag.

Anything else I need to address to get it it to work?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-19 22:28:00 0000</bug_when>
            <thetext>2.5.1 is in the tree. It uses $sysconfdir to find the paths to make.{conf,globals}. Plztstk?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-11-25 13:13:50 0000</bug_when>
            <thetext>% euses -V
euses 2.5.3
Copyright Jeroen Roovers 2005-2006 - Please report bugs to jer@gentoo.org
This is Free Software (see /Library/Gentoo/usr/portage/licenses/GPL-2)

looks good.  Added ~ppc-macos in prefix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-11-26 13:46:25 0000</bug_when>
            <thetext>(In reply to comment #16)
&gt; % euses -V
&gt; euses 2.5.3
&gt; Copyright Jeroen Roovers 2005-2006 - Please report bugs to jer@gentoo.org
&gt; This is Free Software (see /Library/Gentoo/usr/portage/licenses/GPL-2)
&gt; 
&gt; looks good.  Added ~ppc-macos in prefix.

Thank you. Does this mean all is set to close this bug as RESOLVED/FIXED?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-11-26 13:48:40 0000</bug_when>
            <thetext>The prefix part from Gentoo/Alt is RESOLVED/FIXED.  Don&apos;t know how the BSD part is doing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>drizzt@gentoo.org</who>
            <bug_when>2006-12-05 03:23:20 0000</bug_when>
            <thetext>Since i keyworded it i think it&apos;s possibile to close this bug.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>91690</attachid>
            <date>2006-07-14 02:18 0000</date>
            <desc>My patch to fix euses source problem</desc>
            <filename>euses-source.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGV1c2VzLmMub2xkCTIwMDYtMDctMTQgMTM6MDg6MzMgKzAyMDAKKysrIGV1c2VzLmMJMjAw
Ni0wNy0xNCAxMzowODo0NCArMDIwMApAQCAtMTI3LDggKzEyNyw4IEBACiAJLyogUnVuIHNvbWUg
c3R1ZmYgaW4gYSBzdWJzaGVsbCAoT29oIG15LCBob3cgdWdseSk6ICovCiAJRklMRSAqcHRyOwog
CXB0ciA9Ci0JICAgIHBvcGVuKCJzb3VyY2UgL2V0Yy9tYWtlLmdsb2JhbHM7IgotCQkgICJzb3Vy
Y2UgL2V0Yy9tYWtlLmNvbmY7IiAiZWNobyAtbiAke1BPUlRESVJ9IiwgInIiKTsKKwkgICAgcG9w
ZW4oIi4gL2V0Yy9tYWtlLmdsb2JhbHM7IgorCQkgICIuIC9ldGMvbWFrZS5jb25mOyIgImVjaG8g
LW4gJHtQT1JURElSfSIsICJyIik7CiAJaWYgKGZnZXRzKHBvcnRkaXIsIChpbnQpRklMRU5BTUVf
TUFYLCBwdHIpID09IE5VTEwpCiAJCWRvZXJyb3IoRklMRV9FUlIsIE5VTEwsIE5VTEwpOwogCWlm
IChzdHJsZW4ocG9ydGRpcikgPT0gMCkK
</data>        

          </attachment>
    </bug>

</bugzilla>