View previous topic :: View next topic |
Author |
Message |
NotQuiteSane Guru
Joined: 30 Jan 2005 Posts: 488 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Sat Sep 15, 2012 7:34 am Post subject: dwm ebuild (not?) using patches |
|
|
So in the past i've built dwm by hand, but I'm trying to (only) use portage. I installed patches as per instructions
patches:
//etc/portage/patches/x11-wm/dwm: | tablet dwm # pwd
/etc/portage/patches/x11-wm/dwm
tablet dwm # ls
dwm-6.0-pertag.diff dwm-6.0-systray.diff
tablet dwm # |
compile part of emerge:
Code: | >> Emerging (1 of 1) x11-wm/dwm-6.0
* dwm-6.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking dwm-6.0.tar.gz to /var/tmp/portage/x11-wm/dwm-6.0/work
>>> Source unpacked in /var/tmp/portage/x11-wm/dwm-6.0/work
>>> Preparing source in /var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0 ...
* Checking existence of //etc/portage/savedconfig//x11-wm/dwm-6.0 ...
* found //etc/portage/savedconfig//x11-wm/dwm-6.0
* Building using saved configfile //etc/portage/savedconfig//x11-wm/dwm-6.0
* Applying user patches from /etc/portage/patches//x11-wm/dwm ...
* Done with patching
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0 ...
make -j3 CC=x86_64-pc-linux-gnu-gcc XINERAMAFLAGS= XINERAMALIBS=
dwm build options:
CC dwm.c
CFLAGS = -march=native -O2 -pipe -std=c99 -pedantic -Wall -I. -I/usr/include/X11 -DVERSION="6.0"
LDFLAGS = -Wl,-O1 -Wl,--as-needed -lc -L/usr/lib -lX11
CC = x86_64-pc-linux-gnu-gcc
dwm.c: In function 'keypress':
dwm.c:1087:2: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1695)
CC -o dwm
>>> Source compiled.
>>> Test phase [not enabled]: x11-wm/dwm-6.0 |
dwm installs fine. and the above says it's going into /etc/portage/patches//x11-wm/dwm. but I don't see it list the individual patches, so i'm unsure if it's actually applying the patches.
am I doing something wrong with applying the patches, and if so, what do I need to change?
NQS _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sat Sep 15, 2012 3:21 pm Post subject: |
|
|
Check the permissions on the relevant directories. If you created them with permissions that prevent the portage user from reading the directories, this can happen. Also, it looks like epatch_user requires the patches to end in .patch, not .diff. |
|
Back to top |
|
|
NotQuiteSane Guru
Joined: 30 Jan 2005 Posts: 488 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Sun Sep 16, 2012 2:58 am Post subject: |
|
|
changed to end in .patch and both seem to patch, but when i run emerge, i see:
Code: | >>> Emerging (1 of 1) x11-wm/dwm-6.0
* dwm-6.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking dwm-6.0.tar.gz to /var/tmp/portage/x11-wm/dwm-6.0/work
>>> Source unpacked in /var/tmp/portage/x11-wm/dwm-6.0/work
>>> Preparing source in /var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0 ...
* Checking existence of //etc/portage/savedconfig//x11-wm/dwm-6.0 ...
* found //etc/portage/savedconfig//x11-wm/dwm-6.0
* Building using saved configfile //etc/portage/savedconfig//x11-wm/dwm-6.0
* Applying user patches from /etc/portage/patches//x11-wm/dwm ...
* dwm-6.0-pertag.patch ... [ ok ]
* dwm-6.0-systray.patch ... [ ok ]
* Done with patching
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0 ...
make -j3 CC=x86_64-pc-linux-gnu-gcc XINERAMAFLAGS= XINERAMALIBS=
dwm build options:
CC dwm.c
CFLAGS = -march=native -O2 -pipe -std=c99 -pedantic -Wall -I. -I/usr/include/X11 -DVERSION="6.0"
LDFLAGS = -Wl,-O1 -Wl,--as-needed -lc -L/usr/lib -lX11
CC = x86_64-pc-linux-gnu-gcc
dwm.c: In function 'cleanup':
dwm.c:547:5: error: 'showsystray' undeclared (first use in this function)
dwm.c:547:5: note: each undeclared identifier is reported only once for each function it appears in
dwm.c: In function 'clientmessage':
dwm.c:590:5: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'drawbar':
dwm.c:862:6: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'getsystraywidth':
dwm.c:1096:5: error: 'showsystray' undeclared (first use in this function)
dwm.c:1097:42: error: 'systrayspacing' undeclared (first use in this function)
dwm.c:1097:56: warning: left-hand operand of comma expression has no effect
dwm.c: In function 'keypress':
dwm.c:1223:2: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1695)
dwm.c: In function 'removesystrayicon':
dwm.c:1500:6: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'resizebarwin':
dwm.c:1518:5: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'togglebar':
dwm.c:1941:5: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'updatebars':
dwm.c:2075:6: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'updatesystrayiconstate':
dwm.c:2287:6: error: 'showsystray' undeclared (first use in this function)
dwm.c: In function 'updatesystray':
dwm.c:2316:6: error: 'showsystray' undeclared (first use in this function)
dwm.c:2346:8: error: 'systrayspacing' undeclared (first use in this function)
dwm.c: In function 'wintosystrayicon':
dwm.c:2454:6: error: 'showsystray' undeclared (first use in this function)
make: *** [dwm.o] Error 1
* ERROR: x11-wm/dwm-6.0 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-wm/dwm-6.0'`,
* the complete build log and the output of `emerge -pqv '=x11-wm/dwm-6.0'`.
* The complete build log is located at '/var/tmp/portage/x11-wm/dwm-6.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-wm/dwm-6.0/temp/environment'.
* Working directory: '/var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0'
* S: '/var/tmp/portage/x11-wm/dwm-6.0/work/dwm-6.0'
>>> Failed to emerge x11-wm/dwm-6.0, Log file: |
if i try just systray I get essentially same error. pertag alone does compile clean.
google search indicates this problem may be due to patch author patching a patched version of dwm. doing the google thing now looking for best solution. _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sun Sep 16, 2012 3:44 am Post subject: |
|
|
Yes, your new problem is that the patch you found does not produce a valid program. However, it appears that Portage applied it successfully. |
|
Back to top |
|
|
NotQuiteSane Guru
Joined: 30 Jan 2005 Posts: 488 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Mon Sep 17, 2012 3:26 am Post subject: |
|
|
Well, I succeeded in pulling in dwm and dwm-clean-patches.
dwm patches and compiles clean, i'm using it right now. I'm reading several sources, including this,this, and here
my problem, and i may need to divert into mercurial manuals to solve it, is how do I get mercurial to always pull inmost current patch? dwm-clean-patches offers (currently) 5 pathc sets (not sure correct termanology) under '6.0' and one under '5.2'.
NQS _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
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
|
|