Bug 194478 - [new port] java/wildfly81
Summary: [new port] java/wildfly81
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2014-10-20 09:13 UTC by yerenkow
Modified: 2014-11-22 17:31 UTC (History)
1 user (show)

See Also:


Attachments
ports tar (14.15 KB, application/x-gzip)
2014-10-20 09:13 UTC, yerenkow
no flags Details
Shar with port (145.85 KB, text/plain)
2014-11-01 11:55 UTC, yerenkow
no flags Details
Poudriere log (14.90 KB, text/x-log)
2014-11-12 15:51 UTC, yerenkow
no flags Details
Shar with fixed port (141.98 KB, text/plain)
2014-11-13 09:55 UTC, yerenkow
no flags Details
Poudriere log for fixed port (14.90 KB, text/x-log)
2014-11-13 09:56 UTC, yerenkow
no flags Details
Port without @dir (87.84 KB, text/plain)
2014-11-13 10:16 UTC, yerenkow
no flags Details
Log file with error (12.20 KB, text/x-log)
2014-11-13 10:26 UTC, yerenkow
no flags Details
Latest shar with port (88.07 KB, text/plain)
2014-11-13 10:59 UTC, yerenkow
no flags Details
Latest success build (15.19 KB, text/plain)
2014-11-13 10:59 UTC, yerenkow
no flags Details
Latest shar with port (88.06 KB, text/plain)
2014-11-13 11:27 UTC, yerenkow
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yerenkow 2014-10-20 09:13:19 UTC
Created attachment 148494 [details]
ports tar

Please, add new port prepared by Horst Leitenmueller with me as maintainer.
Thanks!
Comment 1 John Marino freebsd_committer freebsd_triage 2014-11-01 10:21:36 UTC
please resubmit as a shar file as outlined here:
https://www.freebsd.org/doc/en/books/porters-handbook/porting-submitting.html
Comment 2 yerenkow 2014-11-01 11:55:19 UTC
Created attachment 148865 [details]
Shar with port
Comment 3 John Marino freebsd_committer freebsd_triage 2014-11-01 12:14:34 UTC
two problems:

1) the @dirrm lines are obsolete.  The latest portlint probably confirms this.
2) this line:
X	${MKDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION} && cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu -R ${USER}:${GROUP} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}

That needs to be split up.  We assume each line is successful.  It would probably be something like:
@${MKDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}
(cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu -R ${USER}:${GROUP} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION})

Except that second line is wrong too.  You need to use ${COPYTREE_SHAR} macro, not $CPIO with roll-your-own permissions settings

