Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2019 22:30:50 +0300
From:      =?UTF-8?Q?Ali_Okan_Y=C3=9CKSEL?= <kaox.gen@gmail.com>
To:        Palle Girgensohn <girgen@freebsd.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: openjdk8 dependency installation problem
Message-ID:  <CANiJOX188xMAguDBq9d74LHMaGgZoJi0BOZG%2BhPT=RMxVqYAYg@mail.gmail.com>
In-Reply-To: <CANiJOX1-cUJGk-9eXzTFbZj4bcXw6jUrXFQLfp8hV8Mb1DKcgQ@mail.gmail.com>
References:  <CANiJOX2c_H_L7cq2H2unZhAP6fnfd=hKp2W=La4knaqwijG1dw@mail.gmail.com> <CANiJOX2Fm6=L5LR33tZLMwkep_0DSa5nr%2BCH1%2BbUQxteiQ-g9A@mail.gmail.com> <7432422F-E126-438D-AD4D-E2B1120FF8B6@FreeBSD.org> <CANiJOX0rTSOC5oChS3Pr85UTroKX5FFwcZCKXJHbTGncjamjNQ@mail.gmail.com> <CANiJOX1-cUJGk-9eXzTFbZj4bcXw6jUrXFQLfp8hV8Mb1DKcgQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Port:
/usr/ports/textproc/elasticsearch5

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

When I tried to run with:

make ALLOW_UNSUPPORTED_SYSTEM=3D1 MAKE_JOBS_UNSAFE=3Dyes package-recursive

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

=3D=3D=3D>  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=3D0
gmake[7]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-relea=
se/hotspot'
INFO: ENABLE_FULL_DEBUG_SYMBOLS=3D0
gmake[8]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-relea=
se/hotspot/bsd_amd64_compiler2/product'
gmake[9]: Entering directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-relea=
se/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-relea=
se/hotspot/bsd_amd64_compiler2/product'
gmake[8]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/makef=
iles/top.make:91:
ad_stuff] Error 2
gmake[8]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-relea=
se/hotspot/bsd_amd64_compiler2/product'
gmake[7]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/Makef=
ile:294:
product] Error 2
gmake[7]: Leaving directory
'/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-relea=
se/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-releas=
e/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=C3=9CKSEL <kaox.gen@gmail.com> =
wrote:

> This machine is the package build machine, I am not installing packages o=
n
> 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:
>
> =3D=3D=3D>  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/langt=
ools/make'
> gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/langto=
ols/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/hotsp=
ot/make'
> gmake[6]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/hotsp=
ot/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/hotspo=
t/make'
> gmake[5]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspo=
t/make'
> gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/make'
> gmake[3]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk'
> =3D=3D=3D> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur=
e 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=C3=9CKSEL <kaox.gen@gmail.com>
> wrote:
>
>> opnsense /usr/ports/textproc/elasticsearch5 # make -V BUILD_DEPENDS -V R=
UN_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/op=
enjdk8 /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 <girgen@freebsd.org>
>> wrote:
>>
>>>
>>>
>>> > 30 dec. 2018 kl. 23:23 skrev Ali Okan Y=C3=9CKSEL <kaox.gen@gmail.com=
>:
>>> >
>>> > And also I want to add a screenshot about the installation screen whi=
ch
>>> > shows missing dependencies
>>> >
>>> > [image: image.png]
>>> >
>>> > On Mon, Dec 31, 2018 at 1:18 AM Ali Okan Y=C3=9CKSEL <kaox.gen@gmail.=
com>
>>> 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 shoul=
d
>>> 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 <tj@FreeBSD.org>
>>> >> # $FreeBSD$
>>> >>
>>> >> PORTNAME=3D    elasticsearch
>>> >> PORTVERSION=3D 5.6.8
>>> >> PORTREVISION=3D        5
>>> >> CATEGORIES=3D  textproc java devel
>>> >> MASTER_SITES=3D
>>> https://artifacts.elastic.co/downloads/${PORTNAME}/ \
>>> >>              http://mirrors.rit.edu/zi/
>>> >> PKGNAMESUFFIX=3D       5
>>> >>
>>> >> MAINTAINER=3D  elastic@FreeBSD.org
>>> >> COMMENT=3D     Full-text search engine for Java
>>> >>
>>> >> LICENSE=3D     APACHE20
>>> >>
>>> >> BUILD_DEPENDS=3D       jna>0:devel/jna
>>> >> RUN_DEPENDS=3D bash>0:shells/bash \
>>> >>              jna>0:devel/jna
>>> >>
>>> >> USE_XORG=3D    xt
>>> >>
>>> >>
>>> >> CONFLICTS=3D   elasticsearch-[0-9]* elasticsearch2-[0-9]*
>>> elasticsearch6-[0-9]*
>>> >>
>>> >> USES=3D                cpe shebangfix
>>> >> NO_ARCH=3D     yes
>>> >> USE_JAVA=3D    yes
>>> >> NO_BUILD=3D    yes
>>> >> JAVA_VERSION=3D        1.8+
>>> >> JAVA_VENDOR=3D openjdk
>>> >> JAVA=3D                /usr/local/openjdk8/bin/java
>>> >> USE_RC_SUBR=3D ${PORTNAME}
>>> >> SHEBANG_FILES=3D       bin/elasticsearch-plugin \
>>> >>              bin/elasticsearch bin/elasticsearch.in.sh
>>> >>
>>> >> OPTIONS_DEFINE=3D      DOCS
>>> >>
>>> >> .include <bsd.port.options.mk>
>>> >>
>>> >> CONFIG_FILES=3D        elasticsearch.yml log4j2.properties jvm.optio=
ns
>>> >> BINS=3D                elasticsearch.in.sh \
>>> >>              elasticsearch \
>>> >>              elasticsearch-plugin
>>> >>
>>> >> PORTDOCS=3D    LICENSE.txt \
>>> >>              NOTICE.txt \
>>> >>              README.textile
>>> >>
>>> >> SIGAR_ARCH=3D  ${ARCH:S|i386|x86|}
>>> >> SEARCHUSER?=3D elasticsearch
>>> >> SEARCHGROUP?=3D        ${SEARCHUSER}
>>> >> USERS=3D               ${SEARCHUSER}
>>> >> GROUPS=3D              ${SEARCHGROUP}
>>> >>
>>> >> SUB_LIST=3D    ETCDIR=3D${ETCDIR} JAVA=3D${JAVA}
>>> >> SUB_FILES=3D   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 -typ=
e
>>> 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
>>>
>>>
>>
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANiJOX188xMAguDBq9d74LHMaGgZoJi0BOZG%2BhPT=RMxVqYAYg>