Github messages for voidlinux
 help / color / mirror / Atom feed
From: Logarithmus <Logarithmus@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: whdd-3.0
Date: Fri, 20 Nov 2020 01:55:00 +0100	[thread overview]
Message-ID: <20201120005500.DZ2pn-p75-Zx1BGW_Sh_CwHzmwYTA-N20YS4ahNxNYY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26339@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages whdd
https://github.com/void-linux/void-packages/pull/26339

New package: whdd-3.0
HDD diagnostics and data recovery tool for Linux.
This PR also fixes `dialog` package, which is needed for `whdd`. Also it adds `libdialog` into `common/shlibs`.

A patch file from https://github.com/void-linux/void-packages/pull/26339.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-whdd-26339.patch --]
[-- Type: text/x-diff, Size: 5175 bytes --]

From e2d6b2268010d4971a6f293f9f66b5a51856193f Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Thu, 12 Nov 2020 07:08:36 +0300
Subject: [PATCH 1/3] common/shlibs: add dialog-devel

---
 common/shlibs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/shlibs b/common/shlibs
index 9a576f18d0f..0392d7d98aa 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3993,3 +3993,4 @@ liburing.so.1 liburing-0.7_1
 libbson-1.0.so.0 libbson-1.17.0_1
 libsonic.so.0 libsonic-0.2.0_1
 libtickit.so.3 libtickit-0.4.1_1
+libdialog.so.15 dialog-devel-1.3.20200327_2

From 832b4fdce109b367660ee6ba7e111dfe76ee0c7e Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Thu, 12 Nov 2020 06:38:58 +0300
Subject: [PATCH 2/3] dialog: add *-devel package

---
 srcpkgs/dialog-devel    |  1 +
 srcpkgs/dialog/template | 18 +++++++++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)
 create mode 120000 srcpkgs/dialog-devel

diff --git a/srcpkgs/dialog-devel b/srcpkgs/dialog-devel
new file mode 120000
index 00000000000..3c8c6c89456
--- /dev/null
+++ b/srcpkgs/dialog-devel
@@ -0,0 +1 @@
+dialog
\ No newline at end of file
diff --git a/srcpkgs/dialog/template b/srcpkgs/dialog/template
index 30a5ec2c02e..14ea1d440f4 100644
--- a/srcpkgs/dialog/template
+++ b/srcpkgs/dialog/template
@@ -3,18 +3,26 @@ pkgname=dialog
 _distver=1.3
 _date=20200327
 version="${_distver}.${_date}"
-revision=1
+revision=2
 wrksrc="${pkgname}-${_distver}-${_date}"
 build_style=gnu-configure
-configure_args="--with-ncursesw --disable-nls"
+configure_args="--with-ncursesw --with-libtool --disable-nls"
+make_install_target="install-full"
+hostmakedepends="libtool"
 makedepends="ncurses-devel"
 short_desc="Tool to display dialog boxes from shell scripts"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
 license="LGPL-2.1-only"
 homepage="https://invisible-island.net/dialog/"
 distfiles="https://invisible-mirror.net/archives/${pkgname}/${pkgname}-${_distver}-${_date}.tgz"
 checksum=466163e8b97c2b7709d00389199add3156bd813f60ccb0335d0a30f2d4a17f99
 
