Bug 103813 - www/p5-Apache-DBI: fix package dependenies when WITH_MODPERL2 and WITH_APACHE2 are defined
Summary: www/p5-Apache-DBI: fix package dependenies when WITH_MODPERL2 and WITH_APACHE...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gabor Kovesdan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 18:10 UTC by Scot Hetzel
Modified: 2006-12-22 13:52 UTC (History)
0 users

See Also:


Attachments
p5-Apache-DBI.patch (817 bytes, patch)
2006-09-29 19:12 UTC, Scot Hetzel
no flags Details | Diff
p5-Apache-DBI.diff (872 bytes, patch)
2006-12-19 03:49 UTC, Philip M. Gollucci
no flags Details | Diff
p5-Apache-DBI.diff (871 bytes, patch)
2006-12-19 03:52 UTC, Philip M. Gollucci
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2006-09-29 18:10:20 UTC
It was reported on the ports mailing list that when WITH_MODPERL2 and WITH_APACHE2 are defined and www/apache22 is installed, the port registers an extra dependancy on the www/apache20 port.

On 9/27/06, Steve Watt <steve@watt.com> wrote:
> Hello,
> 
> I'm trying to build a package for p5-Apache-DBI in a mod_perl2 +
> apache22 system.
> 
> The package comes out with all manner of strange dependencies:
> 
> If I 'make WITH_MODPERL2=yes WITH_APACHE2=yes', the dependencies
> in the package are:
> Registering depends: apache-2.0.59 mod_perl2-2.0.2,3 apache-2.2.3 libiconv-1.9.2_2 expat-2.0.0_1 p5-DBI-1.52 p5-Storable-2.15 perl-5.8.8.
> 
> Note that apache-2.0.59 and apache-2.2.3 are both listed.
>

Fix: 

With the patch in the follow-up email:

make -V RUN_DEPENDS -DWITH_MODPERL2 -DWITH_APACHE2

will now report the following RUN_DEPEND dependancies:

/usr/local/lib/perl5/site_perl/5.8.8/mach/mod_perl2.pm:/usr/ports/www/mod_perl2 /usr/local/sbin/apxs:/usr/ports/www/apache22 /usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm:/usr/ports/databases/p5-DBI /usr/local/bin/perl5.8.8:/usr/ports/lang/perl5.8 /usr/local/sbin/apxs:/usr/ports/www/apache22
How-To-Repeat: On a system with Apache 2.2 installed, run:

cd /usr/ports/www/p5-Apache-DBI
make -V RUN_DEPENDS -DWITH_MODPERL2 -DWITH_APACHE2

And you should get the following RUN_DEPEND dependancies:

/usr/local/sbin/apxs:/usr/ports/www/apache20
/usr/local/lib/perl5/site_perl/5.8.8/mach/mod_perl2.pm:/usr/ports/www/mod_perl2
/usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm:/usr/ports/databases/p5-DBI
/usr/local/bin/perl5.8.8:/usr/ports/lang/perl5.8
/usr/local/sbin/apxs:/usr/ports/www/apache20
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-09-29 18:10:36 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Scot Hetzel 2006-09-29 19:12:14 UTC
Attached is a patch that fixes the package dependancies for the
www/p5-Apache-DBI port.

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
Comment 3 Scot Hetzel 2006-09-29 22:16:51 UTC
Opps, I didn't test the patch when -DWITH_MODPERL2
is not defined.  Apparently the www/mod_perl port
is only for Apache 1.3, and the www/mod_perl2 port
is for Apache 2.0+.

Change the USE_APACHE=1.3+ to USE_APACHE=yes before
commiting the port.

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
Comment 4 Philip M. Gollucci 2006-12-19 03:49:47 UTC
I basically regenerated this patch while Cydex was fixing the Headers on
the previous patch.

Additionally, I moved the BUILD_DEPENDS into the conditions to shut up
portlint -AC


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

I never had a dream come true
'Til the day that I found you.
Even though I pretend that I've moved on
You'll always be my baby.
I never found the words to say
You're the one I think about each day
And I know no matter where life takes me to
A part of me will always be...
A part of me will always be with you.
Comment 5 Philip M. Gollucci 2006-12-19 03:52:04 UTC
Sorry, wrong attachment I made the same goof Scott did.
s/1.3+/yes/

-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

I never had a dream come true
'Til the day that I found you.
Even though I pretend that I've moved on
You'll always be my baby.
I never found the words to say
You're the one I think about each day
And I know no matter where life takes me to
A part of me will always be...
A part of me will always be with you.
Comment 6 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-20 00:26:13 UTC
State Changed
From-To: feedback->open

Feedback received. 


Comment 7 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-20 00:26:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gabor

Take.
Comment 8 dfilter service freebsd_committer freebsd_triage 2006-12-22 13:49:46 UTC
gabor       2006-12-22 13:49:39 UTC

  FreeBSD ports repository

  Modified files:
    www/p5-Apache-DBI    Makefile 
  Log:
  - Fix dependencies
  - Bump PORTREVISION
  
  PR:             ports/103813
  Submitted by:   Scot Hetzel <swhetzel@gmail.com> (with fixes from maintainer)
  Approved by:    erwin (mentor),
                  Philip M. Gollucci <pgollucci@p6m7g8.com> (maintainer)
  
  Revision  Changes    Path
  1.24      +6 -4      ports/www/p5-Apache-DBI/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 9 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-22 13:52:05 UTC
State Changed
From-To: open->closed

Committed, thanks.