Package Details: liboping 1.10.0-16

Git Clone URL: https://aur.archlinux.org/liboping.git (read-only, click to copy)
Package Base: liboping
Description: C library to generate ICMP echo requests, better known as "ping packets"
Upstream URL: https://noping.cc/
Licenses: GPL
Submitter: arojas
Maintainer: lilydjwg (lilac)
Last Packager: lilac
Votes: 7
Popularity: 0.123125
First Submitted: 2021-05-08 09:15 (UTC)
Last Updated: 2023-08-07 20:23 (UTC)

Dependencies (4)

Sources (3)

Latest Comments

1 2 3 Next › Last »

Arvedui commented on 2023-09-16 12:59 (UTC)

whuups. you are right, that is one of my local patches. I should remember to check that in the future.

sorry for the noise.

lilydjwg commented on 2023-09-16 12:52 (UTC)

There isn't chrpath in PKGBUILD.

Arvedui commented on 2023-09-16 11:12 (UTC) (edited on 2023-09-16 11:12 (UTC) by Arvedui)

This fails to build for me because of the perl update. The chrpath call in package() fails. Here is a patch:

diff --git a/PKGBUILD b/PKGBUILD
index f4e564b..997b507 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,5 +44,5 @@ build() {
 package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
-   chrpath -d "${pkgdir}/usr/lib/perl5/5.36/vendor_perl/auto/Net/Oping/Oping.so"
+   chrpath -d "${pkgdir}/usr/lib/perl5/5.38/vendor_perl/auto/Net/Oping/Oping.so"
 }

though I'm wondering if there is a better way to do this, one that is not dependent on the perl version.

lilydjwg commented on 2023-08-22 10:25 (UTC)

@Jack12816 I don't have that issue. It seems that your Perl environment has some setting conflicting. Try devtools to build in a clean environment?

Jack12816 commented on 2023-08-16 11:30 (UTC)

Making all in bindings
make[1]: Entering directory '/home/jack/.cache/yay/liboping/src/liboping-1.10.0/bindings'
if test ! -d perl; then \
    for file in perl/Changes perl/MANIFEST perl/META.yml perl/Makefile.PL perl/Oping.xs perl/README perl/lib/Net/Oping.pm perl/t/Oping.t perl/typemap; do \
        mkdir -p `dirname $file`; \
        cp ./$file `dirname $file`; \
    done \
fi
cd perl && perl Makefile.PL PREFIX="/usr" TOP_BUILDDIR=".." TARGET_LIBDIR="/usr/lib" INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
make[1]: *** [Makefile:461: perl/Makefile] Error 25
make[1]: Leaving directory '/home/jack/.cache/yay/liboping/src/liboping-1.10.0/bindings'
make: *** [Makefile:382: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: liboping-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
liboping - exit status 4

lilydjwg commented on 2022-03-14 08:40 (UTC)

@jomority your patch doesn't work because of tabs. I've fixed it and include it.

jomority commented on 2022-03-09 23:41 (UTC)

Applying the following patch in prepare() (after the ncursesw.patch) fixes the build:

--- a/src/oping.c
+++ b/src/oping.c
@@ -1121,7 +1121,7 @@
            wattron (ctx->window, COLOR_PAIR(color));

        if (has_utf8())
-           mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, symbol);
+           mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, "%s", symbol);
        else
            mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, symbolc);

@@ -1219,7 +1219,7 @@
            mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, ' ');
        else if (has_utf8 ())
            mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2,
-                   hist_symbols_utf8[index]);
+                   "%s", hist_symbols_utf8[index]);
        else
            mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2,
                    hist_symbols_acs[index] | A_ALTCHARSET);
@@ -1596,8 +1596,7 @@

            HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ",
                    data_len, context->host, context->addr,
-                   sequence, recv_ttl,
-                   format_qos (recv_qos, recv_qos_str, sizeof (recv_qos_str)));
+                   sequence, recv_ttl);
            if ((recv_qos != 0) || (opt_send_qos != 0))
            {
                HOST_PRINTF ("qos=%s ",

blalor commented on 2021-11-22 14:12 (UTC)

Reported: https://github.com/octo/liboping/issues/62

blalor commented on 2021-11-22 14:10 (UTC)

Thank you. The source file hasn't changed since 2017. Have the makepkg.conf settings?

lilydjwg commented on 2021-11-22 02:15 (UTC)

Those warnings are valid and should be fixed upstream, but it should not hurt too much. You can drop the -Werror=format-security from your CFLAGS in /etc/makepkg.conf temporarily to make the compilation successful.