From f7948d6051b715b2de5b7a63e07ee44179540e6d Mon Sep 17 00:00:00 2001 From: Piraty Date: Mon, 6 Jul 2020 22:07:29 +0200 Subject: [PATCH] common/shlibs: fix hidrd --- common/shlibs | 2 +- common/xbps-src/shutils/chroot.sh | 2 +- srcpkgs/android-file-transfer-linux/template | 2 +- srcpkgs/codelite/patches/92ed90e07.patch | 48 -------------------- srcpkgs/codelite/patches/musl.patch | 32 ++++++------- srcpkgs/codelite/template | 23 ++++++---- srcpkgs/cpputest/template | 6 ++- srcpkgs/gtk4/template | 1 - srcpkgs/lshw/template | 8 ++++ srcpkgs/neovim/template | 10 +++- srcpkgs/rdup/template | 6 ++- srcpkgs/rpi-kernel/template | 8 ++-- srcpkgs/samsung-unified-driver/template | 13 ++++-- srcpkgs/vmap/template | 4 +- srcpkgs/vtk/template | 6 +-- 15 files changed, 78 insertions(+), 93 deletions(-) delete mode 100644 srcpkgs/codelite/patches/92ed90e07.patch diff --git a/common/shlibs b/common/shlibs index 9fcc3c7aa62..ed1906bbb78 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3965,7 +3965,7 @@ libjpegxr.so.0 jxrlib-0.2.2_1 libjxrglue.so.0 jxrlib-0.2.2_1 libhidrd_util.so.0 hidrd-0.2.0_1 libhidrd_usage.so.0 hidrd-0.2.0_1 -libhidrd_item.so.0 +libhidrd_item.so.0 hidrd-0.2.0_1 libhidrd_opt.so.0 hidrd-0.2.0_1 libhidrd_strm.so.0 hidrd-0.2.0_1 libhidrd_fmt.so.0 hidrd-0.2.0_1 diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 436f8866cd4..95f08dcfbf9 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -20,7 +20,7 @@ install_base_chroot() { fi # Reconfigure base-files to create dirs/symlinks. if xbps-query -r $XBPS_MASTERDIR base-files &>/dev/null; then - XBPS_ARCH=$XBPS_TARGET_PKG xbps-reconfigure -r $XBPS_MASTERDIR -f base-files &>/dev/null + XBPS_ARCH=$XBPS_TARGET_PKG xbps-reconfigure -r $XBPS_MASTERDIR -f base-files fi msg_normal "xbps-src: installed base-chroot successfully!\n" diff --git a/srcpkgs/android-file-transfer-linux/template b/srcpkgs/android-file-transfer-linux/template index dbaef1f2e26..fbbda207f37 100644 --- a/srcpkgs/android-file-transfer-linux/template +++ b/srcpkgs/android-file-transfer-linux/template @@ -4,7 +4,7 @@ version=3.9 revision=1 build_style=cmake configure_args="-DBUILD_SHARED_LIB=1" -hostmakedepends="qt5-qmake qt5-host-tools ninja pkg-config" +hostmakedepends="qt5-qmake qt5-host-tools pkg-config" makedepends="file-devel fuse-devel qt5-devel readline-devel" short_desc="Android File Transfer for Linux" maintainer="Toyam Cox " diff --git a/srcpkgs/codelite/patches/92ed90e07.patch b/srcpkgs/codelite/patches/92ed90e07.patch deleted file mode 100644 index 89fba88f14d..00000000000 --- a/srcpkgs/codelite/patches/92ed90e07.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 92ed90e07774dfc8556bee02c66120eed4938a40 Mon Sep 17 00:00:00 2001 -From: dghart -Date: Wed, 19 Jun 2019 11:23:38 +0100 -Subject: [PATCH] Compilation fix for wx3.0 gtk+3 builds - ---- - codelite_terminal/TextView.cpp | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - -diff --git a/codelite_terminal/TextView.cpp b/codelite_terminal/TextView.cpp -index 83d2e260c..5966f9972 100644 ---- codelite_terminal/TextView.cpp -+++ codelite_terminal/TextView.cpp -@@ -12,7 +12,11 @@ TextView::TextView(wxWindow* parent, wxWindowID winid) - m_ctrl->SetCaretStyle(wxSTC_CARETSTYLE_BLOCK); - m_ctrl->SetYCaretPolicy(wxSTC_CARET_STRICT | wxSTC_CARET_SLOP, 4); - m_ctrl->SetLexer(wxSTC_LEX_CONTAINER); -+#if wxCHECK_VERSION(3, 1, 1) - m_ctrl->StartStyling(0); -+#else -+ m_ctrl->StartStyling(0, 0x1f); -+#endif - m_ctrl->SetWrapMode(wxSTC_WRAP_CHAR); - #else - m_ctrl = new TextCtrl_t(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, -@@ -61,7 +65,11 @@ void TextView::SetDefaultStyle(const wxTextAttr& attr) - { - #if USE_STC - m_defaultAttr = attr; -+#if wxCHECK_VERSION(3, 1, 1) - m_ctrl->StartStyling(m_ctrl->GetLastPosition()); -+#else -+ m_ctrl->StartStyling(m_ctrl->GetLastPosition(), 0x1f); -+#endif - #else - m_ctrl->SetDefaultStyle(attr); - #endif -@@ -210,6 +218,10 @@ void TextView::Clear() - #if USE_STC - m_ctrl->ClearAll(); - m_ctrl->ClearDocumentStyle(); -+#if wxCHECK_VERSION(3, 1, 1) - m_ctrl->StartStyling(0); -+#else -+ m_ctrl->StartStyling(0, 0x1f); -+#endif - #endif - } diff --git a/srcpkgs/codelite/patches/musl.patch b/srcpkgs/codelite/patches/musl.patch index 8a345ed9753..1ce32df53bb 100644 --- a/srcpkgs/codelite/patches/musl.patch +++ b/srcpkgs/codelite/patches/musl.patch @@ -1,29 +1,29 @@ --- codelitegcc/main.cpp.orig 2019-06-29 08:37:38.818622077 +0200 +++ codelitegcc/main.cpp 2019-06-29 08:38:04.090937646 +0200 @@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std:: - #include - #include - #include -+#include - - void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags ) - { ---- sdk/codelite_indexer/libctags/read.c.orig 2019-06-29 08:54:26.592208449 +0200 -+++ sdk/codelite_indexer/libctags/read.c 2019-06-29 08:56:18.688608501 +0200 -@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size - #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__) - if(location < 0) + #include + #include + #include ++#include + + void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags ) + { +--- sdk/codelite_indexer/libctags/read.c ++++ sdk/codelite_indexer/libctags/read.c +@@ -608,6 +608,9 @@ + #elif defined(__NetBSD__) + if(location._pos < 0) return 0; +#elif defined(__linux__) && !defined(__GLIBC__) /* musl */ + if(location.__lldata < 0) -+ return 0; ++ return 0; #else if(location.__pos < 0) return 0; -@@ -619,6 +622,8 @@ extern int readChars (char *buffer, size - - #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__) +@@ -624,6 +627,8 @@ sizeToRead = endPos - location; + #elif defined(__NetBSD__) + sizeToRead = endPos._pos - location._pos; +#elif defined(__linux__) && !defined(__GLIBC__) /* musl */ + sizeToRead = endPos.__lldata - location.__lldata; #else diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template index a2a09d79fa1..c7d8aba2ace 100644 --- a/srcpkgs/codelite/template +++ b/srcpkgs/codelite/template @@ -1,12 +1,12 @@ # Template file for 'codelite' pkgname=codelite -version=13.0 -revision=3 -archs="i686* x86_64* ppc64le*" +version=14.0 +revision=1 build_style=cmake configure_args="-DWITH_PCH=0 $(vopt_if sftp -DENABLE_SFTP=1) - $(vopt_if lldb -DENABLE_LLDB=1)" + $(vopt_if lldb -DENABLE_LLDB=1) + " hostmakedepends="pkg-config clang which" makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel $(vopt_if lldb lldb-devel) $(vopt_if hunspell hunspell-devel) @@ -16,19 +16,24 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="http://www.codelite.org" distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz" -checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac -nocross=yes +checksum=67c7947808552ac07c6c71f8cd53440d293da03d89176b9dfb38012c5dd662b4 python_version=2 #unverified build_options="hunspell lldb mysql sftp" -build_options_default="hunspell lldb sftp" desc_option_hunspell="Enable SpellCheck plugin" desc_option_lldb="Enable support for LLDB" desc_option_mysql="Enable mysql/mariadb support" desc_option_sftp="Enable Workspace Mirroring plugin" +build_options_default="hunspell sftp" + +# lldb is nocross +if [ -z "$CROSS_BUILD" ] ; then + build_options_default+=" lldb" +fi pre_configure() { - sed -i -e 's,wx-config,&-gtk3,g' \ - -e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \ + vsed -i \ + -e 's,wx-config,&-gtk3,g' \ + -e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \ CMakeLists.txt } diff --git a/srcpkgs/cpputest/template b/srcpkgs/cpputest/template index 1b6e933897b..f4dddc7439d 100644 --- a/srcpkgs/cpputest/template +++ b/srcpkgs/cpputest/template @@ -9,7 +9,11 @@ homepage="http://cpputest.github.io/" license="BSD" distfiles="https://github.com/cpputest/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz" checksum="c81dccc5a1bfc7fc6511590c0a61def5f78e3fb19cb8e1f889d8d3395a476456" -configure_args+=" -DTESTS=OFF" + +if [ -n "$XBPS_CHECK_PKGS" ] ; then + configure_args+=" -DTESTS=OFF" +fi + post_install() { vlicense COPYING } diff --git a/srcpkgs/gtk4/template b/srcpkgs/gtk4/template index 58388b515c0..272b4f372e8 100644 --- a/srcpkgs/gtk4/template +++ b/srcpkgs/gtk4/template @@ -30,7 +30,6 @@ homepage="https://www.gtk.org/" distfiles="${GNOME_SITE}/gtk+/${version%.*}/gtk+-${version}.tar.xz" checksum=a947caa5296610b0f1d7a03b58df34765c227c577c78e683e75eea3251a67035 -# Package build options build_options="broadway colord cups gir cloudproviders wayland x11" desc_option_broadway="Enable support for the HTML5 Broadway backend" desc_option_cloudproviders="Enable integration with cloudproviders, such as Nextcloud" diff --git a/srcpkgs/lshw/template b/srcpkgs/lshw/template index c6d0130a766..c20cfc2a53d 100644 --- a/srcpkgs/lshw/template +++ b/srcpkgs/lshw/template @@ -9,7 +9,15 @@ make_install_args="SBINDIR=/usr/bin" make_install_target="install install-gui" make_use_env=yes hostmakedepends="docbook2x pkg-config" +<<<<<<< Updated upstream makedepends="gtk+-devel" +======= +<<<<<<< Updated upstream +makedepends="gtk+-devel libglade-devel sqlite-devel" +======= +makedepends="gtk+-devel libcanberra-devel" +>>>>>>> Stashed changes +>>>>>>> Stashed changes short_desc="Hardware lister application" maintainer="Enno Boland " license="GPL-2.0-only" diff --git a/srcpkgs/neovim/template b/srcpkgs/neovim/template index 4e361476213..d6342bd27cf 100644 --- a/srcpkgs/neovim/template +++ b/srcpkgs/neovim/template @@ -5,7 +5,7 @@ revision=1 build_style=cmake build_helper="qemu" hostmakedepends="pkg-config gettext gperf LuaJIT lua51-lpeg lua51-mpack" -makedepends="libtermkey-devel libuv-devel libvterm-devel msgpack-devel LuaJIT-devel +makedepends="libtermkey-devel libuv-devel libvterm-devel msgpack-devel libluv-devel" depends="libvterm>=0.1.0" short_desc="Fork of Vim aiming to improve user experience, plugins and GUIs" @@ -24,6 +24,14 @@ alternatives=" vim:vim:/usr/bin/nvim vim:vim.1:/usr/share/man/man1/nvim.1" +# fallback to lua5.1 if LuaJIT is unavailable +#if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ] || [ "$XBPS_MACHINE" = "x86_64" ] ; then + makedepends+=" LuaJIT-devel" +#else +# configure_args+=" -DPREFER_LUA=ON" +# makedepends+=" lua51-devel" +#fi + pre_configure() { vsed -i runtime/CMakeLists.txt \ -e "s|\".*/bin/nvim|\${CMAKE_CROSSCOMPILING_EMULATOR} &|g" diff --git a/srcpkgs/rdup/template b/srcpkgs/rdup/template index 82877b9bec5..b4a5d471b5d 100644 --- a/srcpkgs/rdup/template +++ b/srcpkgs/rdup/template @@ -5,7 +5,6 @@ revision=3 build_style=gnu-configure hostmakedepends="automake pkg-config" makedepends="glib-devel libarchive-devel nettle-devel" -checkdepends="bsdtar dejagnu" short_desc="The only backup program that doesn't make backups" maintainer="Rui Abreu Ferreira " license="GPL-3.0-or-later" @@ -14,6 +13,11 @@ distfiles="https://github.com/miekg/rdup/archive/${version}.tar.gz" checksum=787b8c37e88be810a710210a9d9f6966b544b1389a738aadba3903c71e0c29cb patch_args="-Np1" +do_check() { + # checks require mcrypt which is yet to be packaged + : +} + pre_configure() { vsed -e 's/-Werror//' -i GNUmakefile.in autoreconf -fi diff --git a/srcpkgs/rpi-kernel/template b/srcpkgs/rpi-kernel/template index 2f4d9defbab..fdda4dfc172 100644 --- a/srcpkgs/rpi-kernel/template +++ b/srcpkgs/rpi-kernel/template @@ -135,14 +135,14 @@ do_install() { vmkdir boot # Generate kernel.img and install it to destdir. case "$XBPS_TARGET_MACHINE" in - aarch64*) - cp arch/arm64/boot/Image ${DESTDIR}/boot/kernel8.img + armv6l*) + cp arch/arm/boot/zImage ${DESTDIR}/boot/kernel.img ;; armv7l*) cp arch/arm/boot/zImage ${DESTDIR}/boot/kernel7.img ;; - armv6l*) - cp arch/arm/boot/zImage ${DESTDIR}/boot/kernel.img + aarch64*) + cp arch/arm64/boot/Image ${DESTDIR}/boot/kernel8.img ;; esac diff --git a/srcpkgs/samsung-unified-driver/template b/srcpkgs/samsung-unified-driver/template index 3ddf426e2ff..aeb4741985c 100644 --- a/srcpkgs/samsung-unified-driver/template +++ b/srcpkgs/samsung-unified-driver/template @@ -1,18 +1,23 @@ # Template file for 'samsung-unified-driver' pkgname=samsung-unified-driver -version=1.00.37 +version=1.00.39 revision=3 -create_wrksrc=yes archs="i686 x86_64" -repository=nonfree -depends="cups ghostscript libusb-compat sane" +create_wrksrc=yes +#depends="cups ghostscript libusb-compat sane" short_desc="Unified Linux Driver for Samsung printers and scanners" maintainer="Thomas Bernard " license="Propietary" homepage="http://www.samsung.com" distfiles="http://downloadcenter.samsung.com/content/DR/201512/20151210091120064/uld_v${version}_00.99.tar.gz" checksum="6b85253ea0bb51d241f6fd665ff0d39464cdad87084802a77a385c707fa2c664" +homepage="http://www.hp.com" +distfiles="https://ftp.hp.com/pub/softlib/software13/printers/SS/SL-M4580FX/uld_V${version}_01.17.tar.gz" +checksum="0c38213b846644500526bf281caaa6e36c40b8f2241cac2f0398c97c3814540e" + +repository=nonfree nostrip=true +#restricted=yes post_extract() { mv uld/i386 uld/i686 diff --git a/srcpkgs/vmap/template b/srcpkgs/vmap/template index 5eb9af3ae02..3a2a715a65f 100644 --- a/srcpkgs/vmap/template +++ b/srcpkgs/vmap/template @@ -1,6 +1,6 @@ # Template file for 'vmap' pkgname=vmap -version=0.4 +version=0.4.1 revision=1 build_style=qmake configure_args="CONFIG+=NONMAP" @@ -11,7 +11,7 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://gitlab.com/git-rep/vmap" distfiles="https://gitlab.com/git-rep/vmap/-/archive/${version}/vmap-${version}.tar.gz" -checksum=950d1a9b27ec4ff6b4641f699350914588bf59658d03bb526f5a46fb72c6a689 +checksum= if [ -n "CROSS_BUILD" ]; then hostmakedepends+=" qt5-svg-devel" diff --git a/srcpkgs/vtk/template b/srcpkgs/vtk/template index c541f8cea19..0ee3c808bac 100644 --- a/srcpkgs/vtk/template +++ b/srcpkgs/vtk/template @@ -1,7 +1,7 @@ # Template file for 'vtk' pkgname=vtk -version=8.2.0 -revision=4 +version=9.0.0 +revision=1 wrksrc=VTK-${version} build_style=cmake # vtk can be huge, especially with -DVTK_BUILD_ALL_MODULES=ON" @@ -37,7 +37,7 @@ maintainer="Piraty " license="BSD-3-Clause" homepage="https://www.vtk.org" distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz" -checksum=34c3dc775261be5e45a8049155f7228b6bd668106c72a3c435d95730d17d57bb +checksum=15def4e6f84d72f82386617fe595ec124dda3cbd13ea19a0dcd91583197d8715 nocross="hdf5 is nocross"