pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /lang/openjdk install (for amd64)



On Tue, Mar 04, 2025 at 10:29:57AM -0500, MLH wrote:
> MLH wrote:
> > Tobias Nygren wrote:
> > > On Sat, 20 Jan 2024 18:28:50 -0500 (EST)
> > > > openjdk11 doesn't install again.
> > > 
> > > There seems to be some bug related to /libexec/ld.elf_so still.
> > > Building ld.elf_so with different compiler flags / optimization settings
> > > works around the problem. I'm not sure exactly why yet. I've uploaded
> > > my copy of ld.elf_so. Please test if using it makes any difference for
> > > you: https://ftp.netbsd.org/pub/NetBSD/misc/tnn/ld.elf_so
> > > 
> > > -Tobias
> > 
> > This is broken on amd64 again, but maybe differently. The build
> > completes but it can't install or create a package.
> 
> This still is broken using pkg_comp1 chroot:
> 
> ===> Installing for openjdk11-1.11.0.25.9
> => Generating pre-install file lists
> => Creating installation directories
> /usr/bin/install -d -o root -g wheel -m 755
> /pkg_comp/obj/pkgsrc/lang/openjdk11/default/.destdir/usr/pkgnew/java/openjdk11
> cd /pkg_comp/obj/pkgsrc/lang/openjdk11/default/jdk11u-jdk-11.0.25-9-1/build/bsd-x86_64-normal-server-release/images/jdk
> && pax -rwpp .
> /pkg_comp/obj/pkgsrc/lang/openjdk11/default/.destdir/usr/pkgnew/java/openjdk11/.
> cd: can't cd to /pkg_comp/obj/pkgsrc/lang/openjdk11/default/jdk11u-jdk-11.0.25-9-1/build/bsd-x86_64-normal-server-release/images/jdk

Does it actually complete? I found that gmake did basically nothing
for the build step... Copying from one of my old list emails:

Can you see if the suggestion in:
https://marc.info/?l=pkgsrc-users&m=169896209209983
fixes your issue?

That is, add 'MAKE_ENV+= MAKEFLAGS=' to the openjdk Makefile. This
fixed the above issue for me with openjdk17 on netbsd-10 amd64.

-- 
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
 discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.


Home | Main Index | Thread Index | Old Index