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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5771</bug_id>
          
          <creation_ts>2014-01-29 18:32:00 +0000</creation_ts>
          <short_desc>Add convenience variables for the include and library paths</short_desc>
          <delta_ts>2014-01-31 00:43:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40087</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-01-29 18:32:00 +0000</bug_when>
    <thetext>It is common out there that buildsystems, SDKs and tools use convenience variables for these since for software development, one would need to hand-craft them in the same repetitive way.

Here is the proposal for two convenience variables:

PKG_CONFIG_INCLUDE_DIR=$PKG_CONFIG_SYSROOT_DIR/usr/include ...
PKG_CONFIG_LIBRARY_DIR=$PKG_CONFIG_SYSROOT_DIR/usr/lib:$PKG_CONFIG_SYSROOT_DIR/lib ...

The SDK environment setup script then would contain these two additional lines. For sure, it would be getting more complex if someone does not use standard paths, etc, but that is a different issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40121</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2014-01-31 00:22:47 +0000</bug_when>
    <thetext>The SDK environment setup script is used to setup the cross development environment so these 2 variables definitlely don&apos;t belong there.

Also, we&apos;ve made some cleanup of the toolchain-scripts/meta-environment with this patch recently.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta?id=d6cc7c8ed76c8b1117cf03c7bd4b0742f98f79b3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40122</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-01-31 00:35:20 +0000</bug_when>
    <thetext>&gt; The SDK environment setup script is used to setup the cross development environment so these 2 variables definitely don&apos;t belong there.

Include and library paths are very much essentials for cross development environments.

In fact, I see people hand-crafting themselves, hence the logic to do it in one place without any additional harm with a pretty easy extension.

It is not accidental that the previous mentioned environments also supply these. How would you build a third-party software without include and library paths, really?

I would suggest to reconsider this, or give a more thorough explanation why it makes sense.

Failing that, I will just try to send a patch myself to the mailing list because I think there is something misunderstanding.

Moreover, the &quot;base&quot; variable does not seem to be removed, but I think it would be weird to see that removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40123</commentid>
    <comment_count>3</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-01-31 00:43:03 +0000</bug_when>
    <thetext>The problem is also that if people hand-craft it themselves, it will be more difficult for end-users to move their application from one SDK version to another.

This is another reason on top of the simple convenience wrapper.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>