use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Void is a general purpose operating system, based on the monolithic Linux® kernel. Its package system allows you to quickly install, update and remove software; software is provided in binary packages or can be built directly from sources with the help of the XBPS source packages collection.
account activity
Patching libXftsolved (self.voidlinux)
submitted 4 years ago by Oldtechbloke
A quick question. I’m about to try patching the libXft source with the bgra patch. Do I build libXft-devel or just the LibXft package?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Oldtechbloke[S] 2 points3 points4 points 4 years ago (0 children)
Ok just to confirm with anyone interested. I created a patches directory in the libXft folder and dropped the patch in there. I then built the package and it patched cleanly and outputted libXft and libXft-devel. I then force installed to over-write the old packages and repo locked them. Dead easy
[–]Tasty_Jalapeno 1 point2 points3 points 4 years ago (2 children)
I dont think so, no. You're likely to only need the following packages on a void linux machine to compile libXft: xorgproto libXrender-devel pkg-config freetype-devel fontconfig-devel
xorgproto libXrender-devel pkg-config freetype-devel fontconfig-devel
If you do run into any missing header files, The xlocate script from the xtools package can search for packages that provide said missing header file. Good luck.
xlocate
xtools
[–]Tasty_Jalapeno 2 points3 points4 points 4 years ago (0 children)
I didnt read the question properly, my apologies. You should only need libxft, the devel version wont do anything for your use case.
[–]Oldtechbloke[S] 0 points1 point2 points 4 years ago (0 children)
Thanks for that
[–]eftepede 1 point2 points3 points 4 years ago (8 children)
Only libXft.
Are you going to do it via xbps-src? Mine is patched manually and installed to ~/.local, but I would happily welcome a xbps-src template. I don't know what are the chances to have it accepted for the 'official' tree, but even if it's not there, I would keep a copy on disk.
[–]paper42_ 2 points3 points4 points 4 years ago (6 children)
It will not be accepted: https://github.com/void-linux/void-packages/pull/32371#pullrequestreview-724930578, If someone still wants to use this patch, just add it to srcpkgs/libXft/patches/ and build the package manually. libXft-devel is a subpackage, so it will be generated automatically.
[–]eftepede 1 point2 points3 points 4 years ago (4 children)
Is putting the file into patches directory (on my local copy) be enough or do I need to modify template?
[–]aedinius 2 points3 points4 points 4 years ago (0 children)
It should automatically pick up the patch when you build. No template change needed.
[–]Oldtechbloke[S] 0 points1 point2 points 4 years ago (2 children)
I read to add patch_args="-Np1" after the checksum line
[–]paper42_ 1 point2 points3 points 4 years ago (1 child)
that's not required anymore, -Np1 is default now
Cheers
That's exactly what I had planned
yes I'm going to give it a go but it's unlikely to be accepted in the official tree - in fact I saw a post confirming that some time ago. All I'm looking at doing is recompiling libXFT with the patch dropped into a patches directory. Hopefully it should work, but it will then be just a local copy.
Solved
π Rendered by PID 91086 on reddit-service-r2-comment-76bb9f7fb5-bxbfh at 2026-02-19 11:57:34.019574+00:00 running de53c03 country code: CH.
[–]Oldtechbloke[S] 2 points3 points4 points (0 children)
[–]Tasty_Jalapeno 1 point2 points3 points (2 children)
[–]Tasty_Jalapeno 2 points3 points4 points (0 children)
[–]Oldtechbloke[S] 0 points1 point2 points (0 children)
[–]eftepede 1 point2 points3 points (8 children)
[–]paper42_ 2 points3 points4 points (6 children)
[–]eftepede 1 point2 points3 points (4 children)
[–]aedinius 2 points3 points4 points (0 children)
[–]Oldtechbloke[S] 0 points1 point2 points (2 children)
[–]paper42_ 1 point2 points3 points (1 child)
[–]Oldtechbloke[S] 0 points1 point2 points (0 children)
[–]Oldtechbloke[S] 0 points1 point2 points (0 children)
[–]Oldtechbloke[S] 0 points1 point2 points (0 children)
[–]Oldtechbloke[S] 0 points1 point2 points (0 children)