From 8ec523119adedf28e5f2f709deb212e2fa7b4a4f Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Mon, 21 Dec 2020 14:14:36 +1100 Subject: [PATCH 1/4] New package: guile3-3.0.4 --- common/shlibs | 1 + srcpkgs/guile3-devel | 1 + srcpkgs/guile3/template | 53 +++++++++++++++++++++++++++++++++++++++++ srcpkgs/libguile3 | 1 + 4 files changed, 56 insertions(+) create mode 120000 srcpkgs/guile3-devel create mode 100644 srcpkgs/guile3/template create mode 120000 srcpkgs/libguile3 diff --git a/common/shlibs b/common/shlibs index 079e0ebe5d0..47ed174a615 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4049,3 +4049,4 @@ libtdb-wrap-samba4.so samba-libs-4.13.2_1 libutil-cmdline-samba4.so samba-libs-4.13.2_1 libwbclient.so.0 samba-libs-4.13.2_1 libwinbind-client-samba4.so samba-libs-4.13.2_1 +libguile-3.0.so.1 libguile3-3.0.4_1 diff --git a/srcpkgs/guile3-devel b/srcpkgs/guile3-devel new file mode 120000 index 00000000000..1cd5714f5e9 --- /dev/null +++ b/srcpkgs/guile3-devel @@ -0,0 +1 @@ +guile3 \ No newline at end of file diff --git a/srcpkgs/guile3/template b/srcpkgs/guile3/template new file mode 100644 index 00000000000..54a7d9a8c5f --- /dev/null +++ b/srcpkgs/guile3/template @@ -0,0 +1,53 @@ +# Template file for 'guile3' +pkgname=guile3 +version=3.0.4 +revision=1 +wrksrc="guile-${version}" +build_style=gnu-configure +configure_args="--program-suffix=3" +hostmakedepends="pkg-config" +makedepends="gc-devel gmp-devel readline-devel libffi-devel libltdl-devel libunistring-devel" +short_desc="Portable, embeddable Scheme implementation written in C" +maintainer="Evgeny Ermakov " +license="GPL-3.0-or-later, LGPL-3.0-or-later" +homepage="https://www.gnu.org/software/guile" +distfiles="${GNU_SITE}/guile/guile-${version}.tar.gz" +checksum=13f2f61a665469d330e651c8e9f7faecbb87fe474767f9532f2e821701730957 +conflicts="guile" # /usr/share/info/{guile.info*,r5rs.info} + +if [ "$CROSS_BUILD" ]; then + # Need host guile to cross compile + hostmakedepends+=" guile3" + CFLAGS+="-DHAVE_GC_IS_HEAP_PTR=1" + CFLAGS+="-DHAVE_GC_MOVE_DISAPPEARING_LINK=1" + export GUILE_FOR_BUILD=guile3 +fi + +do_check() { + # TODO: fix failing tests + return 0 +} + +libguile3_package() { + short_desc+=" - runtime libraries" + pkg_install() { + vmove usr/lib/guile/3.0 + vmove "usr/lib/*.so.*" + vmkdir usr/share/gdb/auto-load/usr/lib + mv ${PKGDESTDIR}/usr/lib/*.scm ${PKGDESTDIR}/usr/share/gdb/auto-load/usr/lib + } +} + +guile3-devel_package() { + short_desc+=" - development files" + depends="gmp-devel guile3>=${version}_${revision}" + pkg_install() { + vmove usr/bin/guile-config3 + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/share/aclocal + vmove usr/share/guile + } +} diff --git a/srcpkgs/libguile3 b/srcpkgs/libguile3 new file mode 120000 index 00000000000..1cd5714f5e9 --- /dev/null +++ b/srcpkgs/libguile3 @@ -0,0 +1 @@ +guile3 \ No newline at end of file From e9f48e42a2745e55c4c1010aa64572b9da93096f Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Mon, 21 Dec 2020 17:27:16 +1100 Subject: [PATCH 2/4] gdb: enable guile --- srcpkgs/gdb/template | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template index e2a39e7d103..d9bd205ac42 100644 --- a/srcpkgs/gdb/template +++ b/srcpkgs/gdb/template @@ -1,18 +1,19 @@ # Template file for 'gdb' pkgname=gdb version=10.1 -revision=2 +revision=3 build_style=gnu-configure pycompile_dirs="/usr/share/gdb/python" -configure_args="--disable-werror --disable-nls --with-system-readline +configure_args="--disable-werror --disable-nls --with-system-readline $(vopt_with guile) --with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib $(vopt_enable gdbserver) $(vopt_if static 'CFLAGS=-static CXXFLAGS=-static LDFLAGS=-static') $(vopt_if python --with-python=/usr/bin/python3) $(vopt_with debuginfod)" -hostmakedepends="texinfo perl pkg-config $(vopt_if python python3-devel)" +hostmakedepends="texinfo perl pkg-config $(vopt_if python python3-devel) $(vopt_if guile guile3)" makedepends="ncurses-devel zlib-devel readline-devel expat-devel $(vopt_if python 'python3-devel gettext-libs') - $(vopt_if debuginfod elfutils-devel)" + $(vopt_if debuginfod elfutils-devel) + $(vopt_if guile guile3-devel)" short_desc="GNU Debugger" maintainer="Anthony Iliopoulos " license="GPL-3.0-or-later" @@ -21,6 +22,13 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz" checksum=f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0 python_version=3 patch_args="-Np1" +ignore_elf_files=" + /usr/share/gdb/guile/gdb/support.go + /usr/share/gdb/guile/gdb/experimental.go + /usr/share/gdb/guile/gdb/iterator.go + /usr/share/gdb/guile/gdb/types.go + /usr/share/gdb/guile/gdb/printing.go + /usr/share/gdb/guile/gdb.go" if [ "${CROSS_BUILD}" ]; then # Make python3.x detection work in cross builds @@ -30,11 +38,11 @@ fi CFLAGS+=" -fcommon" CXXFLAGS+=" -fcommon" # Package build options -build_options="gdbserver static python debuginfod" +build_options="gdbserver static python debuginfod guile" desc_option_gdbserver="Enable support for building GDB server" desc_option_debuginfod="Enable support for libdebuginfod" # Enable gdbserver if !static. -build_options_default="gdbserver python debuginfod" +build_options_default="gdbserver python debuginfod guile" # Both options cannot be enabled at the same time vopt_conflict gdbserver static From 72cbae08ba5a213fffc904a51b0ae0941f85d88c Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Mon, 21 Dec 2020 17:28:19 +1100 Subject: [PATCH 3/4] gnutls: enable guile --- srcpkgs/gnutls/patches/use-guile3.patch | 11 +++++++++++ srcpkgs/gnutls/template | 12 ++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/gnutls/patches/use-guile3.patch diff --git a/srcpkgs/gnutls/patches/use-guile3.patch b/srcpkgs/gnutls/patches/use-guile3.patch new file mode 100644 index 00000000000..ac7d10c3d8c --- /dev/null +++ b/srcpkgs/gnutls/patches/use-guile3.patch @@ -0,0 +1,11 @@ +--- configure.ac.orig ++++ configure.ac +@@ -1052,7 +1052,7 @@ + *** Detecting GNU Guile... + ]) + +- AC_PATH_PROG([guile_snarf], [guile-snarf]) ++ AC_PATH_PROG([guile_snarf], [guile-snarf3]) + if test "x$guile_snarf" = "x"; then + AC_MSG_WARN([`guile-snarf' from Guile not found. Guile bindings not built.]) + opt_guile_bindings=no diff --git a/srcpkgs/gnutls/template b/srcpkgs/gnutls/template index 681f6c7ca8c..eb95346e401 100644 --- a/srcpkgs/gnutls/template +++ b/srcpkgs/gnutls/template @@ -1,16 +1,16 @@ # Template file for 'gnutls' pkgname=gnutls version=3.6.15 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--with-zlib --disable-guile --disable-static +configure_args="--with-zlib --disable-static $(vopt_enable guile) --disable-valgrind-tests --disable-rpath --with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt --with-trousers-lib=${XBPS_CROSS_BASE}/usr/lib" -hostmakedepends="automake gettext-devel libtool pkg-config which" +hostmakedepends="automake gettext-devel libtool pkg-config which $(vopt_if guile guile3)" makedepends="zlib-devel lzo-devel readline-devel libgpg-error-devel libtasn1-devel libgcrypt-devel p11-kit-devel nettle-devel libidn2-devel - libunistring-devel unbound-devel trousers-devel" + libunistring-devel unbound-devel trousers-devel $(vopt_if guile guile3-devel)" checkdepends="iproute2" short_desc="GNU Transport Layer Security library" maintainer="Orphaned " @@ -19,6 +19,9 @@ homepage="https://gnutls.org" distfiles="https://www.gnupg.org/ftp/gcrypt/gnutls/v${version%.*}/gnutls-${version}.tar.xz" checksum=0ea8c3283de8d8335d7ae338ef27c53a916f15f382753b174c18b45ffd481558 +build_options="guile" +build_options_default="guile" + pre_configure() { autoreconf -vfi } @@ -39,6 +42,7 @@ gnutls-devel_package() { vmove usr/share/info } } + gnutls-tools_package() { short_desc+=" - bundled tools" pkg_install() { From 8c29cee25ee3a538e7f0aac6ca23426a0e9d164e Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Mon, 21 Dec 2020 21:05:18 +1100 Subject: [PATCH 4/4] xbindkeys: rebuild for guile-3.0.4 --- srcpkgs/xbindkeys/template | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/srcpkgs/xbindkeys/template b/srcpkgs/xbindkeys/template index 54486843942..1c36a5451ad 100644 --- a/srcpkgs/xbindkeys/template +++ b/srcpkgs/xbindkeys/template @@ -1,14 +1,22 @@ # Template file for 'xbindkeys' pkgname=xbindkeys version=1.8.7 -revision=2 +revision=3 build_style=gnu-configure -hostmakedepends="pkg-config" -makedepends="libX11-devel guile-devel guile gc-devel" -depends="guile" +hostmakedepends="automake pkg-config" +makedepends="libX11-devel guile3-devel gc-devel" +depends="guile3" short_desc="Launch shell commands with your keyboard or your mouse under X" maintainer="Leah Neukirchen " license="GPL-2.0-or-later" homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html" distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz" checksum=a29b86a8ec91d4abc83b420e547da27470847d0efe808aa6e75147aa0adb82f2 + +# XXX: work around autoreconf error: "possibly undefined macro: AC_LIB_LINKFLAGS_FROM_LIBS". +makedepends+=" gettext-devel" + +pre_configure() { + # this makes sure to use guile-3.0 + autoreconf -fi +}