<div dir="ltr">Hello Evan!<div><br></div><div><br></div><div>Thanks for the idea, and the thorough investigation! </div><div>I think it is a reasonable need to only install openjdk package if the java dependency is not met and that this dependency should be met by Oracle jdk as well.</div><div><br></div><div>We will try out your proposal and will give you information of the results in the upcoming days.</div><div><br></div><div>Regards,</div><div>Gabor</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 22, 2018 at 6:23 PM, Robin Blanchard <span dir="ltr"><<a href="mailto:rblanchard@nephilaadvisors.com" target="_blank">rblanchard@nephilaadvisors.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ah. Now I see/understand.<br>
<br>
I can confirm this behavior.<br>
<br>
$ ldconfig -p |grep libjvm<br>
        libjvm.so (libc6,x86-64) => /usr/java/jre1.8.0_162/lib/amd<wbr>64/server/libjvm.so<br>
<br>
$ yum --nogpgcheck install syslog-ng-java<br>
Loaded plugins: fastestmirror, rhnplugin<br>
This system is receiving updates from RHN Classic or Red Hat Satellite.<br>
Loading mirror speeds from cached hostfile<br>
Resolving Dependencies<br>
<span>--> Running transaction check<br>
---> Package syslog-ng-java.x86_64 0:3.14.1-4.el7.centos will be installed<br>
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64b<wbr>it) for package: syslog-ng-java-3.14.1-4.el7.ce<wbr>ntos.x86_64<br>
--> Processing Dependency: libjvm.so()(64bit) for package: syslog-ng-java-3.14.1-4.el7.ce<wbr>ntos.x86_64<br>
--> Running transaction check<br>
---> Package java-1.8.0-openjdk-headless.x8<wbr>6_64 1:1.8.0.161-0.b14.el7_4 will be installed<br>
</span><span>--> Finished Dependency Resolution<br>
<br>
Dependencies Resolved<br>
<br>
</span>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==========<br>
<span> Package                                      Arch                    Version                                    Repository                                Size<br>
</span>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==========<br>
Installing:<br>
 syslog-ng-java                               x86_64                  3.14.1-4.el7.centos                        czanik-syslog-ng-3.14                    4.9 M<br>
Installing for dependencies:<br>
 java-1.8.0-openjdk-headless                  x86_64                  1:1.8.0.161-0.b14.el7_4                    centos-7-updates-x86_64                   32 M<br>
<br>
Transaction Summary<br>
==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==========<br>
Install  1 Package (+1 Dependent package)<br>
<br>
Total download size: 37 M<br>
Installed size: 109 M<br>
Is this ok [y/d/N]: n<br>
Exiting on user command<br>
<span><br>
-----Original Message-----<br>
From: syslog-ng [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@list<wbr>s.balabit.hu</a>] On Behalf Of Evan Rempel<br>
</span><div><div class="m_-1746736943536953030h5">Sent: Thursday, March 22, 2018 12:20 PM<br>
To: <a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a><br>
Subject: Re: [syslog-ng] syslog-ng-java RPM requirements will not use Oracle Java<br>
<br>
I realize that the libjvm.so is included in the Oracle RPM package. It is when I have this installed,<br>
the installation of syslog-ng-java will install another java onto my system.<br>
<br>
% rpm -q jdk1.8<br>
jdk1.8-1.8.0_162-fcs.x86_64<br>
<br>
% find /usr/java/ -name "*jvm.so"<br>
/usr/java/jdk1.8.0_162/jre/lib<wbr>/amd64/server/libjvm.so<br>
<br>
% sudo yum install syslog-ng-java<br>
...<br>
--> Running transaction check<br>
---> Package syslog-ng-java.x86_64 0:3.14.1-4.el7.centos will be installed<br>
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64b<wbr>it) for package: syslog-ng-java-3.14.1-4.el7.ce<wbr>ntos.x86_64<br>
--> Processing Dependency: libjvm.so()(64bit) for package: syslog-ng-java-3.14.1-4.el7.ce<wbr>ntos.x86_64<br>
--> Running transaction check<br>
---> Package java-1.8.0-openjdk-headless.x8<wbr>6_64 1:1.8.0.161-0.b14.el7_4 will be installed<br>
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-<wbr>1.8.0.161-0.b14.el7_4.x86_64<br>
--> Processing Dependency: copy-jdk-configs >= 2.2 for package: 1:java-1.8.0-openjdk-headless-<wbr>1.8.0.161-0.b14.el7_4.x86_64<br>
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-<wbr>1.8.0.161-0.b14.el7_4.x86_64<br>
--> Running transaction check<br>
---> Package copy-jdk-configs.noarch 0:2.2-5.el7_4 will be installed<br>
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed<br>
---> Package tzdata-java.noarch 0:2018c-1.el7 will be installed<br>
--> Finished Dependency Resolution<br>
<br>
Dependencies Resolved<br>
<br>
==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>========================<br>
  Package                     <wbr>              Arch Version Repository                    <wbr>    Size<br>
