<?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>101329</bug_id>
          
          <creation_ts>2005-08-04 07:01 0000</creation_ts>
          <short_desc>Apache-Gallery-0.9.1 depends on wrong libapreq library, missing postinstall-en.txt</short_desc>
          <delta_ts>2005-08-08 14:54:47 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>Applications</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>spam@tnonline.net</reporter>
          <assigned_to>web-apps@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>spam@tnonline.net</who>
            <bug_when>2005-08-04 07:01:43 0000</bug_when>
            <thetext>Apache-Gallery-0.9.1 works with both Apache-1 and Apache-2. The ebuild checks for the 
apache2 USE flag and then sets dependencies on that. The problem is that apache2 
requires libapreq2 is installed, not libapreq. The ebuild should be updated to depend on 
this.

Also a file is missing from the ebuild:

~~~~~~~~~~~~~~~~

 * Using ExtUtils::MakeMaker
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::Gallery
cp lib/Apache/Gallery.pm blib/lib/Apache/Gallery.pm
Manifying blib/man3/Apache::Gallery.3pm
&gt;&gt;&gt; Test phase [not enabled]: www-apps/Apache-Gallery-0.9.1

&gt;&gt;&gt; Install Apache-Gallery-0.9.1 into /var/tmp/portage/Apache-Gallery-0.9.1/image/ 
category www-apps
Installing /var/tmp/portage/Apache-Gallery-0.9.1/image/usr/lib/perl5/vendor_perl/5.8.6/
Apache/Gallery.pm
Installing /var/tmp/portage/Apache-Gallery-0.9.1/image/usr/share/man/man3/Apache::
Gallery.3pm
Writing /var/tmp/portage/Apache-Gallery-0.9.1/image//usr/lib/perl5/vendor_perl/5.8.6/
i686-linux/auto/Apache/Gallery/.packlist
Appending installation info to /var/tmp/portage/Apache-Gallery-0.9.1/image//usr/lib/
perl5/5.8.6/i686-linux/perllocal.pod
 * ebuild fault: file &apos;/usr/local/portage_overlay/www-apps/Apache-Gallery/files/postinstall-
en.txt&apos; not found
 * Please report this as a bug at http://bugs.gentoo.org/

!!! ERROR: www-apps/Apache-Gallery-0.9.1 failed.
!!! Function webapp_checkfileexists, Line 57, Exitcode 0
!!! ebuild fault: file &apos;/usr/local/portage_overlay/www-apps/Apache-Gallery/files/postinstall-
en.txt&apos; not found
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-04 07:34:53 0000</bug_when>
            <thetext>&gt; /usr/local/portage_overlay/www-apps/Apache-Gallery/files/postinstall-
en.txt&apos; not found

Your overlay, your bug. ;-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spam@tnonline.net</who>
            <bug_when>2005-08-04 07:43:58 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; &gt; /usr/local/portage_overlay/www-apps/Apache-Gallery/files/postinstall-
&gt; en.txt&apos; not found
&gt; 
&gt; Your overlay, your bug. ;-)

Seriously, don&apos;t you think I already tested without the overlay? I used overlay because I 
fixed the dependency problem.

The file Apache-Gallery/files/postinstall.txt is not on the mirror.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spam@tnonline.net</who>
            <bug_when>2005-08-04 07:45:22 0000</bug_when>
            <thetext>Apache-Gallery-0.9.1.ebuild, Line 59:

webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-04 07:55:59 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Seriously, don&apos;t you think I already tested without the overlay? I used
overlay because I 
&gt; fixed the dependency problem.

Seriously, be so kind and post error messages that you get when installing the
ebuild *from official portage tree* next time. The summary of this bug talks
about wrong dependency and the error shown here shows that postinstall-en.txt&apos;
is missing, so what is this bug actually about?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spam@tnonline.net</who>
            <bug_when>2005-08-04 08:03:51 0000</bug_when>
            <thetext>Here is some info about the dependency problem:

# emerge Apache-Gallery -pv

These are the packages that I would merge, in order:

Calculating dependencies |
!!! All ebuilds that could satisfy &quot;&lt;www-apache/mod_perl-1.99&quot; have been masked.
!!! One of the following masked packages is required to complete your request:
- www-apache/mod_perl-1.29 (masked by: package.mask, ~x86 keyword)
- www-apache/mod_perl-1.27-r4 (masked by: package.mask)
- www-apache/mod_perl-1.27-r1 (masked by: package.mask)
- www-apache/mod_perl-1.27-r2 (masked by: package.mask)

For more information, see MASKED PACKAGES section in the emerge man page or
section 2.2 &quot;Software Availability&quot; in the Gentoo Handbook.
!!!    (dependency required by &quot;www-apache/libapreq-1.2-r1&quot; [ebuild])


The problem is www-apache/libapreq-1.2-r1. When you have Apache2 installed you need 
www-apache/libapreq2.

The problem is the DEPEND= line in the ebuild:

    &gt;=www-apache/libapreq-1.0
    !apache2? ( &gt;=net-www/apache-1.3.26-r2
        =www-apache/mod_perl-1* )
    apache2? ( &gt;=net-www/apache-2.0.43-r1
        &gt;=www-apache/mod_perl-1.99 ) &quot;

It should be rewritten as:

    !apache2? ( &gt;=net-www/apache-1.3.26-r2
        &gt;=www-apache/libapreq-1.0
        =www-apache/mod_perl-1* )
    apache2? ( &gt;=net-www/apache-2.0.43-r1
        &gt;=www-apache/libapreq2-2.0
        &gt;=www-apache/mod_perl-1.99 ) &quot;


Also, The file postinstall-en.txt is still missing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-04 08:07:20 0000</bug_when>
            <thetext>Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spam@tnonline.net</who>
            <bug_when>2005-08-04 08:08:17 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; Thanks.
Sorry for the confusion and harsh tone. My appologies.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-08-04 10:50:23 0000</bug_when>
            <thetext>Thanks for reporting, should get to it very soon. libapreq2 was just unmasked today.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-08-05 04:20:00 0000</bug_when>
            <thetext>Added missing postinstall-en.txt, will look into the libapreq2 issue over the
weekend.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-08-08 14:54:47 0000</bug_when>
            <thetext>In CVS, thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>