pkgsrc-Users archive

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

Re: Error compiling GNU Guile 2.2.5 under Linux



On Wed, 28 Aug 2019, at 20:32:19 +0200, Noryungi wrote:
> I am trying to set up a compile server to try pbulk, under Slackware
> Linux, and I bumped into the following error.
>
> Compile server:
> 
> Slackware Linux 14.2
> Linux 4.4.190 x86_64
> Installed with all the latest patches + kernel.
> 
> Using pkgsrc 2019Q2, in an unprivileged configuration.
> 
> My pkgsrc directory is /opt/pkgsrc
> The (unprivileged) destination directory is /opt/pkg
> 
> I can compile some utilities already (ncdu, mtr, etc).
> 
> However, trying to compile GNU Guile 2.2.5 within a chroot environment
> gives me:
> 
> $ bmake && bmake install
> (... Lots of text removed here ...)
> => Automatic manual page handling
> => Generating post-install file lists
> pkg_create: can't stat
> `/opt/pkgsrc/pkgsrc/lang/guile22/work/.destdir/opt/pkg/guile/2.2/lib/c
> harset.alias'
> => Checking file-check results for guile22-2.2.5
> ERROR: ************************************************************
> ERROR: The following files are in the PLIST but not in
> /opt/pkgsrc/pkgsrc/lang/guile22/work/.destdir/opt/pkg:
> ERROR:         /opt/pkgsrc/pkgsrc/lang/guile22/work/.destdir/opt/pkg/g
> uile/2.2/lib/charset.alias
> *** Error code 1
> 
> Stop.
> bmake[1]: stopped in /opt/pkgsrc/pkgsrc/lang/guile22
> *** Error code 1
> 
> Stop.
> bmake: stopped in /opt/pkgsrc/pkgsrc/lang/guile22
> 
> Trying to compile GNU Guile 2.2.5 *outside* of the chroot environment:
> 
> $ bmake clean && bmake distclean
> $ bmake && bmake install
> ( ... etc ... )
> => Automatic manual page handling
> => Generating post-install file lists
> pkg_create: can't stat
> `/opt/pkgsrc/pkgsrc/lang/guile22/work/.destdir/opt/pkg/guile/2.2/lib/c
> harset.alias'
> => Checking file-check results for guile22-2.2.5
> ERROR: ************************************************************
> ERROR: The following files are in the PLIST but not in
> /opt/pkgsrc/pkgsrc/lang/guile22/work/.destdir/opt/pkg:
> ERROR:         /opt/pkgsrc/pkgsrc/lang/guile22/work/.destdir/opt/pkg/g
> uile/2.2/lib/charset.alias
> *** Error code 1
> 
> Stop.
> bmake[1]: stopped in /opt/pkgsrc/pkgsrc/lang/guile22
> *** Error code 1
> 
> Stop.
> bmake: stopped in /opt/pkgsrc/pkgsrc/lang/guile22
> 
> The exact same error message makes me think there is an issue with
> this package, and not with my setup.
> 
> The "charset.alias" file is, indeed, in the PLIST, but not in the
> "work" directory:
> 
> $ ls -alhF work/.destdir/opt/pkg/guile/2.2/lib/*charset*
> ls: cannot access 'work/.destdir/opt/pkg/guile/2.2/lib/*charset*': No
> such file or directory
> 
> $ ls -alhF work/.destdir/opt/pkg/guile/2.2/lib/*.alias
> ls: cannot access 'work/.destdir/opt/pkg/guile/2.2/lib/*.alias': No
> such file or directory
> 
> Any idea on how to correct this issue? Many thanks in advance.

Hello,

You're quite right, the issue is with the package, not your setup. I
can reproduce this on Debian Stretch and Fedora 30. The short answer is
that you can simply comment out or remove that particular entry in the
PLIST, and you'll be fine.

What's happening is the configuration determines whether to install
that one specific file depending on the OS and OS release. For modern
Linux with glibc (and MacOS X from the past fifteen years), it doesn't
deem it necessary, whereas for anything else, it installs it. I can add
a specific check and PLIST variable to the package to handle this
difference.

Regards,

Dave




Home | Main Index | Thread Index | Old Index