You are not logged in.

#1 2022-07-13 07:42:27

Jocomol
Member
From: Switzerland
Registered: 2022-07-13
Posts: 35
Website

[Solved] libxft-bgra fails after trying to apply patches

I've recently installed Arch for the first time and now wanted to install larbs by luke smith. After the installation dwm should have been started with startx but I was greeted with the message that I should install libxft-bgra-git with yay.

When I tried that, yay asks if it should revert patched but no matter what I give as an answer, the build() function fails afterwards.

Now I would like to ask what exactly is happening, what these yay patches are and what is going wrong and how to resolve that.

Thank you very much smile

Last edited by Jocomol (2022-08-05 08:11:29)

Offline

#2 2022-07-13 08:03:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [Solved] libxft-bgra fails after trying to apply patches

Post the complete output of yay in code tags and test whether you can reproduce by doing it with just makepkg.

Mod note: Moving to AUR issues

FWIW if this is an actual issue with the LARBS installer itself you should ask on their own github page.

Last edited by V1del (2022-07-13 08:04:44)

Offline

#3 2022-07-13 08:33:31

Jocomol
Member
From: Switzerland
Registered: 2022-07-13
Posts: 35
Website

Re: [Solved] libxft-bgra fails after trying to apply patches

V1del wrote:

Post the complete output of yay in code tags

Should I accept or deny the patches to generate the output that is most useful to resolve this?

V1del wrote:

test whether you can reproduce by doing it with just makepkg.

By just cloning the git repo and running makepkg in the root, right?

Offline

#4 2022-07-13 08:55:36

Jocomol
Member
From: Switzerland
Registered: 2022-07-13
Posts: 35
Website

Re: [Solved] libxft-bgra fails after trying to apply patches

I was able to get the output of yay. The output is just the version of then I reply no to all question as this was the only way I could get it with tee and because the always yes version doesn't really give more output.

:: Checking for conflicts...
:: Checking for inner conflicts...
 -> Installing libxft-bgra-git will remove: libxft
[Aur:1]  libxft-bgra-git-2.3.4.r147.42c6616-1

  1 libxft-bgra-git                          (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> :: PKGBUILD up to date, Skipping (1/0): libxft-bgra-git
  1 libxft-bgra-git                          (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> :: (1/1) Parsing SRCINFO: libxft-bgra-git
==> Making package: libxft-bgra-git 2.3.4.r147.42c6616-1 (Fri Jul 15 12:34:23 2022)
==> Retrieving sources...
  -> Updating libxft git repo...
  -> Found 1.patch
==> Validating source files with md5sums...
==> Making package: libxft-bgra-git 2.3.4.r147.42c6616-1 (Fri Jul 15 12:34:24 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating libxft git repo...
  -> Found 1.patch
==> Validating source files with md5sums...
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of libxft git repo...
==> Starting pkgver()...
==> Updated version: libxft-bgra-git 2.3.4.r169.4356b58-1
==> Sources are ready.
==> Making package: libxft-bgra-git 2.3.4.r169.4356b58-1 (Fri Jul 15 12:34:27 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
patching file src/xftfreetype.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file src/xftfreetype.c.rej
patching file src/xftglyphs.c
Hunk #1 succeeded at 69 with fuzz 2 (offset 43 lines).
Hunk #2 FAILED at 80.
Hunk #3 FAILED at 93.
Hunk #4 succeeded at 282 with fuzz 1 (offset 168 lines).
Hunk #5 succeeded at 436 (offset 287 lines).
Hunk #6 succeeded at 641 with fuzz 1 (offset 292 lines).
Hunk #7 succeeded at 741 (offset 292 lines).
Hunk #8 FAILED at 524.
Hunk #9 FAILED at 533.
Hunk #10 succeeded at 848 with fuzz 2 (offset 299 lines).
Hunk #11 FAILED at 601.
Hunk #12 FAILED at 648.
Hunk #13 FAILED at 680.
Hunk #14 FAILED at 774.
Hunk #15 FAILED at 806.
Hunk #16 FAILED at 823.
Hunk #17 FAILED at 846.
Hunk #18 FAILED at 905.
12 out of 18 hunks FAILED -- saving rejects to file src/xftglyphs.c.rej
patching file src/xftint.h
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/xftint.h.rej
patching file src/xftrender.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
12 out of 12 hunks ignored -- saving rejects to file src/xftrender.c.rej
==> ERROR: A failure occured in build().
         Aborting...
   -> error making: libxft-bgra-git

I wasn't able to install it via makepkg as the (hope its the right one) repo doesn't have a PKGBUILD. I think I need further guidance to accomplish this

Offline

#5 2022-07-13 09:31:47

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [Solved] libxft-bgra fails after trying to apply patches

The patch is no longer needed as it has been merged into the upstream git https://gitlab.freedesktop.org/xorg/lib … 2c2e4a7d3a

Please read Arch_User_Repository#Getting_started then use the git clone url from https://aur.archlinux.org/packages/libxft-bgra-git and edit the PKGBUILD to remove the patch.

Offline

#6 2022-07-13 09:37:05

Jocomol
Member
From: Switzerland
Registered: 2022-07-13
Posts: 35
Website

Re: [Solved] libxft-bgra fails after trying to apply patches

loqs wrote:

The patch is no longer needed as it has been merged into the upstream git https://gitlab.freedesktop.org/xorg/lib … 2c2e4a7d3a

I will try this

Just so I understand this correctly: The problem is that a patch which is not yet implemented into the AUR Package has to be applied and if I want to install this I have to install it with a workaround?

If not, could you kindly explain what the issue is, I am trying to use this as an opportunity to learn and I guess having this documented also wouldn't hurt

Thank you very much

Offline

#7 2022-07-13 11:44:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,840

Re: [Solved] libxft-bgra fails after trying to apply patches

Jocomol wrote:

Just so I understand this correctly: The problem is that a patch which is not yet implemented into the AUR Package has to be applied and if I want to install this I have to install it with a workaround?

The PKGBUILD needs adjustments, to understand why reread the first sentence of loqs post {quoted below for clarity).

loqs wrote:

The patch is no longer needed as it has been merged into the upstream git https://gitlab.freedesktop.org/xorg/lib … 2c2e4a7d3a

Last edited by Lone_Wolf (2022-07-13 11:45:31)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB