Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile #2

Open
0Karakurt0 opened this issue Nov 5, 2021 · 4 comments
Open

Does not compile #2

0Karakurt0 opened this issue Nov 5, 2021 · 4 comments

Comments

@0Karakurt0
Copy link

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

@schrmh
Copy link

schrmh commented Jan 15, 2022

@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.

@0Karakurt0
Copy link
Author

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
Copy link
Author

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

@Kreijstal
Copy link

wonder how hard ist to backport sixel to modern x11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants