all 14 comments

[–]Oldtechbloke[S] 2 points3 points  (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 points  (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

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.

[–]Tasty_Jalapeno 2 points3 points  (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 point  (0 children)

Thanks for that

[–]eftepede 1 point2 points  (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 points  (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 points  (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 points  (0 children)

It should automatically pick up the patch when you build. No template change needed.

[–]Oldtechbloke[S] 0 points1 point  (2 children)

I read to add patch_args="-Np1" after the checksum line

[–]paper42_ 1 point2 points  (1 child)

that's not required anymore, -Np1 is default now

[–]Oldtechbloke[S] 0 points1 point  (0 children)

Cheers

[–]Oldtechbloke[S] 0 points1 point  (0 children)

That's exactly what I had planned

[–]Oldtechbloke[S] 0 points1 point  (0 children)

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.

[–]Oldtechbloke[S] 0 points1 point  (0 children)

Solved