Package Details: rdrview-git 20210213.b887583-1

Git Clone URL: https://aur.archlinux.org/rdrview-git.git (read-only, click to copy)
Package Base: rdrview-git
Description: Command line tool to extract the main content from a webpage
Upstream URL: https://github.com/eafer/rdrview
Licenses: custom
Conflicts: rdrview
Provides: rdrview
Submitter: vesath
Maintainer: parkerlreed
Last Packager: parkerlreed
Votes: 2
Popularity: 0.000000
First Submitted: 2020-10-19 18:57 (UTC)
Last Updated: 2021-05-05 03:30 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

Nebulosa commented on 2025-05-03 07:26 (UTC)

Quick fix for a while:

sudo ln /usr/lib/libxml2.so.16 /usr/lib/libxml2.so.2 then try run rdrview

but it doesn't help with building errors.

m040601 commented on 2025-05-02 11:48 (UTC) (edited on 2025-05-02 17:29 (UTC) by m040601)

The tool "rdrview" stoped working as of 2025-05-02 .

$ rdrview 'https://en.wikipedia.org/wiki/World_wide_web'

rdrview: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

This PKGBUILD "rdrview-git" also doesnt build as of 2025-05-02 ,

src/rdrview.c: In function ‘save_node_to_file’:
src/rdrview.c:507:9: error: implicit declaration of function ‘xmlShellPrintNode’; did you mean ‘xmlChildrenNode’? [-Wimplicit-function-declaration]
  507 |         xmlShellPrintNode(node);
      |         ^~~~~~~~~~~~~~~~~
      |         xmlChildrenNode
make: *** [Makefile:38: src/rdrview.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: rdrview-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
rdrview-git - exit status 4

I am speculating here. Maybe it is related to the recent Archlinux official package "libxml2" update from 2.13 to 2.14 ???

yay -Si rdrview-git

Name                          : rdrview-git
Version                       : 20210213.b887583-1
Depends On                    : curl  libxml2  libseccomp
Conflicts With                : rdrview
Last Modified                 : Wed 05 May 2021 04:30:52 AM WEST
Maintainer                    : parkerlreed

I saw a lot of official Archlinux packages being rebuilt just because they depended "libxml2"

pacman -Si libxml2

Name            : libxml2
Version         : 2.14.2-2
Provides        : libxml2.so=16-64
Depends On      : bash  glibc  icu  readline  xz  zlib
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Sat 26 Apr 2025 11:57:54 PM WEST

pacman -Ql libxml2

....
libxml2 /usr/lib/libxml2.so
libxml2 /usr/lib/libxml2.so.16
libxml2 /usr/lib/libxml2.so.16.0.2
....

locate libxml2.so

/usr/lib/libxml2.so
/usr/lib/libxml2.so.16
/usr/lib/libxml2.so.16.0.2

So there is no "libxml2.so.2" in a recent "libmxl2". Notice the .2 at the end. Could it be somewhere else ?

pacman -F libxml2.so.2

extra/libxml2-legacy 2.13.8-1
    usr/lib/libxml2-legacy/lib/libxml2.so.2
    usr/lib/libxml2.so.2

Seems it moved into this "legacy" one ?

I opened an issue here, https://github.com/eafer/rdrview/issues/45

https://wiki.archlinux.org/title/System_maintenance#Be_careful_with_unofficial_packages

https://archlinux.org/packages/?name=rebuild-detector

$ checkrebuild -v

foreign rdrview-git
foreign sc-im

ldd /usr/bin/rdrview

        libxml2.so.2 => not found

ldd /usr/bin/sc-im

        libxml2.so.2 => not found

parkerlreed commented on 2021-05-05 03:31 (UTC)

Updated

m040601 commented on 2021-01-31 11:08 (UTC) (edited on 2021-01-31 11:10 (UTC) by m040601)

@parkerlreed, thanks for adopting this very usefull package.

As you can see in the github issues page, it also builds and runs fine on other architectures than x64. I myself run it on raspberry pi, arm.

So please update the PKGBUILD, change:

    arch=('x86_64')

to either 'any' or ('x86_64' 'aarch64' 'armv6h' 'armv7h')

parkerlreed commented on 2021-01-29 18:45 (UTC)

Adopted and updated. Patch was no longer required.

m040601 commented on 2020-12-20 05:59 (UTC) (edited on 2020-12-20 06:01 (UTC) by m040601)

latest git fails with:


    ==> Starting prepare()...
    patching file Makefile
    Hunk #1 FAILED at 5.
    Hunk #2 succeeded at 26 with fuzz 2 (offset 9 lines).
    Hunk #3 FAILED at 27.
    2 out of 3 hunks FAILED -- saving rejects to file Makefile.rej
    ==> ERROR: A failure occurred in prepare().
    Aborting...
    error making: rdrview-git

parkerlreed commented on 2020-11-11 17:33 (UTC) (edited on 2020-11-11 17:34 (UTC) by parkerlreed)

Patch no longer applies

I think that's what they were pointing out.

vesath commented on 2020-10-24 00:14 (UTC)

Dear g2g. The PKGBUILD you give is the exact same as the current version here on the AUR except you did a rebuild which bumped the version number. Let me know if I missed anything. Cheers.

g2g commented on 2020-10-23 19:41 (UTC) (edited on 2020-10-23 19:42 (UTC) by g2g)

Hi Gaëtan, For working PKGBUILD,

Maintainer: Gaetan Bisson bisson@archlinux.org

pkgname=rdrview-git _pkgname=rdrview pkgver=20201020.cb87302 pkgrel=1 pkgdesc='Command line tool to extract the main content from a webpage' url='https://github.com/eafer/rdrview' license=('custom') arch=('x86_64') makedepends=('git') depends=('curl' 'libxml2' 'libseccomp') source=('git+https://github.com/eafer/rdrview.git') sha256sums=('SKIP')

provides=("${_pkgname}") conflicts=("${_pkgname}")

pkgver() { cd "${srcdir}/${_pkgname}" git log -1 --format='%cd.%h' --date=short | tr -d - }

build() { cd "${srcdir}/${_pkgname}" make }

package() { cd "${srcdir}/${_pkgname}" make PREFIX="${pkgdir}/usr" install }

Thanks, Laurent.