<?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>144551</bug_id>
          
          <creation_ts>2006-08-20 13:12 0000</creation_ts>
          <short_desc>media-video/mjpegtools-1.8.0-r1 does not create png2yuv</short_desc>
          <delta_ts>2006-08-25 05:23:31 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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>zzam@gentoo.org</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-20 13:12:08 0000</bug_when>
            <thetext>The Commit 1.16 to mjpegtools-1.8.0-r1.ebuild  broke the ebuild / the configure script of mjpegtools to no longer correctly check for libpng and no longer install /usr/bin/png2yuv.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-20 13:17:52 0000</bug_when>
            <thetext>The associated changelog entry is:
  30 Jul 2006; Diego Petten</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-20 13:17:52 0000</bug_when>
            <thetext>The associated changelog entry is:
  30 Jul 2006; Diego Pettenò &lt;flameeyes@gentoo.org&gt;
  +files/mjpegtools-1.8.0-libquicktime.patch, mjpegtools-1.8.0-r1.ebuild:
  Add patch from bug #128619 when using libquicktime 0.9.9, thanks to Mario
  Fetka; also fix quicktime useflag, thanks to Eldad Zack (eldad), both in bug
  #128619.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-20 14:02:40 0000</bug_when>
            <thetext>for latest mjpegtools-1.8.0-r1.ebuild png2yuv is installed when USE=&quot;quicktime&quot; (regardless wheather quicktime is really installed or only fooled with --nodeps).

When USE=&quot;-quicktime&quot; png2yuv is not installed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-23 14:37:58 0000</bug_when>
            <thetext>The problem is within this part of configure.ac:
---cut---
have_libquicktime=false
if test x$with_libquicktime != xno ; then
  PKG_CHECK_MODULES(LIBQUICKTIME, [libquicktime &gt;= 0.9.4],
                    [have_libquicktime=true
                     AC_DEFINE(HAVE_LIBQUICKTIME, 1, [libquicktime &gt;= 0.9.4 present])],
                    [have_libquicktime=false])
fi

dnl *********************************************************************
dnl Check for PNG library
dnl   (creates LIBPNG_CFLAGS, LIBPNG_LIBS)
dnl *********************************************************************
have_libpng=false
if test x$with_libpng != xno ; then
  PKG_CHECK_MODULES(LIBPNG, [libpng], [have_libpng=true], [have_libpng=false])
  if test x$have_libpng = xfalse ; then
    PKG_CHECK_MODULES(LIBPNG, [libpng12], [have_libpng=true], [have_libpng=false])
  fi
fi
---cut---

The PKG_CHECK_MODULES-startement for quicktime is the first occurrence of pkg-config related things in configure.ac.
Thus it leads to automagic inclusion of PKG_PROG_PKG_CONFIG-macro.
The problem is that in the created configure-script the expanded PKG_PROG_PKG_CONFIG is not in global-scope but contained inside the statement:

---cut---
if test x$with_libquicktime != xno ; then
...
fi
---cut---

And that means it is not executed when --without-libquicktime is on configure-command-line.

This is the reason that the last commit from flameeyes triggered the problem as before that parameter was not there.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-25 05:23:31 0000</bug_when>
            <thetext>Fixed by adding PKG_PROG_PKG_CONFIG in global scope to configure.ac.
Also added use-flag png and dependency to libpng.

</thetext>
          </long_desc>
      
    </bug>

</bugzilla>