xserver-SIXEL icon indicating copy to clipboard operation
xserver-SIXEL copied to clipboard

Does not compile

Open 0Karakurt0 opened this issue 4 years ago • 4 comments
trafficstars

During those 7 ywers there was major update to X libraries, so nowadays it fails with

Package 'xfont', required by 'virtual:world', not found while 1 extra/libxfont2 2.0.5-1 (116.1 KiB 243.7 KiB) (installed)

Googing helped to see that installed library has version 2 (which is the cause of the problem), but despite AUR package being 1.5 version 2 aur/libxfont 1.5.4-1 (+9 0.04) it still no use, because it tries to pull other outdated dependencies, like xproto and fontsproto (xorgproto now).

So, on modern systems you cannot build it without updating repo or downgrading whole system. This issue is not so much to developers, but to other internet strangers like me, so that they won't waste a bunch of hours trying to compile

0Karakurt0 avatar Nov 05 '21 00:11 0Karakurt0

@0Karakurt0 ,,Replace xproto and fontsproto dependencies with xorgproto in makedepends" (https://aur.archlinux.org/packages/libxfont/#comment-809492) This would be the fixed PKGBUILD:

# Maintainer: Vi0L0 <[email protected]>
# Previous Maintainer: Laurent Carlier <[email protected]>

pkgname=libxfont
pkgver=1.5.4
pkgrel=1
pkgdesc="X11 font rasterisation library"
arch=('x86_64' 'armv6h')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('freetype2' 'libfontenc' 'xorgproto')
makedepends=('xorg-util-macros' 'xtrans')
source=(${url}/archive/individual/lib/libXfont-${pkgver}.tar.bz2)
#sha256sums=('0e8ab7fd737ccdfe87e1f02b55f221f0bd4503a1c5f28be4ed6a54586bac9c4e'
#            'SKIP')
sha256sums=('1a7f7490774c87f2052d146d1e0e64518d32e6848184a18654e8d0bb57883242')
#validpgpkeys=('C383B778255613DFDB409D91DB221A6900000011') # Keith Packard <[email protected]>
#validpgpkeys+=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # "Adam Jackson <[email protected]>"
#validpgpkeys+=('C41C985FDCF1E5364576638B687393EE37D128F8') # "Matthieu Herrb <[email protected]>"

build() {
  cd "${srcdir}/libXfont-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --disable-static
  make
}

package() {
  cd "${srcdir}/libXfont-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

Run makepkg -si to sync dependencies and to then install the package.

Then you still need to do one thing: Add --disable-xwayland \ to build-xsixel.sh. Compiling should then work by running ./build-xsixel.sh. After that I run sudo make install And was able to run this Xorg server by executing e.g. /usr/local/bin/Xsixel :2 in a SIXEL capable terminal. Applications can be started by adding DISPLAY=:2 before them in this case. E.g. DISPLAY=:2 awesome.

schrmh avatar Jan 15 '22 05:01 schrmh

That helped. It compiled and displayed an output, but I could not give it focus to control the mouse. Neither could I launch mpv there... But still, it's cool to see this working. Thank you very much!

0Karakurt0 avatar May 05 '22 16:05 0Karakurt0

Tho, I won't be closing this issue, so that it would remain visible

0Karakurt0 avatar May 05 '22 17:05 0Karakurt0

wonder how hard ist to backport sixel to modern x11

Kreijstal avatar Sep 04 '24 08:09 Kreijstal