openjdk8 dependency installation problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

openjdk8 dependency installation problem

Ali Okan YÜKSEL
Hello,

I am trying to define openjdk8 as dependency for my custom
textproc/elasticsearch5 package. Actually I am trying to fix that port.

When I tried to install this package by using my custom repository, pkg
manager is not installing openjdk8 or jna package. Actually it should be
installed, because jna and openjdk packages are not installed on the target
system. And I think Makefile looks correct.

What you do you think about this dependency installation problem?
How can I debug or solve the problem?

digest.txz meta.txz packagesite.txz files can be used for debug?

Makefile content:

# Created by: Tom Judge <[hidden email]>
# $FreeBSD$

PORTNAME= elasticsearch
PORTVERSION= 5.6.8
PORTREVISION= 5
CATEGORIES= textproc java devel
MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \
                http://mirrors.rit.edu/zi/
PKGNAMESUFFIX= 5

MAINTAINER= [hidden email]
COMMENT= Full-text search engine for Java

LICENSE= APACHE20

BUILD_DEPENDS= jna>0:devel/jna
RUN_DEPENDS= bash>0:shells/bash \
                jna>0:devel/jna

USE_XORG= xt


CONFLICTS= elasticsearch-[0-9]* elasticsearch2-[0-9]* elasticsearch6-[0-9]*

USES= cpe shebangfix
NO_ARCH= yes
USE_JAVA= yes
NO_BUILD= yes
JAVA_VERSION= 1.8+
JAVA_VENDOR= openjdk
JAVA= /usr/local/openjdk8/bin/java
USE_RC_SUBR= ${PORTNAME}
SHEBANG_FILES= bin/elasticsearch-plugin \
                bin/elasticsearch bin/elasticsearch.in.sh

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

CONFIG_FILES= elasticsearch.yml log4j2.properties jvm.options
BINS= elasticsearch.in.sh \
                elasticsearch \
                elasticsearch-plugin

PORTDOCS= LICENSE.txt \
                NOTICE.txt \
                README.textile

SIGAR_ARCH= ${ARCH:S|i386|x86|}
SEARCHUSER?= elasticsearch
SEARCHGROUP?= ${SEARCHUSER}
USERS= ${SEARCHUSER}
GROUPS= ${SEARCHGROUP}

SUB_LIST= ETCDIR=${ETCDIR} JAVA=${JAVA}
SUB_FILES= pkg-message

post-patch:
        ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
${WRKSRC}/config/elasticsearch.yml
        ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
${WRKSRC}/bin/elasticsearch.in.sh
        ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch
        ${RM} ${WRKSRC}/lib/jna-*.jar

do-install:
        ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
        ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch/config
        (cd ${WRKSRC}/config && ${COPYTREE_SHARE} .
${STAGEDIR}${PREFIX}/lib/elasticsearch/config)
        ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
.for f in ${BINS}
        ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
.endfor
        ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib
        (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} .
