pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Problem building compat32_freetype2 (from pkg-wip) on NetBSD 9.99.81 (amd64)
On Monday 26 Apr 2021 10:51:50 Thomas Klausner wrote:
> On Mon, Apr 26, 2021 at 09:32:41AM +0100, Dave Tyson wrote:
> > Hi folks,
> >
> > Can anyone suggest what is going wrong here and (hopefully) a fix.
> >
> > I was trying to compile (wip) compat32_freetype2 which is a pre-req for
> > Wine-4.4 under current 9.99.81 - amd64. Main pkgsrc tree is 2021Q1 and the
> > wip pkgsrc is the latest snapshot. Compat32_freetype2 hasn't changed for
> > years and compiled fine under NetBSD-8 so I suspect it's a toolchain
> > issue.
> >
> > asus# make
> > => Bootstrap dependency digest>=20010302: found digest-20190127
> > => Checksum SHA1 OK for freetype-2.10.0.tar.bz2
> > => Checksum RMD160 OK for freetype-2.10.0.tar.bz2
> > => Checksum SHA512 OK for freetype-2.10.0.tar.bz2
> > ===> Installing dependencies for compat32_freetype2-2.10.0
> > ==========================================================================
> >
> > The supported build options for compat32_freetype2 are:
> > png
> >
> > You can select which build options to use by setting PKG_DEFAULT_OPTIONS
> >
> > or the following variable. Its current value is shown:
> > PKG_OPTIONS.freetype2 (not defined)
> >
> > ==========================================================================
> > => Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
> > => Tool dependency gmake>=3.81: found gmake-4.2.1nb1
> > => Tool dependency pkgconf-[0-9]*: found pkgconf-1.7.3
> > => Build dependency cwrappers>=20150314: found cwrappers-20180325
> > ===> Checking for vulnerabilities in compat32_freetype2-2.10.0
> > ===> Overriding tools for compat32_freetype2-2.10.0
> > ===> Extracting for compat32_freetype2-2.10.0
> > ===> Patching for compat32_freetype2-2.10.0
> > => Applying pkgsrc patches for compat32_freetype2-2.10.0
> > ===> Creating toolchain wrappers for compat32_freetype2-2.10.0
> > ===> Configuring for compat32_freetype2-2.10.0
> > => Fixing rpath in freetype-config script.
> > WARNING: [subst.mk:ftc] Nothing changed in
> > "builds/unix/freetype-config.in". ERROR: [subst.mk:ftc] The filename
> > pattern "builds/unix/freetype-config.in" has no effect.
> > *** Error code 1
>
> This error complains about this Makefile section:
>
> SUBST_CLASSES+= ftc
> SUBST_FILES.ftc+= builds/unix/freetype-config.in
> SUBST_SED.ftc+= -e "s!echo -L\([^ ]*\)!echo
> ${COMPILER_RPATH_FLAG}\\1 -L\\1!" SUBST_STAGE.ftc+= pre-configure
> SUBST_MESSAGE.ftc+= Fixing rpath in freetype-config script.
>
> This adds an rpath to the installed freetype-config file. However, the
> error message says that it does not match in that file any longer.
>
> So one solution is to fix the SUBST_SED line so it matches again.
>
> (I guess this is not really relevant for a binary package, so perhaps
> removing the whole SUBST* section is an option too.)
> Thomas
Thanks Thomas,
Commenting out the SUBST section allowed the package to build successfully - I
will have a look at a proper fix to the SUBST_SED line when I get a chance.
I also had to modify the PLIST for compat32_lcms2 to add a line:
/usr/pkg/bin/jpgicc
All other compat32 packages built OK and wine 4.4 installed OK.
Seems to be a problem with the 9.99.81 kernel as GENERIC has USER_LDT enabled
by default but wine complains:
$ wine /home/winapps/memorymap/DISK1/application\
MMap.V5_2006-1/mmv5.0.0_os.exe
i386_set_ldt: Operation not permitted
Did you reconfigure the kernel with "options USER_LDT"?
NetBSD 9.99.23 kernel with USER_LDT seems to work OK
Dave
Home |
Main Index |
Thread Index |
Old Index