View previous topic :: View next topic |
Author |
Message |
cien n00b
Joined: 05 Dec 2024 Posts: 3
|
Posted: Sat Dec 07, 2024 1:54 pm Post subject: Failed to patch dwm |
|
|
I tried to patch dwm following the instructions on the wiki, but failed.
Here are the details.
Code: | >>> Emerging (1 of 1) x11-wm/dwm-6.5::gentoo
* dwm-6.5.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking dwm-6.5.tar.gz to /var/tmp/portage/x11-wm/dwm-6.5/work
>>> Source unpacked in /var/tmp/portage/x11-wm/dwm-6.5/work
>>> Preparing source in /var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5 ...
* =============================================================================
* Applying user patches from /etc/portage/patches ...
* Applying 01-dwm-alpha-20230401-348f655.diff ... [ ok ]
* User patches applied.
* =============================================================================
* Checking existence of "/etc/portage/savedconfig/x11-wm/dwm-6.5" ...
* Found "/etc/portage/savedconfig/x11-wm/dwm-6.5"
* Building using saved configfile "/etc/portage/savedconfig/x11-wm/dwm-6.5"
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5 ...
make -j4 CC=x86_64-pc-linux-gnu-gcc XINERAMAFLAGS= XINERAMALIBS= dwm
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -std=c99 -pedantic -Wall -Wno-deprecated-declarations -I/usr/include/X11 -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"6.5\" util.c
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -std=c99 -pedantic -Wall -Wno-deprecated-declarations -I/usr/include/X11 -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"6.5\" dwm.c
dwm.c: In function ‘setup’:
dwm.c:1597:60: error: ‘alphas’ undeclared (first use in this function)
1597 | scheme[i] = drw_scm_create(drw, colors[i], alphas[i], 3);
| ^~~~~~
dwm.c:1597:60: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:12: dwm.o] Error 1
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -std=c99 -pedantic -Wall -Wno-deprecated-declarations -I/usr/include/X11 -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"6.5\" drw.c
* ERROR: x11-wm/dwm-6.5::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-wm/dwm-6.5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-wm/dwm-6.5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-wm/dwm-6.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-wm/dwm-6.5/temp/environment'.
* Working directory: '/var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5'
* S: '/var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5'
>>> Failed to emerge x11-wm/dwm-6.5, Log file:
>>> '/var/tmp/portage/x11-wm/dwm-6.5/temp/build.log'
* Messages for package x11-wm/dwm-6.5:
* Building using saved configfile "/etc/portage/savedconfig/x11-wm/dwm-6.5"
* ERROR: x11-wm/dwm-6.5::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-wm/dwm-6.5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-wm/dwm-6.5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-wm/dwm-6.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-wm/dwm-6.5/temp/environment'.
* Working directory: '/var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5'
* S: '/var/tmp/portage/x11-wm/dwm-6.5/work/dwm-6.5' |
Code: | cien@gentoo /etc/portage/patches/x11-wm/dwm $ ls
01-dwm-alpha-20230401-348f655.diff
cien@gentoo /etc/portage/patches/x11-wm/dwm $ |
Code: | cien@gentoo /etc/portage/savedconfig/x11-wm $ ls
dwm-6.5 dwm-6.5.h
cien@gentoo /etc/portage/savedconfig/x11-wm $
|
This patch was downloaded from the following website.
https://dwm.suckless.org/patches/alpha/
I'm new to gentoo.Could someone tell me how to solve it?I will provide more information if needed. |
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 396
|
Posted: Sat Dec 07, 2024 2:04 pm Post subject: |
|
|
Looks like the patch was not updated for the 6.5 release of dwm.
If you want to get it working, you will have to update the patch yourself, manually.
If you do decide to do that and succeed, read the suckless hacking guidelines on how to submit the patch. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|