-post_install() {
-	rm -r ${DESTDIR}/usr/lib
+dialog-devel_package() {
+	depends="${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
 }

From 43f42b3da384d7d4c67e744518a472b85beabe13 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Thu, 12 Nov 2020 05:39:30 +0300
Subject: [PATCH 3/3] New package: whdd-3.0

---
 srcpkgs/dialog/template               |  6 ++++--
 srcpkgs/whdd/patches/gnu-source.patch | 11 +++++++++++
 srcpkgs/whdd/template                 | 17 +++++++++++++++++
 3 files changed, 32 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/whdd/patches/gnu-source.patch
 create mode 100644 srcpkgs/whdd/template

diff --git a/srcpkgs/dialog/template b/srcpkgs/dialog/template
index 14ea1d440f4..b9fd7c7ef87 100644
--- a/srcpkgs/dialog/template
+++ b/srcpkgs/dialog/template
@@ -6,10 +6,12 @@ version="${_distver}.${_date}"
 revision=2
 wrksrc="${pkgname}-${_distver}-${_date}"
 build_style=gnu-configure
-configure_args="--with-ncursesw --with-libtool --disable-nls"
+configure_args="LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool --with-ncursesw --with-libtool --disable-nls"
+make_build_args="LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool"
+make_install_args="LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool"
 make_install_target="install-full"
 hostmakedepends="libtool"
-makedepends="ncurses-devel"
+makedepends="libtool ncurses-devel"
 short_desc="Tool to display dialog boxes from shell scripts"
 maintainer="Artur Sinila <opensource@logarithmus.dev>"
 license="LGPL-2.1-only"
diff --git a/srcpkgs/whdd/patches/gnu-source.patch b/srcpkgs/whdd/patches/gnu-source.patch
new file mode 100644
index 00000000000..08ad39750c1
--- /dev/null
+++ b/srcpkgs/whdd/patches/gnu-source.patch
@@ -0,0 +1,11 @@
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -5,7 +5,7 @@
+ option(STATIC "Build static binaries" OFF)
+ option(CLI "Build whdd-cli" OFF)
+ 
+-set(CMAKE_C_FLAGS "-std=gnu99 -pthread -Wall -Wextra -Wno-missing-field-initializers ${CFLAGS}")
++set(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -pthread -Wall -Wextra -Wno-missing-field-initializers ${CFLAGS}")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS}")
+ set(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb ${CMAKE_C_FLAGS}")
+ 
diff --git a/srcpkgs/whdd/template b/srcpkgs/whdd/template
new file mode 100644
index 00000000000..afcaafb86e2
--- /dev/null
+++ b/srcpkgs/whdd/template
@@ -0,0 +1,17 @@
+# Template file for 'whdd'
+pkgname=whdd
+version=3.0
+revision=1
+build_style=cmake
+configure_args="-DCLI=ON"
+makedepends="dialog-devel ncurses-devel"
+short_desc="HDD diagnostics and data recovery tool for Linux"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-only"
+homepage="https://github.com/whdd/whdd"
+distfiles="https://github.com/whdd/whdd/archive/${version}.tar.gz"
+checksum=b0877375a54e0c915dfe418f5330b0e1d409629d1f298539f6a0556df2c8335a
+
+post_install() {
+	mv "${DESTDIR}/usr/sbin" "${DESTDIR}/usr/bin"
+}

  parent reply	other threads:[~2020-11-20  0:55 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-13  0:45 [PR PATCH] " Logarithmus
2020-11-13  1:08 ` [PR REVIEW] " ndowens
2020-11-13  1:08 ` ndowens
2020-11-13  2:07 ` [PR PATCH] [Updated] " Logarithmus
2020-11-18 22:26 ` Logarithmus
2020-11-20  0:04 ` Logarithmus
2020-11-20  0:06 ` [PR REVIEW] " ndowens
2020-11-20  0:06 ` ndowens
2020-11-20  0:23 ` Logarithmus
2020-11-20  0:40 ` [PR PATCH] [Updated] " Logarithmus
2020-11-20  0:44 ` Logarithmus
2020-11-20  0:45 ` [PR PATCH] [Updated] " Logarithmus
2020-11-20  0:51 ` Logarithmus
2020-11-20  0:55 ` Logarithmus [this message]
2020-11-20 17:32 ` Logarithmus
2020-12-26 19:28 ` [PR PATCH] [Updated] " Logarithmus
2021-02-19  2:24 ` Logarithmus
2021-02-19  3:09 ` Logarithmus
2021-02-19  3:16 ` Logarithmus
2021-02-19  3:16 ` Logarithmus
2021-02-19  3:18 ` Logarithmus
2021-02-19  3:57 ` [PR PATCH] [Updated] " Logarithmus
2021-02-19  4:23 ` [PR PATCH] [Updated] New package: whdd-3.0.1 Logarithmus
2021-02-21  2:56 ` Logarithmus
2021-02-21  3:14 ` Logarithmus
2021-02-21  4:49 ` [PR REVIEW] " ericonr
2021-02-21  4:49 ` ericonr
2021-02-21  4:49 ` ericonr
2021-02-21  4:49 ` ericonr
2021-02-21  5:14 ` Logarithmus
2021-02-21  5:24 ` [PR PATCH] [Updated] " Logarithmus
2021-02-21  5:25 ` [PR REVIEW] " Logarithmus
2021-02-21  5:26 ` Logarithmus
2021-02-21  5:28 ` Logarithmus
2021-02-21  5:36 ` [PR PATCH] [Updated] " Logarithmus
2021-02-21  5:40 ` [PR REVIEW] " Logarithmus
2021-02-21  5:40 ` Logarithmus
2021-02-21  5:40 ` Logarithmus
2021-02-21  5:41 ` Logarithmus
2021-02-21  5:48 ` [PR REVIEW] " ericonr
2021-02-21  5:58 ` Logarithmus
2021-02-21  5:58 ` Logarithmus
2021-02-21  5:59 ` Logarithmus
2021-02-21  5:59 ` ericonr
2021-03-26 18:27 ` [PR PATCH] [Updated] " Logarithmus
2021-03-26 18:27 ` Logarithmus
2021-03-26 18:34 ` Logarithmus
2021-03-26 18:48 ` [PR REVIEW] " ericonr
2021-03-26 18:59 ` [PR PATCH] [Updated] " Logarithmus
2021-03-26 19:01 ` [PR REVIEW] " Logarithmus
2021-07-27  2:13 ` [PR PATCH] [Updated] " Logarithmus
2021-08-14 11:54 ` Logarithmus
2021-08-14 12:06 ` Logarithmus
2021-08-14 12:18 ` Logarithmus
2022-04-28  2:16 ` github-actions
2022-05-13  2:15 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201120005500.DZ2pn-p75-Zx1BGW_Sh_CwHzmwYTA-N20YS4ahNxNYY@z \
    --to=logarithmus@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).