pkgsrc-Users archive

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

Re: PREFER_PKGSRC and luatex dlopen dependency



On 2020-06-23 12:35, Jason Bacon wrote:
On 2020-06-23 10:28, Mayuresh wrote:
I have set PREFER_PKGSRC at bootstrap owing to several linking issues
faced on Linux. But now I face the following error with luatex. (Wasn't
facing this when I wasn't setting PREFER_PKGSRC).

ERROR: This package has set PKG_FAIL_REASON:
ERROR: luatex-1.12.0 requires a working dlopen().

How should I go about this?

Mayuresh
Try adding

.include "../../mk/dlopen.buildlink3.mk"


FYI, luatex builds fine for me on CentOS 7 without adding a dlopen dependency.

Did you clean and rebuild all your packages after setting PREFER_PKGSRC?

My mk.conf is below.

Cheers,

    JB

Linux pbulkc7.hpc  bacon ~/Pkgsrc/pkgsrc/print/luatex 207: (pkgsrc): cat ~/Pkgsrc/pkg/etc/mk.conf # Example /home/bacon/Pkgsrc/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Wed Apr  8 09:31:22 CDT 2020

.ifdef BSD_PKG_MK    # begin pkgsrc settings

ABI=            64

UNPRIVILEGED=        yes
PKG_DBDIR=        /home/bacon/Pkgsrc/pkg/pkgdb
LOCALBASE=        /home/bacon/Pkgsrc/pkg
VARBASE=        /home/bacon/Pkgsrc/pkg/var
PKG_TOOLS_BIN=        /home/bacon/Pkgsrc/pkg/sbin
PKGINFODIR=        info
PKGMANDIR=        man


.endif            # end pkgsrc settings

.ifdef BSD_PKG_MK       # Begin auto-pkgsrc-setup customizations

X11_TYPE=        modular
PREFER_NATIVE=        no
PREFER_PKGSRC=        yes
PKGSRC_USE_FORTIFY=    no
PKGSRC_FORTRAN=        gfortran
PKG_DEVELOPER=        yes
FETCH_USING=        curl
SKIP_LICENSE_CHECK=    yes
PKG_OPTIONS.libfetch=    inet6 openssl
MAKE_JOBS=        6

.endif   # Pkgsrc boostrap customizations

.ifdef BSD_PKG_MK   # pkgsrc
.if \
    empty(PKGPATH:Marchivers/bsdtar) && \
    empty(PKGPATH:Marchivers/bzip2) && \
    empty(PKGPATH:Marchivers/pax) && \
    empty(PKGPATH:Marchivers/xz) && \
    empty(PKGPATH:Mconverters/help2man) && \
    empty(PKGPATH:Mconverters/libiconv) && \
    empty(PKGPATH:Mconverters/p5-Unicode-EastAsianWidth) && \
    empty(PKGPATH:Mdatabases/db4) && \
    empty(PKGPATH:Mdevel/autoconf) && \
    empty(PKGPATH:Mdevel/binutils) && \
    empty(PKGPATH:Mdevel/gettext-lib) && \
    empty(PKGPATH:Mdevel/gettext-tools) && \
    empty(PKGPATH:Mdevel/gmake) && \
    empty(PKGPATH:Mdevel/gmp) && \
    empty(PKGPATH:Mdevel/gtexinfo) && \
    empty(PKGPATH:Mdevel/libffi) && \
    empty(PKGPATH:Mdevel/libuuid) && \
    empty(PKGPATH:Mdevel/makedepend) && \
    empty(PKGPATH:Mdevel/pkgconf) && \
    empty(PKGPATH:Mdevel/libtool-base) && \
    empty(PKGPATH:Mdevel/m4) && \
    empty(PKGPATH:Mdevel/ncurses) && \
    empty(PKGPATH:Mdevel/nbpatch) && \
    empty(PKGPATH:Mdevel/p5-CPAN-Meta) && \
    empty(PKGPATH:Mdevel/p5-Module-Build) && \
    empty(PKGPATH:Mdevel/p5-Perl4-CoreLibs) && \
    empty(PKGPATH:Mdevel/p5-Scalar-List-Utils) && \
    empty(PKGPATH:Mdevel/p5-gettext) && \
    empty(PKGPATH:Mdevel/p5-inc-latest) && \
    empty(PKGPATH:Mdevel/readline) && \
    empty(PKGPATH:Mdevel/zlib) && \
    empty(PKGPATH:Mlang/gcc*) && \
    empty(PKGPATH:Mlang/perl5) && \
    empty(PKGPATH:Mlang/python*) && \
    empty(PKGPATH:Mmath/cloog) && \
    empty(PKGPATH:Mmath/isl) && \
    empty(PKGPATH:Mmath/mpcomplex) && \
    empty(PKGPATH:Mmath/mpfr) && \
    empty(PKGPATH:Mmisc/p5-Locale-libintl) && \
    empty(PKGPATH:Mnet/libfetch) && \
    empty(PKGPATH:Mpkgtools/cwrappers) && \
    empty(PKGPATH:Mpkgtools/digest) && \
    empty(PKGPATH:Mpkgtools/pkg_install) && \
    empty(PKGPATH:Mpkgtools/pkg_install-info) && \
    empty(PKGPATH:Mpkgtools/pkgin) && \
    empty(PKGPATH:Msecurity/mozilla-rootcerts*) && \
    empty(PKGPATH:Msecurity/openssl) && \
    empty(PKGPATH:Msysutils/checkperms) && \
    empty(PKGPATH:Mtextproc/gsed) && \
    empty(PKGPATH:Mtextproc/p5-Text-Unidecode) && \
    empty(PKGPATH:Mx11/xorgproto)

GCC_REQD+=7.0
GFORTRAN_VERSION=7.0

.endif  # GCC_REQD

# Keep this in sync with pbulk-setup
.if exists(/etc/redhat-release) && !empty(PKGPATH:Mlang/gcc*)

# RHEL systems may have an outdated "as" that cannot translate instructions
# from current GCC code generators, so force pkgsrc binutils.
CONFIGURE_ARGS+=        --with-gnu-as --with-as=${PREFIX}/bin/gas
CONFIGURE_ARGS+=        --with-gnu-ld --with-ld=${PREFIX}/bin/gld
BUILDLINK_DEPMETHOD.binutils=   full
.  include "../../devel/binutils/buildlink3.mk"

# pkgsrc gcc packages don't install libgcc_s on some platforms, to
# avoid problems when mixing compiler versions.  This breaks our use
# of pkgsrc gcc on EL.
PKG_DEFAULT_OPTIONS+=   always-libgcc
.endif  # RHEL
.endif  # BSD_PKG_MK



Home | Main Index | Thread Index | Old Index