You are not logged in.

#1 2014-11-25 19:35:47

Wind
Member
Registered: 2014-11-25
Posts: 17

DWM-6.0 error applying patches

I just got a fresh install of dwm-6.0 and changed around some stuff in config.h until I fell dissatisfied with the font, so wanted to get the pango patch to use TTF. I download the pango patch from suckless and follow the instructions to patch it, and when I 'make clean install', it says "compilation terminated" or something like that, and says a bunch of errors. When I use patch -R to remove it, and 'make clean install' again, it works. How do I go about installing patches?

Offline

#2 2014-11-25 19:37:32

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: DWM-6.0 error applying patches

It depends on the patch.

Offline

#3 2014-11-25 19:38:58

Wind
Member
Registered: 2014-11-25
Posts: 17

Re: DWM-6.0 error applying patches

Stefan Husmann wrote:

It depends on the patch.

So can I not install pango? That's the one I really want so I can actually use True Type Fonts and such.

Offline

#4 2014-11-25 19:46:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: DWM-6.0 error applying patches


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-11-25 19:50:53

Wind
Member
Registered: 2014-11-25
Posts: 17

Re: DWM-6.0 error applying patches

jasonwryan wrote:
 root@Ayanami:/usr/local/src/dwm-6.0# sudo make clean install
cleaning
dwm build options:
Package xft was not found in the pkg-config search path.
Perhaps you should add the directory containing `xft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xft' found
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pango' found
Package pangoxft was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoxft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangoxft' found
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include  -DVERSION="6.0" -DXINERAMA
Package xft was not found in the pkg-config search path.
Perhaps you should add the directory containing `xft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xft' found
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pango' found
Package pangoxft was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoxft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangoxft' found
LDFLAGS  = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama 
CC       = cc
CC dwm.c
Package xft was not found in the pkg-config search path.
Perhaps you should add the directory containing `xft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xft' found
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pango' found
Package pangoxft was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoxft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangoxft' found
dwm.c:39:25: fatal error: X11/Xft/Xft.h: No such file or directory
 #include <X11/Xft/Xft.h>
                         ^
compilation terminated.
make: *** [dwm.o] Error 1 

this is what comes up after installing the patch

Offline

#6 2014-11-25 19:56:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: DWM-6.0 error applying patches

Please post details of how you are attempting to apply the patch.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-11-25 19:56:53

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: DWM-6.0 error applying patches

Use "pkgfile" to find what packages contain xft.pc and pangoxft.pc. I get libxft and pango. Do you have those packages installed?

Last edited by 2ManyDogs (2014-11-25 19:58:37)

Offline

#8 2014-11-25 19:59:20

Wind
Member
Registered: 2014-11-25
Posts: 17

Re: DWM-6.0 error applying patches

jasonwryan wrote:

Please post details of how you are attempting to apply the patch.

I download the patch to ~/Downloads/
then,

 cd /usr/local/src/dwm-6.0/ 
 patch -p1 < ~/Downloads/dwm-6.0-pango.diff 

it works its magic
then

 sudo make clean install 

and that error pops up

I could use git but this method gives me a little more detail

Offline

Board footer

Powered by FluxBB