All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target
@ 2020-04-03 22:27 bugzilla at busybox.net
  2020-04-04  4:28 ` [Buildroot] [Bug 12751] " bugzilla at busybox.net
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-03 22:27 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

            Bug ID: 12751
           Summary: OpenJdk package installation issues on target
           Product: buildroot
           Version: 2020.02
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: ameya.joshi at rockwellcollins.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

Hi,

The current openjdk package INSTALL_TARGET_CMD installs only the lib and bin
folder to /usr/lib

the JRE/lib folder contains a modules file which in conflict with modules
directory which has kernel modules

i am doing a x86_64 build , the lib is symlinked to /usr/lib on target and all
kernel modules get installed /lib/modules

Sometimes the overwrite works during copy and kernel modules get replaced by
java modules file

cp -dpfr $(@D)/build/linux-*-release/images/jre/lib/* $(TARGET_DIR)/usr/lib/

Here is the error i have gotten:

>>> openjdk 13.0.2+8 Installing to target
cp -dpfr
/bulk/ajoshi2/nuc-build/build/openjdk-13.0.2+8/build/linux-*-release/images/jre/bin/*
/bulk/ajoshi2/nuc-build/target/usr/bin/
cp -dpfr
/bulk/ajoshi2/nuc-build/build/openjdk-13.0.2+8/build/linux-*-release/images/jre/lib/*
/bulk/ajoshi2/nuc-build/target/usr/lib/
cp: cannot overwrite directory ?/bulk/ajoshi2/nuc-build/target/usr/lib/modules?
with non-directory

Can we update the INSTALL_TARGET_CMDS for openjdk to install the entire JDK
inside /usr/lib/jvm folder and symlink the binaries?

Regards,
Ameya Joshi
Sr Software Engineer
Collins Aerospace

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
@ 2020-04-04  4:28 ` bugzilla at busybox.net
  2020-04-04 20:52 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-04  4:28 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

--- Comment #1 from Ameya <ameya.joshi@rockwellcollins.com> ---
I had "symlink" option selected inside "system configuration" page or maybe the 

pc_x86_64_bios_defconfig has that selected by default.

Unchecking it should solve the buildroot error 

But in our case , i do need the entire JDK on the system ,  and not just the
libs and bin?

can we have a option created in menuconfig to select that?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
  2020-04-04  4:28 ` [Buildroot] [Bug 12751] " bugzilla at busybox.net
@ 2020-04-04 20:52 ` bugzilla at busybox.net
  2020-04-07 16:52 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-04 20:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at buildroot.uclibc |aduskett at gmail.com
                   |.org                        |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
  2020-04-04  4:28 ` [Buildroot] [Bug 12751] " bugzilla at busybox.net
  2020-04-04 20:52 ` bugzilla at busybox.net
@ 2020-04-07 16:52 ` bugzilla at busybox.net
  2020-04-17 23:34 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-07 16:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

--- Comment #2 from Adam Duskett <aduskett@gmail.com> ---
Hello Ameya!

Sorry for the delay, I will take a look at this today!
If you need the entire JDK I will create the changes necessary to do so.

Thanks again!

Adam

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2020-04-07 16:52 ` bugzilla at busybox.net
@ 2020-04-17 23:34 ` bugzilla at busybox.net
  2020-04-18  0:34 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-17 23:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

--- Comment #3 from Adam Duskett <aduskett@gmail.com> ---
(In reply to Ameya from comment #1)

Hello Ameya;

I have created a patch series that should fix your issues.
In addition, I also submitted a patch that will allow building and installing
the full JDK.

If you would be so kind as to test the patches and possibly provide a
"Tested-By" comment if they work for you, I would very much appreciate it.

Fixes for 2020.02.x:
https://patchwork.ozlabs.org/project/buildroot/list/?series=171015

Fixes and JDK support for master:
https://patchwork.ozlabs.org/project/buildroot/list/?series=171014

Thanks!

Adam

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2020-04-17 23:34 ` bugzilla at busybox.net
@ 2020-04-18  0:34 ` bugzilla at busybox.net
  2020-04-18  0:35 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-18  0:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

--- Comment #4 from Ameya <ameya.joshi@rockwellcollins.com> ---
Hi Adam,

I get error while applying the patch 

https://patchwork.ozlabs.org/project/buildroot/patch/20200417232922.3762195-4-aduskett at gmail.com/


Also i looked at the patch it replaces the existing build and install commands 
so if a user doesnt want a full JDK it wont work right?

Regards,
Ameya

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2020-04-18  0:34 ` bugzilla at busybox.net
@ 2020-04-18  0:35 ` bugzilla at busybox.net
  2020-04-18  2:31 ` bugzilla at busybox.net
  2020-04-22 16:34 ` bugzilla at busybox.net
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-18  0:35 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

--- Comment #5 from Ameya <ameya.joshi@rockwellcollins.com> ---
Hi Adam,

I get error while applying the patch 

https://patchwork.ozlabs.org/project/buildroot/patch/20200417232922.3762195-4-aduskett at gmail.com/


Also i looked at the patch it replaces the existing build and install commands 
so if a user doesnt want a full JDK it wont work right?

Regards,
Ameya

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2020-04-18  0:35 ` bugzilla at busybox.net
@ 2020-04-18  2:31 ` bugzilla at busybox.net
  2020-04-22 16:34 ` bugzilla at busybox.net
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-18  2:31 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

--- Comment #6 from Adam Duskett <aduskett@gmail.com> ---
(In reply to Ameya from comment #5)

Hi Ameya;

This patchset does two things:

1) It fixes the originally reported bug.
2) It adds a menu config item that allows you to select if you want to build
the full jdk instead of just the JRE.

If you do not select the option to build the full JDK then the JRE will be
built instead.


If you want the ability to install the full JDK on 2020.02, you will have to
apply all 4 patches to master and then backport the changes yourself to
package/openjdk on 2020.02.

Thanks!

Adam

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [Bug 12751] OpenJdk package installation issues on target
  2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2020-04-18  2:31 ` bugzilla at busybox.net
@ 2020-04-22 16:34 ` bugzilla at busybox.net
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2020-04-22 16:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12751

Adam Duskett <aduskett@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Adam Duskett <aduskett@gmail.com> ---
Patch merged to master
Commit: 3edb915709dec21158542b15e62f1560b8dc2fa2

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-04-22 16:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 22:27 [Buildroot] [Bug 12751] New: OpenJdk package installation issues on target bugzilla at busybox.net
2020-04-04  4:28 ` [Buildroot] [Bug 12751] " bugzilla at busybox.net
2020-04-04 20:52 ` bugzilla at busybox.net
2020-04-07 16:52 ` bugzilla at busybox.net
2020-04-17 23:34 ` bugzilla at busybox.net
2020-04-18  0:34 ` bugzilla at busybox.net
2020-04-18  0:35 ` bugzilla at busybox.net
2020-04-18  2:31 ` bugzilla at busybox.net
2020-04-22 16:34 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.