${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar")

        ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules
        (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} .
${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/)
        ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins
        (cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} .
${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins)
        ${INSTALL} -lrs
${STAGEDIR}${PREFIX}/lib/elasticsearch/bin/elasticsearch-plugin
${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
        ${LN} -s ${JAVASHAREDIR}/classes/jna.jar
${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna.jar
        ${CP} -rf ${STAGEDIR}${PREFIX}/lib/elasticsearch
${STAGEDIR}${PREFIX}/libexec/elasticsearch
        ${CP} -rf ${WRKSRC}/config/* ${STAGEDIR}${PREFIX}/etc/elasticsearch/
       

do-install-DOCS-on:
        ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
        ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

post-install:
        ${ECHO} "@owner elasticsearch" >> ${TMPPLIST}
        ${ECHO} "@group elasticsearch" >> ${TMPPLIST}
        ${ECHO} "bin/elasticsearch-plugin" >> ${TMPPLIST}
        ${FIND} -s ${STAGEDIR}${PREFIX}/etc -not -type d | ${SORT} | \
                ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
        ${FIND} -s ${STAGEDIR}${PREFIX}/libexec/elasticsearch -not -type d |
${SORT} | \
                ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
        ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d | ${SORT} | \
                ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
        ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST}
        ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST}

.include <bsd.port.mk>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openjdk8 dependency installation problem

Ali Okan YÜKSEL
And also I want to add a screenshot about the installation screen which
shows missing dependencies

[image: image.png]

On Mon, Dec 31, 2018 at 1:18 AM Ali Okan YÜKSEL <[hidden email]> wrote:

> Hello,
>
> I am trying to define openjdk8 as dependency for my custom
> textproc/elasticsearch5 package. Actually I am trying to fix that port.
>
> When I tried to install this package by using my custom repository, pkg
> manager is not installing openjdk8 or jna package. Actually it should be
> installed, because jna and openjdk packages are not installed on the target
> system. And I think Makefile looks correct.
>
> What you do you think about this dependency installation problem?
> How can I debug or solve the problem?
>
> digest.txz meta.txz packagesite.txz files can be used for debug?
>
> Makefile content:
>
> # Created by: Tom Judge <[hidden email]>
> # $FreeBSD$
>
> PORTNAME= elasticsearch
> PORTVERSION= 5.6.8
> PORTREVISION= 5
> CATEGORIES= textproc java devel
> MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \
> http://mirrors.rit.edu/zi/
> PKGNAMESUFFIX= 5
>
> MAINTAINER= [hidden email]
> COMMENT= Full-text search engine for Java
>
> LICENSE= APACHE20
>
> BUILD_DEPENDS= jna>0:devel/jna
> RUN_DEPENDS= bash>0:shells/bash \
> jna>0:devel/jna
>
> USE_XORG= xt
>
>
> CONFLICTS= elasticsearch-[0-9]* elasticsearch2-[0-9]* elasticsearch6-[0-9]*
>
> USES= cpe shebangfix
> NO_ARCH= yes
> USE_JAVA= yes
> NO_BUILD= yes
> JAVA_VERSION= 1.8+
> JAVA_VENDOR= openjdk
> JAVA= /usr/local/openjdk8/bin/java
> USE_RC_SUBR= ${PORTNAME}
> SHEBANG_FILES= bin/elasticsearch-plugin \
> bin/elasticsearch bin/elasticsearch.in.sh
>
> OPTIONS_DEFINE= DOCS
>
> .include <bsd.port.options.mk>
>
> CONFIG_FILES= elasticsearch.yml log4j2.properties jvm.options
> BINS= elasticsearch.in.sh \
> elasticsearch \
> elasticsearch-plugin
>
> PORTDOCS= LICENSE.txt \
> NOTICE.txt \
> README.textile
>
> SIGAR_ARCH= ${ARCH:S|i386|x86|}
> SEARCHUSER?= elasticsearch
> SEARCHGROUP?= ${SEARCHUSER}
> USERS= ${SEARCHUSER}
> GROUPS= ${SEARCHGROUP}
>
> SUB_LIST= ETCDIR=${ETCDIR} JAVA=${JAVA}
> SUB_FILES= pkg-message
>
> post-patch:
> ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/elasticsearch.yml
> ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch.in.sh
> ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch
> ${RM} ${WRKSRC}/lib/jna-*.jar
>
> do-install:
> ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
> ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch/config
> (cd ${WRKSRC}/config && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/config)
> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
> .for f in ${BINS}
> ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
> .endfor
> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib
> (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar")
>
> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules
> (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/)
> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins
> (cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins)
> ${INSTALL} -lrs ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin/elasticsearch-plugin ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
> ${LN} -s ${JAVASHAREDIR}/classes/jna.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna.jar
> ${CP} -rf ${STAGEDIR}${PREFIX}/lib/elasticsearch ${STAGEDIR}${PREFIX}/libexec/elasticsearch
> ${CP} -rf ${WRKSRC}/config/* ${STAGEDIR}${PREFIX}/etc/elasticsearch/
>
>
> do-install-DOCS-on:
> ${MKDIR} ${STAGEDIR}${DOCSDIR}
> .for f in ${PORTDOCS}
> ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
> .endfor
>
> post-install:
> ${ECHO} "@owner elasticsearch" >> ${TMPPLIST}
> ${ECHO} "@group elasticsearch" >> ${TMPPLIST}
> ${ECHO} "bin/elasticsearch-plugin" >> ${TMPPLIST}
> ${FIND} -s ${STAGEDIR}${PREFIX}/etc -not -type d | ${SORT} | \
> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> ${FIND} -s ${STAGEDIR}${PREFIX}/libexec/elasticsearch -not -type d | ${SORT} | \
> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d | ${SORT} | \
> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST}
> ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST}
>
> .include <bsd.port.mk>
>
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openjdk8 dependency installation problem

girgen


> 30 dec. 2018 kl. 23:23 skrev Ali Okan YÜKSEL <[hidden email]>:
>
> And also I want to add a screenshot about the installation screen which
> shows missing dependencies
>
> [image: image.png]
>
> On Mon, Dec 31, 2018 at 1:18 AM Ali Okan YÜKSEL <[hidden email]> wrote:
>
>> Hello,
>>
>> I am trying to define openjdk8 as dependency for my custom
>> textproc/elasticsearch5 package. Actually I am trying to fix that port.
>>
>> When I tried to install this package by using my custom repository, pkg
>> manager is not installing openjdk8 or jna package. Actually it should be
>> installed, because jna and openjdk packages are not installed on the target
>> system. And I think Makefile looks correct.
>>
>> What you do you think about this dependency installation problem?
>> How can I debug or solve the problem?
>>
>> digest.txz meta.txz packagesite.txz files can be used for debug?
>>
>> Makefile content:
>>
>> # Created by: Tom Judge <[hidden email]>
>> # $FreeBSD$
>>
>> PORTNAME= elasticsearch
>> PORTVERSION= 5.6.8
>> PORTREVISION= 5
>> CATEGORIES= textproc java devel
>> MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \
>> http://mirrors.rit.edu/zi/
>> PKGNAMESUFFIX= 5
>>
>> MAINTAINER= [hidden email]
>> COMMENT= Full-text search engine for Java
>>
>> LICENSE= APACHE20
>>
>> BUILD_DEPENDS= jna>0:devel/jna
>> RUN_DEPENDS= bash>0:shells/bash \
>> jna>0:devel/jna
>>
>> USE_XORG= xt
>>
>>
>> CONFLICTS= elasticsearch-[0-9]* elasticsearch2-[0-9]* elasticsearch6-[0-9]*
>>
>> USES= cpe shebangfix
>> NO_ARCH= yes
>> USE_JAVA= yes
>> NO_BUILD= yes
>> JAVA_VERSION= 1.8+
>> JAVA_VENDOR= openjdk
>> JAVA= /usr/local/openjdk8/bin/java
>> USE_RC_SUBR= ${PORTNAME}
>> SHEBANG_FILES= bin/elasticsearch-plugin \
>> bin/elasticsearch bin/elasticsearch.in.sh
>>
>> OPTIONS_DEFINE= DOCS
>>
>> .include <bsd.port.options.mk>
>>
>> CONFIG_FILES= elasticsearch.yml log4j2.properties jvm.options
>> BINS= elasticsearch.in.sh \
>> elasticsearch \
>> elasticsearch-plugin
>>
>> PORTDOCS= LICENSE.txt \
>> NOTICE.txt \
>> README.textile
>>
>> SIGAR_ARCH= ${ARCH:S|i386|x86|}
>> SEARCHUSER?= elasticsearch
>> SEARCHGROUP?= ${SEARCHUSER}
>> USERS= ${SEARCHUSER}
>> GROUPS= ${SEARCHGROUP}
>>
>> SUB_LIST= ETCDIR=${ETCDIR} JAVA=${JAVA}
>> SUB_FILES= pkg-message
>>
>> post-patch:
>> ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/elasticsearch.yml
>> ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch.in.sh
>> ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch
>> ${RM} ${WRKSRC}/lib/jna-*.jar
>>
>> do-install:
>> ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
>> ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch/config
>> (cd ${WRKSRC}/config && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/config)
>> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
>> .for f in ${BINS}
>> ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
>> .endfor
>> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib
>> (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar")
>>
>> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules
>> (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/)
>> ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins
>> (cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins)
>> ${INSTALL} -lrs ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin/elasticsearch-plugin ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
>> ${LN} -s ${JAVASHAREDIR}/classes/jna.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna.jar
>> ${CP} -rf ${STAGEDIR}${PREFIX}/lib/elasticsearch ${STAGEDIR}${PREFIX}/libexec/elasticsearch
>> ${CP} -rf ${WRKSRC}/config/* ${STAGEDIR}${PREFIX}/etc/elasticsearch/
>>
>>
>> do-install-DOCS-on:
>> ${MKDIR} ${STAGEDIR}${DOCSDIR}
>> .for f in ${PORTDOCS}
>> ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
>> .endfor
>>
>> post-install:
>> ${ECHO} "@owner elasticsearch" >> ${TMPPLIST}
>> ${ECHO} "@group elasticsearch" >> ${TMPPLIST}
>> ${ECHO} "bin/elasticsearch-plugin" >> ${TMPPLIST}
>> ${FIND} -s ${STAGEDIR}${PREFIX}/etc -not -type d | ${SORT} | \
>> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>> ${FIND} -s ${STAGEDIR}${PREFIX}/libexec/elasticsearch -not -type d | ${SORT} | \
>> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>> ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d | ${SORT} | \
>> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>> ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST}
>> ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST}
>>
>> .include <bsd.port.mk>

Hi,

The makefile looks correct. You write that pkg does not install jna or openjdk, but does make install also fail? How do you build the packages? what is the output from "make -V BUILD_DEPENDS -V RUN_DEPENDS"?

Palle

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openjdk8 dependency installation problem

Ali Okan YÜKSEL
opnsense /usr/ports/textproc/elasticsearch5 # make -V BUILD_DEPENDS -V
RUN_DEPENDS

jna>0:devel/jna  /usr/local/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
bash>0:shells/bash  jna>0:devel/jna
/usr/local/openjdk8/bin/java:java/openjdk8
/usr/local/libdata/pkgconfig/xt.pc:x11-toolkits/libXt

Is it looks correct?

I remember that when I built elasticsearch5 with "make package" command;
not "make package-recursive". Do you think that maybe the problem is
non-usage of -recursive directive, what do you think?


On Mon, Dec 31, 2018 at 7:36 PM Palle Girgensohn <[hidden email]> wrote:

>
>
> > 30 dec. 2018 kl. 23:23 skrev Ali Okan YÜKSEL <[hidden email]>:
> >
> > And also I want to add a screenshot about the installation screen which
> > shows missing dependencies
> >
> > [image: image.png]
> >
> > On Mon, Dec 31, 2018 at 1:18 AM Ali Okan YÜKSEL <[hidden email]>
> wrote:
> >
> >> Hello,
> >>
> >> I am trying to define openjdk8 as dependency for my custom
> >> textproc/elasticsearch5 package. Actually I am trying to fix that port.
> >>
> >> When I tried to install this package by using my custom repository, pkg
> >> manager is not installing openjdk8 or jna package. Actually it should be
> >> installed, because jna and openjdk packages are not installed on the
> target
> >> system. And I think Makefile looks correct.
> >>
> >> What you do you think about this dependency installation problem?
> >> How can I debug or solve the problem?
> >>
> >> digest.txz meta.txz packagesite.txz files can be used for debug?
> >>
> >> Makefile content:
> >>
> >> # Created by: Tom Judge <[hidden email]>
> >> # $FreeBSD$
> >>
> >> PORTNAME=    elasticsearch
> >> PORTVERSION= 5.6.8
> >> PORTREVISION=        5
> >> CATEGORIES=  textproc java devel
> >> MASTER_SITES=
> https://artifacts.elastic.co/downloads/${PORTNAME}/ \
> >>              http://mirrors.rit.edu/zi/
> >> PKGNAMESUFFIX=       5
> >>
> >> MAINTAINER=  [hidden email]
> >> COMMENT=     Full-text search engine for Java
> >>
> >> LICENSE=     APACHE20
> >>
> >> BUILD_DEPENDS=       jna>0:devel/jna
> >> RUN_DEPENDS= bash>0:shells/bash \
> >>              jna>0:devel/jna
> >>
> >> USE_XORG=    xt
> >>
> >>
> >> CONFLICTS=   elasticsearch-[0-9]* elasticsearch2-[0-9]*
> elasticsearch6-[0-9]*
> >>
> >> USES=                cpe shebangfix
> >> NO_ARCH=     yes
> >> USE_JAVA=    yes
> >> NO_BUILD=    yes
> >> JAVA_VERSION=        1.8+
> >> JAVA_VENDOR= openjdk
> >> JAVA=                /usr/local/openjdk8/bin/java
> >> USE_RC_SUBR= ${PORTNAME}
> >> SHEBANG_FILES=       bin/elasticsearch-plugin \
> >>              bin/elasticsearch bin/elasticsearch.in.sh
> >>
> >> OPTIONS_DEFINE=      DOCS
> >>
> >> .include <bsd.port.options.mk>
> >>
> >> CONFIG_FILES=        elasticsearch.yml log4j2.properties jvm.options
> >> BINS=                elasticsearch.in.sh \
> >>              elasticsearch \
> >>              elasticsearch-plugin
> >>
> >> PORTDOCS=    LICENSE.txt \
> >>              NOTICE.txt \
> >>              README.textile
> >>
> >> SIGAR_ARCH=  ${ARCH:S|i386|x86|}
> >> SEARCHUSER?= elasticsearch
> >> SEARCHGROUP?=        ${SEARCHUSER}
> >> USERS=               ${SEARCHUSER}
> >> GROUPS=              ${SEARCHGROUP}
> >>
> >> SUB_LIST=    ETCDIR=${ETCDIR} JAVA=${JAVA}
> >> SUB_FILES=   pkg-message
> >>
> >> post-patch:
> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
> ${WRKSRC}/config/elasticsearch.yml
> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/
> elasticsearch.in.sh
> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
> ${WRKSRC}/bin/elasticsearch
> >>      ${RM} ${WRKSRC}/lib/jna-*.jar
> >>
> >> do-install:
> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch/config
> >>      (cd ${WRKSRC}/config && ${COPYTREE_SHARE} .
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/config)
> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
> >> .for f in ${BINS}
> >>      ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f}
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
> >> .endfor
> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib
> >>      (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} .
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar")
> >>
> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules
> >>      (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} .
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/)
> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins
> >>      (cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} .
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins)
> >>      ${INSTALL} -lrs
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin/elasticsearch-plugin
> ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
> >>      ${LN} -s ${JAVASHAREDIR}/classes/jna.jar
> ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna.jar
> >>      ${CP} -rf ${STAGEDIR}${PREFIX}/lib/elasticsearch
> ${STAGEDIR}${PREFIX}/libexec/elasticsearch
> >>      ${CP} -rf ${WRKSRC}/config/*
> ${STAGEDIR}${PREFIX}/etc/elasticsearch/
> >>
> >>
> >> do-install-DOCS-on:
> >>      ${MKDIR} ${STAGEDIR}${DOCSDIR}
> >> .for f in ${PORTDOCS}
> >>      ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
> >> .endfor
> >>
> >> post-install:
> >>      ${ECHO} "@owner elasticsearch" >> ${TMPPLIST}
> >>      ${ECHO} "@group elasticsearch" >> ${TMPPLIST}
> >>      ${ECHO} "bin/elasticsearch-plugin" >> ${TMPPLIST}
> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/etc -not -type d | ${SORT} | \
> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/libexec/elasticsearch -not -type d
> | ${SORT} | \
> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d |
> ${SORT} | \
> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> >>      ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST}
> >>      ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST}
> >>
> >> .include <bsd.port.mk>
>
> Hi,
>
> The makefile looks correct. You write that pkg does not install jna or
> openjdk, but does make install also fail? How do you build the packages?
> what is the output from "make -V BUILD_DEPENDS -V RUN_DEPENDS"?
>
> Palle
>
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openjdk8 dependency installation problem

Ali Okan YÜKSEL
This machine is the package build machine, I am not installing packages on
this machine, I am just building packages.

I set output folder with "setenv PACKAGES /usr/ports/Packages/" and I am
running "make package" or "make package-recursive" command for
elasticsearch5",

I see these logs when I tried to run "make package-recursive" command about
the java:

===>  Building for openjdk8-8.192.26_1
gmake[3]: Entering directory '/usr/ports/java/openjdk8/work/openjdk'
Building OpenJDK for target 'images' in configuration
'bsd-x86_64-normal-server-release'

## Starting langtools
gmake[4]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/langtools/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/langtools/make'
## Finished langtools (build time 00:00:00)

## Starting hotspot
gmake[4]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/make'
gmake[5]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[6]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[7]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
gmake[8]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/adlparse.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/archDesc.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/arena.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/dfa.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/dict2.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/filebuff.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/forms.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/formsopt.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/formssel.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/main.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/opto/opcodes.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/output_c.cpp
Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/output_h.cpp
gmake[9]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[8]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[7]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
gmake[6]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[5]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/make'
gmake[3]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/elasticsearch5




On Wed, Jan 16, 2019 at 9:42 PM Ali Okan YÜKSEL <[hidden email]> wrote:

> opnsense /usr/ports/textproc/elasticsearch5 # make -V BUILD_DEPENDS -V RUN_DEPENDS
>
> jna>0:devel/jna  /usr/local/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
> bash>0:shells/bash  jna>0:devel/jna /usr/local/openjdk8/bin/java:java/openjdk8 /usr/local/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
>
> Is it looks correct?
>
> I remember that when I built elasticsearch5 with "make package" command;
> not "make package-recursive". Do you think that maybe the problem is
> non-usage of -recursive directive, what do you think?
>
>
> On Mon, Dec 31, 2018 at 7:36 PM Palle Girgensohn <[hidden email]>
> wrote:
>
>>
>>
>> > 30 dec. 2018 kl. 23:23 skrev Ali Okan YÜKSEL <[hidden email]>:
>> >
>> > And also I want to add a screenshot about the installation screen which
>> > shows missing dependencies
>> >
>> > [image: image.png]
>> >
>> > On Mon, Dec 31, 2018 at 1:18 AM Ali Okan YÜKSEL <[hidden email]>
>> wrote:
>> >
>> >> Hello,
>> >>
>> >> I am trying to define openjdk8 as dependency for my custom
>> >> textproc/elasticsearch5 package. Actually I am trying to fix that port.
>> >>
>> >> When I tried to install this package by using my custom repository, pkg
>> >> manager is not installing openjdk8 or jna package. Actually it should
>> be
>> >> installed, because jna and openjdk packages are not installed on the
>> target
>> >> system. And I think Makefile looks correct.
>> >>
>> >> What you do you think about this dependency installation problem?
>> >> How can I debug or solve the problem?
>> >>
>> >> digest.txz meta.txz packagesite.txz files can be used for debug?
>> >>
>> >> Makefile content:
>> >>
>> >> # Created by: Tom Judge <[hidden email]>
>> >> # $FreeBSD$
>> >>
>> >> PORTNAME=    elasticsearch
>> >> PORTVERSION= 5.6.8
>> >> PORTREVISION=        5
>> >> CATEGORIES=  textproc java devel
>> >> MASTER_SITES=
>> https://artifacts.elastic.co/downloads/${PORTNAME}/ \
>> >>              http://mirrors.rit.edu/zi/
>> >> PKGNAMESUFFIX=       5
>> >>
>> >> MAINTAINER=  [hidden email]
>> >> COMMENT=     Full-text search engine for Java
>> >>
>> >> LICENSE=     APACHE20
>> >>
>> >> BUILD_DEPENDS=       jna>0:devel/jna
>> >> RUN_DEPENDS= bash>0:shells/bash \
>> >>              jna>0:devel/jna
>> >>
>> >> USE_XORG=    xt
>> >>
>> >>
>> >> CONFLICTS=   elasticsearch-[0-9]* elasticsearch2-[0-9]*
>> elasticsearch6-[0-9]*
>> >>
>> >> USES=                cpe shebangfix
>> >> NO_ARCH=     yes
>> >> USE_JAVA=    yes
>> >> NO_BUILD=    yes
>> >> JAVA_VERSION=        1.8+
>> >> JAVA_VENDOR= openjdk
>> >> JAVA=                /usr/local/openjdk8/bin/java
>> >> USE_RC_SUBR= ${PORTNAME}
>> >> SHEBANG_FILES=       bin/elasticsearch-plugin \
>> >>              bin/elasticsearch bin/elasticsearch.in.sh
>> >>
>> >> OPTIONS_DEFINE=      DOCS
>> >>
>> >> .include <bsd.port.options.mk>
>> >>
>> >> CONFIG_FILES=        elasticsearch.yml log4j2.properties jvm.options
>> >> BINS=                elasticsearch.in.sh \
>> >>              elasticsearch \
>> >>              elasticsearch-plugin
>> >>
>> >> PORTDOCS=    LICENSE.txt \
>> >>              NOTICE.txt \
>> >>              README.textile
>> >>
>> >> SIGAR_ARCH=  ${ARCH:S|i386|x86|}
>> >> SEARCHUSER?= elasticsearch
>> >> SEARCHGROUP?=        ${SEARCHUSER}
>> >> USERS=               ${SEARCHUSER}
>> >> GROUPS=              ${SEARCHGROUP}
>> >>
>> >> SUB_LIST=    ETCDIR=${ETCDIR} JAVA=${JAVA}
>> >> SUB_FILES=   pkg-message
>> >>
>> >> post-patch:
>> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
>> ${WRKSRC}/config/elasticsearch.yml
>> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/
>> elasticsearch.in.sh
>> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
>> ${WRKSRC}/bin/elasticsearch
>> >>      ${RM} ${WRKSRC}/lib/jna-*.jar
>> >>
>> >> do-install:
>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch/config
>> >>      (cd ${WRKSRC}/config && ${COPYTREE_SHARE} .
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/config)
>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
>> >> .for f in ${BINS}
>> >>      ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f}
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
>> >> .endfor
>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib
>> >>      (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} .
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar")
>> >>
>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules
>> >>      (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} .
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/)
>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins
>> >>      (cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} .
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins)
>> >>      ${INSTALL} -lrs
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin/elasticsearch-plugin
>> ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
>> >>      ${LN} -s ${JAVASHAREDIR}/classes/jna.jar
>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna.jar
>> >>      ${CP} -rf ${STAGEDIR}${PREFIX}/lib/elasticsearch
>> ${STAGEDIR}${PREFIX}/libexec/elasticsearch
>> >>      ${CP} -rf ${WRKSRC}/config/*
>> ${STAGEDIR}${PREFIX}/etc/elasticsearch/
>> >>
>> >>
>> >> do-install-DOCS-on:
>> >>      ${MKDIR} ${STAGEDIR}${DOCSDIR}
>> >> .for f in ${PORTDOCS}
>> >>      ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
>> >> .endfor
>> >>
>> >> post-install:
>> >>      ${ECHO} "@owner elasticsearch" >> ${TMPPLIST}
>> >>      ${ECHO} "@group elasticsearch" >> ${TMPPLIST}
>> >>      ${ECHO} "bin/elasticsearch-plugin" >> ${TMPPLIST}
>> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/etc -not -type d | ${SORT} | \
>> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/libexec/elasticsearch -not -type
>> d | ${SORT} | \
>> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d |
>> ${SORT} | \
>> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>> >>      ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST}
>> >>      ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST}
>> >>
>> >> .include <bsd.port.mk>
>>
>> Hi,
>>
>> The makefile looks correct. You write that pkg does not install jna or
>> openjdk, but does make install also fail? How do you build the packages?
>> what is the output from "make -V BUILD_DEPENDS -V RUN_DEPENDS"?
>>
>> Palle
>>
>>
>
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openjdk8 dependency installation problem

Ali Okan YÜKSEL
Port:
/usr/ports/textproc/elasticsearch5

Makefile:
https://paste.ee/p/laXbP

When I tried to run with:

make ALLOW_UNSUPPORTED_SYSTEM=1 MAKE_JOBS_UNSAFE=yes package-recursive

I got this error; and I want to fix on elasticsearch5 Makefile, if it is
posible ofcourse. :

===>  Building for openjdk8-8.192.26_1
gmake[3]: Entering directory '/usr/ports/java/openjdk8/work/openjdk'
Building OpenJDK for target 'images' in configuration
'bsd-x86_64-normal-server-release'

## Starting langtools
gmake[4]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/langtools/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/langtools/make'
## Finished langtools (build time 00:00:00)

## Starting hotspot
gmake[4]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/make'
gmake[5]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[5]: warning: -jN forced in submake: disabling jobserver mode.
gmake[6]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
gmake[7]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
gmake[8]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: *** No rule to make target
'/usr/ports/java/openjdk8/work/openjdk/hotspot/src/cpu/amd64/vm/x86_64.ad',
needed by '../generated/adfiles/bsd_x86_64.ad'.  Stop.
gmake[9]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[8]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/makefiles/top.make:91:
ad_stuff] Error 2
gmake[8]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[7]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/Makefile:294:
product] Error 2
gmake[7]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
gmake[6]: *** [Makefile:231: generic_build2] Error 2
gmake[6]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[5]: *** [Makefile:177: product] Error 2
gmake[5]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[4]: *** [HotspotWrapper.gmk:45:
/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
Error 2
gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/make'
gmake[3]: *** [/usr/ports/java/openjdk8/work/openjdk//make/Main.gmk:114:
hotspot-only] Error 2
gmake[3]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk'
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/elasticsearch5


On Wed, Jan 16, 2019 at 10:02 PM Ali Okan YÜKSEL <[hidden email]> wrote:

> This machine is the package build machine, I am not installing packages on
> this machine, I am just building packages.
>
> I set output folder with "setenv PACKAGES /usr/ports/Packages/" and I am
> running "make package" or "make package-recursive" command for
> elasticsearch5",
>
> I see these logs when I tried to run "make package-recursive" command
> about the java:
>
> ===>  Building for openjdk8-8.192.26_1
> gmake[3]: Entering directory '/usr/ports/java/openjdk8/work/openjdk'
> Building OpenJDK for target 'images' in configuration 'bsd-x86_64-normal-server-release'
>
> ## Starting langtools
> gmake[4]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/langtools/make'
> gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/langtools/make'
> ## Finished langtools (build time 00:00:00)
>
> ## Starting hotspot
> gmake[4]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/make'
> gmake[5]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
> gmake[6]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
> gmake[7]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
> gmake[8]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
> gmake[9]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/adlparse.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/archDesc.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/arena.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/dfa.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/dict2.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/filebuff.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/forms.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/formsopt.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/formssel.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/main.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/opto/opcodes.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/output_c.cpp
> Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/adlc/output_h.cpp
> gmake[9]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
> gmake[8]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
> gmake[7]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
> gmake[6]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
> gmake[5]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
> gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/make'
> gmake[3]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk'
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
>
> Stop.
> make[2]: stopped in /usr/ports/java/openjdk8
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/ports/java/openjdk8
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/textproc/elasticsearch5
>
>
>
>
> On Wed, Jan 16, 2019 at 9:42 PM Ali Okan YÜKSEL <[hidden email]>
> wrote:
>
>> opnsense /usr/ports/textproc/elasticsearch5 # make -V BUILD_DEPENDS -V RUN_DEPENDS
>>
>> jna>0:devel/jna  /usr/local/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
>> bash>0:shells/bash  jna>0:devel/jna /usr/local/openjdk8/bin/java:java/openjdk8 /usr/local/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
>>
>> Is it looks correct?
>>
>> I remember that when I built elasticsearch5 with "make package" command;
>> not "make package-recursive". Do you think that maybe the problem is
>> non-usage of -recursive directive, what do you think?
>>
>>
>> On Mon, Dec 31, 2018 at 7:36 PM Palle Girgensohn <[hidden email]>
>> wrote:
>>
>>>
>>>
>>> > 30 dec. 2018 kl. 23:23 skrev Ali Okan YÜKSEL <[hidden email]>:
>>> >
>>> > And also I want to add a screenshot about the installation screen which
>>> > shows missing dependencies
>>> >
>>> > [image: image.png]
>>> >
>>> > On Mon, Dec 31, 2018 at 1:18 AM Ali Okan YÜKSEL <[hidden email]>
>>> wrote:
>>> >
>>> >> Hello,
>>> >>
>>> >> I am trying to define openjdk8 as dependency for my custom
>>> >> textproc/elasticsearch5 package. Actually I am trying to fix that
>>> port.
>>> >>
>>> >> When I tried to install this package by using my custom repository,
>>> pkg
>>> >> manager is not installing openjdk8 or jna package. Actually it should
>>> be
>>> >> installed, because jna and openjdk packages are not installed on the
>>> target
>>> >> system. And I think Makefile looks correct.
>>> >>
>>> >> What you do you think about this dependency installation problem?
>>> >> How can I debug or solve the problem?
>>> >>
>>> >> digest.txz meta.txz packagesite.txz files can be used for debug?
>>> >>
>>> >> Makefile content:
>>> >>
>>> >> # Created by: Tom Judge <[hidden email]>
>>> >> # $FreeBSD$
>>> >>
>>> >> PORTNAME=    elasticsearch
>>> >> PORTVERSION= 5.6.8
>>> >> PORTREVISION=        5
>>> >> CATEGORIES=  textproc java devel
>>> >> MASTER_SITES=
>>> https://artifacts.elastic.co/downloads/${PORTNAME}/ \
>>> >>              http://mirrors.rit.edu/zi/
>>> >> PKGNAMESUFFIX=       5
>>> >>
>>> >> MAINTAINER=  [hidden email]
>>> >> COMMENT=     Full-text search engine for Java
>>> >>
>>> >> LICENSE=     APACHE20
>>> >>
>>> >> BUILD_DEPENDS=       jna>0:devel/jna
>>> >> RUN_DEPENDS= bash>0:shells/bash \
>>> >>              jna>0:devel/jna
>>> >>
>>> >> USE_XORG=    xt
>>> >>
>>> >>
>>> >> CONFLICTS=   elasticsearch-[0-9]* elasticsearch2-[0-9]*
>>> elasticsearch6-[0-9]*
>>> >>
>>> >> USES=                cpe shebangfix
>>> >> NO_ARCH=     yes
>>> >> USE_JAVA=    yes
>>> >> NO_BUILD=    yes
>>> >> JAVA_VERSION=        1.8+
>>> >> JAVA_VENDOR= openjdk
>>> >> JAVA=                /usr/local/openjdk8/bin/java
>>> >> USE_RC_SUBR= ${PORTNAME}
>>> >> SHEBANG_FILES=       bin/elasticsearch-plugin \
>>> >>              bin/elasticsearch bin/elasticsearch.in.sh
>>> >>
>>> >> OPTIONS_DEFINE=      DOCS
>>> >>
>>> >> .include <bsd.port.options.mk>
>>> >>
>>> >> CONFIG_FILES=        elasticsearch.yml log4j2.properties jvm.options
>>> >> BINS=                elasticsearch.in.sh \
>>> >>              elasticsearch \
>>> >>              elasticsearch-plugin
>>> >>
>>> >> PORTDOCS=    LICENSE.txt \
>>> >>              NOTICE.txt \
>>> >>              README.textile
>>> >>
>>> >> SIGAR_ARCH=  ${ARCH:S|i386|x86|}
>>> >> SEARCHUSER?= elasticsearch
>>> >> SEARCHGROUP?=        ${SEARCHUSER}
>>> >> USERS=               ${SEARCHUSER}
>>> >> GROUPS=              ${SEARCHGROUP}
>>> >>
>>> >> SUB_LIST=    ETCDIR=${ETCDIR} JAVA=${JAVA}
>>> >> SUB_FILES=   pkg-message
>>> >>
>>> >> post-patch:
>>> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
>>> ${WRKSRC}/config/elasticsearch.yml
>>> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/
>>> elasticsearch.in.sh
>>> >>      ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"
>>> ${WRKSRC}/bin/elasticsearch
>>> >>      ${RM} ${WRKSRC}/lib/jna-*.jar
>>> >>
>>> >> do-install:
>>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
>>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch/config
>>> >>      (cd ${WRKSRC}/config && ${COPYTREE_SHARE} .
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/config)
>>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
>>> >> .for f in ${BINS}
>>> >>      ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f}
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin
>>> >> .endfor
>>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib
>>> >>      (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} .
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar")
>>> >>
>>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules
>>> >>      (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} .
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/)
>>> >>      ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins
>>> >>      (cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} .
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins)
>>> >>      ${INSTALL} -lrs
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin/elasticsearch-plugin
>>> ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
>>> >>      ${LN} -s ${JAVASHAREDIR}/classes/jna.jar
>>> ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna.jar
>>> >>      ${CP} -rf ${STAGEDIR}${PREFIX}/lib/elasticsearch
>>> ${STAGEDIR}${PREFIX}/libexec/elasticsearch
>>> >>      ${CP} -rf ${WRKSRC}/config/*
>>> ${STAGEDIR}${PREFIX}/etc/elasticsearch/
>>> >>
>>> >>
>>> >> do-install-DOCS-on:
>>> >>      ${MKDIR} ${STAGEDIR}${DOCSDIR}
>>> >> .for f in ${PORTDOCS}
>>> >>      ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
>>> >> .endfor
>>> >>
>>> >> post-install:
>>> >>      ${ECHO} "@owner elasticsearch" >> ${TMPPLIST}
>>> >>      ${ECHO} "@group elasticsearch" >> ${TMPPLIST}
>>> >>      ${ECHO} "bin/elasticsearch-plugin" >> ${TMPPLIST}
>>> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/etc -not -type d | ${SORT} | \
>>> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>>> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/libexec/elasticsearch -not -type
>>> d | ${SORT} | \
>>> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>>> >>      ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d |
>>> ${SORT} | \
>>> >>              ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
>>> >>      ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST}
>>> >>      ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST}
>>> >>
>>> >> .include <bsd.port.mk>
>>>
>>> Hi,
>>>
>>> The makefile looks correct. You write that pkg does not install jna or
>>> openjdk, but does make install also fail? How do you build the packages?
>>> what is the output from "make -V BUILD_DEPENDS -V RUN_DEPENDS"?
>>>
>>> Palle
>>>
>>>
>>
>>
>
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"