also, do you have the ability to provide poudriere logs proving this port is fully tested with stage-qa checks?  (e.g. poudriere bulk -t or poudriere testport commands).  If yes, please attach the log.  This is really important for new ports.
Comment 4 yerenkow 2014-11-01 12:21:35 UTC
No, don't have logs, tested this port manually.
If they are mandatory - will provide in a week probably.
Comment 5 John Marino freebsd_committer freebsd_triage 2014-11-01 12:28:07 UTC
(In reply to yerenkow from comment #4)
> No, don't have logs, tested this port manually.
> If they are mandatory - will provide in a week probably.

A week is fine.
I can't claim they are "mandatory" (yet), but it is in your very best interest to provide those logs.  Often you find problems with your port in the process, so when you finally submit it, it's in really good shape.

FYI: if you don't do it, a committer is going to and he's just going to kick it back if there are problems so you might as well know first.
Comment 6 yerenkow 2014-11-12 15:51:34 UTC
Created attachment 149325 [details]
Poudriere log
Comment 7 John Marino freebsd_committer freebsd_triage 2014-11-12 17:13:03 UTC
(In reply to yerenkow from comment #6)
> Created attachment 149325 [details]
> Poudriere log


Hmmm.
Thanks, but why didn't you upload the updated shar first?  I pointed out several problems to address in comment 3.

Also, you have PORTREVISION=1 which is wrong for a new port.  It shouldn't be defined at all.

Please remove it, the dirrmtry lines, use COPYTREE_SHARE, etc, and then upload a new poudriere log to prove it still works, thanks.
Comment 8 yerenkow 2014-11-13 09:55:48 UTC
Created attachment 149360 [details]
Shar with fixed port
Comment 9 yerenkow 2014-11-13 09:56:08 UTC
Created attachment 149361 [details]
Poudriere log for fixed port
Comment 10 John Marino freebsd_committer freebsd_triage 2014-11-13 09:57:30 UTC
Comment on attachment 149360 [details]
Shar with fixed port

set MIMI to text/plain instead of application/x-shar
Comment 11 John Marino freebsd_committer freebsd_triage 2014-11-13 10:00:20 UTC
X@dir %%APP_HOME%%/.installation
X@dir %%APP_HOME%%/appclient/configuration
X@dir %%APP_HOME%%/appclient
X@dir %%APP_HOME%%/bin/client
X@dir %%APP_HOME%%/bin
X@dir %%APP_HOME%%/docs/examples/configs


no.


I said remove the lines, not replace them.
Why did you put @dir lines here?  Do you know what @dir is used for?

Read /usr/ports/CHANGES if you are not sure.
Comment 12 yerenkow 2014-11-13 10:16:16 UTC
Created attachment 149362 [details]
Port without @dir
Comment 13 yerenkow 2014-11-13 10:17:36 UTC
But when I removed @dir I got check-plist phase error
Comment 14 John Marino freebsd_committer freebsd_triage 2014-11-13 10:21:58 UTC
Comment on attachment 149362 [details]
Port without @dir

Please set MIME type to text/plain!
Comment 15 John Marino freebsd_committer freebsd_triage 2014-11-13 10:23:19 UTC
(In reply to yerenkow from comment #13)
> But when I removed @dir I got check-plist phase error

Where?  %%APP_HOME%% is in the PREFIX so it doesn't need it.
Comment 16 yerenkow 2014-11-13 10:26:52 UTC
Created attachment 149364 [details]
Log file with error
Comment 17 John Marino freebsd_committer freebsd_triage 2014-11-13 10:31:38 UTC
Error: Orphaned: @dir %%APP_HOME%%/.installation
Error: Orphaned: @dir %%APP_HOME%%/domain/data/content
Error: Orphaned: @dir %%APP_HOME%%/domain/tmp/auth
Error: Orphaned: @dir %%APP_HOME%%/standalone/lib/ext
Error: Orphaned: @dir %%APP_HOME%%/standalone/tmp/auth


This means you have empty directories in STAGEDIR that you don't have in your pkg-plist.

If you really want to install empty directories, you need to use @dir.  I doubt this is the case for .installation, so you need to remove the directories, e.g..

post-install:
  ${RM} -f ${STAGEDIR}${APP_HOME}/.installation \
    ${STAGEDIR}${APP_HOME}/domain/tmp/auth
Comment 18 yerenkow 2014-11-13 10:37:37 UTC
Except for .installation, this dirs are required, I'll add four @dir and one rm then
Comment 19 yerenkow 2014-11-13 10:59:02 UTC
Created attachment 149371 [details]
Latest shar with port
Comment 20 yerenkow 2014-11-13 10:59:22 UTC
Created attachment 149372 [details]
Latest success build
Comment 21 John Marino freebsd_committer freebsd_triage 2014-11-13 11:05:32 UTC
Comment on attachment 149371 [details]
Latest shar with port

This is the third time I've asked you to properly set the MIME type when you upload a shar as an attachment. __PLEASE__ be careful.
Comment 22 John Marino freebsd_committer freebsd_triage 2014-11-13 11:06:11 UTC
Comment on attachment 149372 [details]
Latest success build

log MIME is text/plain too.
Comment 23 John Marino freebsd_committer freebsd_triage 2014-11-13 11:10:08 UTC
I only see one minor issue.  You have both do-install and post-install targets.  You only need one.

CHANGE:

Xdo-install:
X	${MKDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION} 
X	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}
X	chmod +x ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/bin/*.sh
X
Xpost-install:
X	${RMDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/.installation

TO:

Xdo-install:
X	${MKDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION} 
X	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}
X	chmod +x ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/bin/*.sh
X	${RMDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/.installation


Make that change, upload a new shar (text/plain MIME type please) and then I'll promote the PR.  You don't need to upload a new poudriere test log.
Comment 24 John Marino freebsd_committer freebsd_triage 2014-11-13 11:11:43 UTC
ah, quick hit

change:
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}

to:

(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION})


(parentheses)
Comment 25 yerenkow 2014-11-13 11:23:34 UTC
Sorry for Mime, filed bug based on your comments:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194990
Comment 26 yerenkow 2014-11-13 11:27:28 UTC
Created attachment 149373 [details]
Latest shar with port
Comment 27 John Marino freebsd_committer freebsd_triage 2014-11-13 11:30:29 UTC
okay, this looks good, thus I will promote the PR to the patch-ready pool.
Comment 28 commit-hook freebsd_committer freebsd_triage 2014-11-22 17:30:27 UTC
A commit references this bug:

Author: pi
Date: Sat Nov 22 17:29:52 UTC 2014
New revision: 373081
URL: https://svnweb.freebsd.org/changeset/ports/373081

Log:
  New port: java/wildfly81

  WildFly is a flexible, lightweight, managed application
  runtime that helps you build amazing  applications.
  WildFly - new name for JBoss Application Server

  Fast Startup
  Small Footprint
  Modular Design
  Unified Configuration and Management

  And of course Java EE!

  WWW: http://wildfly.org

  PR:		194478
  Submitted by:	yerenkow@gmail.com

Changes:
  head/java/Makefile
  head/java/wildfly81/
  head/java/wildfly81/Makefile
  head/java/wildfly81/distinfo
  head/java/wildfly81/files/
  head/java/wildfly81/files/patch-bin-add-user.sh
  head/java/wildfly81/files/wildfly81.in
  head/java/wildfly81/pkg-descr
  head/java/wildfly81/pkg-message
  head/java/wildfly81/pkg-plist
Comment 29 Kurt Jaeger freebsd_committer freebsd_triage 2014-11-22 17:31:22 UTC
Committed, thanks.

Can java/wildfly80 be removed (soonish) ?