==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>========================<br>
Installing:<br>
  syslog-ng-java              <wbr>              x86_64 3.14.1-4.el7.centos uvic-syslog-ng-314            <wbr>   4.9 M<br>
Installing for dependencies:<br>
  copy-jdk-configs            <wbr>              noarch 2.2-5.el7_4 rhel-7-server-rpms            <wbr>    19 k<br>
  java-1.8.0-openjdk-headless <wbr>              x86_64 1:1.8.0.161-0.b14.el7_4 rhel-7-server-rpms            <wbr>    32 M<br>
  lksctp-tools                <wbr>              x86_64 1.0.17-2.el7 rhel-7-server-rpms            <wbr>    88 k<br>
  tzdata-java                 <wbr>              noarch 2018c-1.el7 rhel-7-server-rpms            <wbr>   183 k<br>
<br>
Transaction Summary<br>
==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>========================<br>
Install  1 Package (+4 Dependent packages)<br>
<br>
If I have Oracle java installed, I would expect to install syslog-ng-java without any additional dependencies (other than syslog-ng)<br>
<br>
Evan.<br>
<br>
On 03/22/2018 10:07 AM, Robin Blanchard wrote:<br>
> $ find /usr/java/jre1.8.0_162/* -name "*jvm.so"<br>
> /usr/java/jre1.8.0_162/lib/amd<wbr>64/server/libjvm.so<br>
><br>
><br>
> -----Original Message-----<br>
> From: syslog-ng [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@list<wbr>s.balabit.hu</a>] On Behalf Of Evan Rempel<br>
> Sent: Thursday, March 22, 2018 12:02 PM<br>
> To: Syslog-ng users' and developers' mailing list <<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>><br>
> Subject: [syslog-ng] syslog-ng-java RPM requirements will not use Oracle Java<br>
><br>
> Using the copr builds of syslog-ng 3.14<br>
><br>
> The package syslog-ng-java has RPM requirements that include<br>
><br>
> libjvm.so()(64bit)<br>
> libjvm.so(SUNWprivate_1.1)(64b<wbr>it)<br>
><br>
> The Java packages from Oracle do not provide these items.<br>
><br>
> % rpm -q --provides -p jdk-8u162-linux-x64.rpm<br>
> jdk<br>
> jaxp_parser_impl<br>
> xml-commons-apis<br>
> java<br>
> java-1.8.0<br>
> java-fonts<br>
> jre<br>
> jre-1.8.0<br>
> jdk1.8 = 2000:1.8.0_162-fcs<br>
><br>
> % rpm -q --provides -p jre-8u162-linux-x64.rpm<br>
> jaxp_parser_impl<br>
> xml-commons-apis<br>
> java<br>
> java-1.8.0<br>
> java-fonts<br>
> jre<br>
> jre-1.8.0<br>
> jre1.8 = 1.8.0_161-fcs<br>
><br>
> [% rpm -q --provides jdk-9.0.4_linux-x64_bin.rpm<br>
> jdk<br>
> jaxp_parser_impl<br>
> xml-commons-apis<br>
> java<br>
> java-9.0.4<br>
> java-fonts<br>
> jre<br>
> jre-9.0.4<br>
> jdk-9.0.4 = 2000:9.0.4-ga<br>
> jdk-9.0.4(x86-64) = 2000:9.0.4-ga<br>
><br>
> Under Redhat 7 in order to get these I need<br>
><br>
> libjvm.so()(64bit) --> java-1.8.0-ibm<br>
> libjvm.so(SUNWprivate_1.1)(64b<wbr>it) --> java-1.8.0-openjdk-headless<br>
><br>
> The Oracle provided java (jdk or jre) do not provide these things. Both of these java packages provides the lib jvm.so<br>
><br>
> % rpm -ql java-1.8.0-ibm | grep libjvm<br>
> /usr/lib/jvm/java-1.8.0-ibm-1.<wbr>8.0.5.10-1jpp.1.el7.x86_64/jre<wbr>/bin/classic/libjvm.so<br>
> /usr/lib/jvm/java-1.8.0-ibm-1.<wbr>8.0.5.10-1jpp.1.el7.x86_64/jre<wbr>/bin/j9vm/libjvm.so<br>
> /usr/lib/jvm/java-1.8.0-ibm-1.<wbr>8.0.5.10-1jpp.1.el7.x86_64/jre<wbr>/lib/amd64/classic/libjvm.so<br>
> /usr/lib/jvm/java-1.8.0-ibm-1.<wbr>8.0.5.10-1jpp.1.el7.x86_64/jre<wbr>/lib/amd64/compressedrefs/libj<wbr>vm.so<br>
> /usr/lib/jvm/java-1.8.0-ibm-1.<wbr>8.0.5.10-1jpp.1.el7.x86_64/jre<wbr>/lib/amd64/default/libjvm.so<br>
> /usr/lib/jvm/java-1.8.0-ibm-1.<wbr>8.0.5.10-1jpp.1.el7.x86_64/jre<wbr>/lib/amd64/j9vm/libjvm.so<br>
><br>
> % rpm -ql java-1.8.0-openjdk-headless | grep libjvm<br>
> /usr/lib/jvm/java-1.8.0-openjd<wbr>k-1.8.0.161-0.b14.el7_4.x86_<wbr>64/jre/lib/amd64/server/libjvm<wbr>.so<br>
><br>
> Both of these package provide the following potentials for a dependency<br>
><br>
> jre = 1:1.8.0<br>
> java = 1:1.8.0<br>
><br>
> or if you want to tie to a specific version of java<br>
><br>
> jre-1.8.0<br>
> java-1.8.0<br>
><br>
><br>
> If these requirements were used in the RPM build then I could use Oracle Java to satisfy the RPM requirements.<br>
><br>
> Am I missing something obvious here?<br>
><br>
> Comments?<br>
><br>
><br>
______________________________<wbr>______________________________<wbr>__________________<br>
</div></div>Member info: <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7Crblanchard%40nephilaadvisors.com%7C496909108c9c404c5ec308d59018e151%7C1e7efa48808b4cb19709d1b4e6fbdf78%7C0%7C0%7C636573358889781833&sdata=DhvyUoJAPMRDDujSJ9M7qeaog64amw4Y9SttQtIXauk%3D&reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protect<wbr>ion.outlook.com/?url=https%3A%<wbr>2F%2Flists.balabit.hu%<wbr>2Fmailman%2Flistinfo%2Fsyslog-<wbr>ng&data=02%7C01%7Crblanchard%4<wbr>0nephilaadvisors.com%7C4969091<wbr>08c9c404c5ec308d59018e151%7C1e<wbr>7efa48808b4cb19709d1b4e6fbdf78<wbr>%7C0%7C0%7C636573358889781833&<wbr>sdata=DhvyUoJAPMRDDujSJ9M7qeao<wbr>g64amw4Y9SttQtIXauk%3D&<wbr>reserved=0</a><br>
Documentation: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=02%7C01%7Crblanchard%40nephilaadvisors.com%7C496909108c9c404c5ec308d59018e151%7C1e7efa48808b4cb19709d1b4e6fbdf78%7C0%7C0%7C636573358889781833&sdata=ajlzo2ITz7nAhCnZZNAr6F64LEk7K4oyA5ov1wGubYY%3D&reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protect<wbr>ion.outlook.com/?url=http%3A%<wbr>2F%2Fwww.balabit.com%2Fsupport<wbr>%2Fdocumentation%2F%3Fproduct%<wbr>3Dsyslog-ng&data=02%7C01%<wbr>7Crblanchard%40nephilaadvisors<wbr>.com%7C496909108c9c404c5ec308d<wbr>59018e151%7C1e7efa48808b4cb197<wbr>09d1b4e6fbdf78%7C0%7C0%7C63657<wbr>3358889781833&sdata=ajlzo2ITz7<wbr>nAhCnZZNAr6F64LEk7K4oyA5ov1wGu<wbr>bYY%3D&reserved=0</a><br>
FAQ: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=02%7C01%7Crblanchard%40nephilaadvisors.com%7C496909108c9c404c5ec308d59018e151%7C1e7efa48808b4cb19709d1b4e6fbdf78%7C0%7C0%7C636573358889781833&sdata=diDHbPPlihzKWptv9vsmQsCRBf2QVq52%2B0PeX6oHRz4%3D&reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protect<wbr>ion.outlook.com/?url=http%3A%<wbr>2F%2Fwww.balabit.com%2Fwiki%<wbr>2Fsyslog-ng-faq&data=02%7C01%<wbr>7Crblanchard%40nephilaadvisors<wbr>.com%7C496909108c9c404c5ec308d<wbr>59018e151%7C1e7efa48808b4cb197<wbr>09d1b4e6fbdf78%7C0%7C0%7C63657<wbr>3358889781833&sdata=diDHbPPlih<wbr>zKWptv9vsmQsCRBf2QVq52%<wbr>2B0PeX6oHRz4%3D&reserved=0</a><br>
<div class="m_-1746736943536953030HOEnZb"><div class="m_-1746736943536953030h5"><br>
______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailm<wbr>an/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support<wbr>/documentation/?product=<wbr>syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/sy<wbr>slog-ng-faq</a><br>
<br>
</div></div></blockquote></div><br></div></div>