Bug 90913 - [maintainer] Fix bad DISTFILES in www/jakarta-tomcat55
Summary: [maintainer] Fix bad DISTFILES in www/jakarta-tomcat55
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: Herve Quiroz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-26 07:30 UTC by Kang Liu
Modified: 2005-12-27 16:12 UTC (History)
0 users

See Also:


Attachments
file.diff (762 bytes, patch)
2005-12-26 07:30 UTC, Kang Liu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kang Liu 2005-12-26 07:30:02 UTC
1. Fix bad DISTFILES in Makefile, we should also change the DISTFILES for jdk1.4
2. bump PORTREVISION

This problem is noticed by YAMAMOTO Takao takao at oakat.org

How-To-Repeat: build www/jakarta-tomcat55 with jdk14
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-26 07:33:49 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (submitter is not maintainer)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-26 07:33:58 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 3 YAMAMOTO Takao 2005-12-26 09:28:13 UTC
Hi,

Because DISTFILES will be set then passed to bsd.port.mk in this case,
filling DISTFILES as ${DISTNAME}${EXTRACT_SUFX} rule won't be applied. 
As result "apache-tomcat-5.5.12.tar.gz" will no longer be fetched.
It needs that this variable to set explicitly.

An additional patch for Makefile may be like as follows:

--- Makefile.org        Mon Dec 26 18:11:00 2005
+++ Makefile    Mon Dec 26 18:04:28 2005
@@ -12,6 +12,7 @@
 MASTER_SITES=  ${MASTER_SITE_APACHE_JAKARTA}
 MASTER_SITE_SUBDIR=    tomcat-5/v${PORTVERSION}/bin
 DISTNAME=      apache-tomcat-${PORTVERSION}
+DISTFILES=     ${DISTNAME}.tar.gz
 
 MAINTAINER=    liukang@cn.freebsd.org
 COMMENT=       Open-source Java web server by Apache, 5.5.x branch

thanks,
-- 
Takao
Comment 4 Kang Liu 2005-12-27 05:42:30 UTC
Yes, we should also add "DISTFILES=	${DISTNAME}.tar.gz"

Kang
Comment 5 Herve Quiroz freebsd_committer freebsd_triage 2005-12-27 11:00:40 UTC
State Changed
From-To: feedback->open

Feedback received. 


Comment 6 Herve Quiroz freebsd_committer freebsd_triage 2005-12-27 11:00:40 UTC
Class Changed
From-To: change-request->maintainer-update

Submitter is indeed maintainer: 

# $FreeBSD: /repoman/r/pcvs/ports/www/jakarta-tomcat55/Makefile,v 1.31 2005/12/24 03:43:37 hq Exp $ 
[...] 
MAINTAINER=	liukang@cn.freebsd.org 



Comment 7 Herve Quiroz freebsd_committer freebsd_triage 2005-12-27 11:00:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hq

I'll handle this.
Comment 8 Hervé Quiroz 2005-12-27 11:40:57 UTC
On Tue, Dec 27, 2005 at 01:42:30PM +0800, Kang Liu wrote:
> Yes, we should also add "DISTFILES=	${DISTNAME}.tar.gz"

Or we can get rid of DISTNAME (see the attached patch).

BTW, I don't think bumping PORTREVISION is needed, given this fix does
not change anything for people who already built the port succesfully.


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/jakarta-tomcat55/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- Makefile	24 Dec 2005 03:43:37 -0000	1.31
+++ Makefile	27 Dec 2005 11:37:25 -0000
@@ -7,10 +7,11 @@
 
 PORTNAME=	jakarta-tomcat
 PORTVERSION=	5.5.12
+PORTREVISION=	1
 CATEGORIES=	www java
 MASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
 MASTER_SITE_SUBDIR=	tomcat-5/v${PORTVERSION}/bin
-DISTNAME=	apache-tomcat-${PORTVERSION}
+DISTFILES=	apache-tomcat-${PORTVERSION}.tar.gz
 
 MAINTAINER=	liukang@cn.freebsd.org
 COMMENT=	Open-source Java web server by Apache, 5.5.x branch
@@ -74,7 +75,7 @@
 .include <bsd.port.pre.mk>
 
 .if ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} == "1.4"
-DISTFILES+=	${PORTNAME}-${PORTVERSION}-compat.tar.gz
+DISTFILES+=	apache-tomcat-${PORTVERSION}-compat.tar.gz
 PLIST_SUB+=	JAVA14=""
 .else
 PLIST_SUB+=	JAVA14="@comment "
Comment 9 Kang Liu 2005-12-27 14:06:05 UTC
> -----Original Message-----
> From: Herve Quiroz [mailto:herve.quiroz@esil.univ-mrs.fr]
> Or we can get rid of DISTNAME (see the attached patch).
Yes, we can get rid of this.
> 
> BTW, I don't think bumping PORTREVISION is needed, given this fix does
> not change anything for people who already built the port succesfully.
You are right, according to Porter's Handbook, 5.2.2.1 PORTREVISION:
	Examples of changes which do not require a PORTREVISION bump:
	...
	Build fixes which cause a package to become compilable where it was
previously failing (as long as the changes do not introduce any functional
change on any other platforms on which the port did previously build). Since
PORTREVISION reflects the content of the package, if the package was not
previously buildable then there is no need to increase PORTREVISION to mark
a change.
	...
So we don't need bump PORTREVISION.

Kang
Comment 10 Herve Quiroz freebsd_committer freebsd_triage 2005-12-27 16:12:43 UTC
State Changed
From-To: open->closed

Patch commited. 

Thanks for your contribution!