<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>77669</bug_id>
          
          <creation_ts>2004-03-15 13:28:00 +0000</creation_ts>
          <short_desc>Extraneous message in admin/Makefile.common using --prefix</short_desc>
          <delta_ts>2004-03-15 20:10:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>configure</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>FreeBSD</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>VLO</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Kaper">webmaster</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>215697</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Kaper">webmaster</who>
    <bug_when>2004-03-15 13:28:00 +0000</bug_when>
    <thetext>Version:           unknown (using KDE 3.2.1, compiled sources)
Compiler:          gcc version 3.3.3 [FreeBSD] 20031106
OS:          FreeBSD (i386) release 5.2-RELEASE

When using --prefix, I got the following message from admin/Makefile.common:

Warning: you chose to install this package in /home/cap/install,
but KDE was found in /usr/local.
For this to work, you will need to tell KDE about the new prefix, by ensuring
that KDEDIRS contains it, e.g. export KDEDIRS=/home/cap/install:/usr/local
Then restart KDE.

Kind of extraneous, because the prefixed path *is* in KDEDIRS for me. Would be nice to omit this message when the prefix path is already there, to avoid confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215704</commentid>
    <comment_count>1</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-03-15 13:42:19 +0000</bug_when>
    <thetext>I think, reminding the user of the importance is still ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215782</commentid>
    <comment_count>2</comment_count>
      <attachid>5228</attachid>
    <who name="David Faure">faure</who>
    <bug_when>2004-03-15 17:46:31 +0000</bug_when>
    <thetext>Created attachment 5228
patch

This should do it. Can you test it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215794</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Kaper">webmaster</who>
    <bug_when>2004-03-15 18:15:42 +0000</bug_when>
    <thetext>Doesn&apos;t work, because you prefixed and postfixed the grep with &quot;:&quot;, so this would only work if there are other dirs before *and* behind the prefix in KDEDIRS.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215817</commentid>
    <comment_count>4</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2004-03-15 19:25:31 +0000</bug_when>
    <thetext>&gt; Doesn&apos;t work, because you prefixed and postfixed the grep with &quot;:&quot;, so this would only work if there are other dirs before *and* behind the prefix in KDEDIRS.

No, I also prefixed and postfixed the output of kde-config with &quot;:&quot;....

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215830</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Kaper">webmaster</who>
    <bug_when>2004-03-15 20:01:01 +0000</bug_when>
    <thetext>Ah. Hm, I used $HOME/install which expands to /home/cap/install while I put
/usr/home/cap/install in KDEDIRS.

Works fine now. :-)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215836</commentid>
    <comment_count>6</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2004-03-15 20:10:52 +0000</bug_when>
    <thetext>CVS commit by faure: 

Don&apos;t warn about using a different prefix than kde(libs)&apos;s prefix,
if kde already knows about the prefix (e.g. via KDEDIRS).
CCMAIL: 77669-done@bugs.kde.org


  M +11 -7     configure.in.bot.end   1.4


--- kde-common/admin/configure.in.bot.end  #1.3:1.4
@@ -3,11 +3,15 @@
   # And if so, warn when they don&apos;t match
   if test &quot;$kde_libs_prefix&quot; != &quot;$given_prefix&quot;; then
-    echo &quot;&quot;
-    echo &quot;Warning: you chose to install this package in $given_prefix,&quot;
-    echo &quot;but KDE was found in $kde_libs_prefix.&quot;
-    echo &quot;For this to work, you will need to tell KDE about the new prefix, by ensuring&quot;
-    echo &quot;that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix&quot;
-    echo &quot;Then restart KDE.&quot;
-    echo &quot;&quot;
+    # And if kde doesn&apos;t know about the prefix yet
+    echo &quot;:&quot;`kde-config --path exe`&quot;:&quot; | grep &quot;:$given_prefix/bin/:&quot; 2&gt;&amp;1 &gt;/dev/null
+    if test $? -ne 0; then
+      echo &quot;&quot;
+      echo &quot;Warning: you chose to install this package in $given_prefix,&quot;
+      echo &quot;but KDE was found in $kde_libs_prefix.&quot;
+      echo &quot;For this to work, you will need to tell KDE about the new prefix, by ensuring&quot;
+      echo &quot;that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix&quot;
+      echo &quot;Then restart KDE.&quot;
+      echo &quot;&quot;
+    fi
   fi
 fi


</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5228</attachid>
            <date>2004-03-15 17:46:31 +0000</date>
            <delta_ts>2004-03-15 17:46:31 +0000</delta_ts>
            <desc>patch</desc>
            <filename>configure.in.bot.end.diff</filename>
            <type>text/plain</type>
            <size>1419</size>
            <attacher name="David Faure">faure</attacher>
            
              <data encoding="base64">SW5kZXg6IGNvbmZpZ3VyZS5pbi5ib3QuZW5kCj09PT09PT09PT09PT09PT09PT09PT09P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5kIGlmIGtkZSBkb2Vzbid0IGtub3cgYWJvdXQgdGhlIHByZWZpeCB5ZXQK
KyAgICBlY2hvICI6ImBrZGUtY29uZmlnIC0tcGF0aCBleGVgIjoiIHwgZ3JlcCAiOiRnaXZlbl9w
cmVmaXgvYmluLzoiIDI+JjEgPi9kZXYvbnVsbAorICAgIGlmIHRlc3QgJD8gLW5lIDA7IHRoZW4K
KyAgICAgIGVjaG8gIiIKKyAgICAgIGVjaG8gIldhcm5pbmc6IHlvdSBjaG9zZSB0byBpbnN0YWxs
IHRoaXMgcGFja2FnZSBpbiAkZ2l2ZW5fcHJlZml4LCIKKyAgICAgIGVjaG8gImJ1dCBLREUgd2Fz
IGZvdW5kIGluICRrZGVfbGlic19wcmVmaXguIgorICAgICAgZWNobyAiRm9yIHRoaXMgdG8gd29y
aywgeW91IHdpbGwgbmVlZCB0byB0ZWxsIEtERSBhYm91dCB0aGUgbmV3IHByZWZpeCwgYnkgZW5z
dXJpbmciCisgICAgICBlY2hvICJ0aGF0IEtERURJUlMgY29udGFpbnMgaXQsIGUuZy4gZXhwb3J0
IEtERURJUlM9JGdpdmVuX3ByZWZpeDoka2RlX2xpYnNfcHJlZml4IgorICAgICAgZWNobyAiVGhl
biByZXN0YXJ0IEtERS4iCisgICAgICBlY2hvICIiCisgICAgZmkKICAgZmkKIGZpCiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>