Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[dwm] Patching dwm source code

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Annagul
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Sun Dec 05, 2004 6:50 pm
Location: San Fernando, Cádiz (Spain)

[dwm] Patching dwm source code

  • Quote

Post by Annagul » Tue Nov 01, 2011 4:51 pm

DWM users,

I want to apply the "pertag" patch to dwm.c file (and other patches), but I'm wondering if there is any way to do it like "config.h-and-savedconfig-USE", I mean, apply the patch and emerge dwm.

I know I can use mercurial and manage dwn sources myself, but I prefer that Portage handle all installed software in my box.

Thank you for your time.
Sapere aude
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Nov 01, 2011 5:58 pm

Annagul,

Maybe. It may not be in your version of portage yet and it may need a later EAPI than the ebuild uses.

Make the dir /etc/portage/paches/<catagory>/<package> just as you would find in the portage tree.
Drop your patches in there with file names ending in .diff or .patch

If all is well, your patches will be applied. To can do versioning too, so that a patch is applied to some versions only.
At the end the source prepare you should see something like :-

Code: Select all

 * Applying user patches from /etc/portage/patches//media-tv/xbmc ...
 *   xbmc-9999-headers.patch ...
 *   xbmc-9999-libpng-1.5.patch ...
Thats an example for xbmc.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Annagul
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Sun Dec 05, 2004 6:50 pm
Location: San Fernando, Cádiz (Spain)

  • Quote

Post by Annagul » Wed Nov 02, 2011 8:26 pm

Thank you for your answer, NeddySeagoon.

dwm ebuild uses EAPI 4, but I think it doesn't use the epatch_user() function defined in eutils eclass.

I'm going to investigate further and see what I can do.
Sapere aude
Top
Loko123
Tux's lil' helper
Tux's lil' helper
Posts: 91
Joined: Sat Feb 05, 2011 7:05 pm

  • Quote

Post by Loko123 » Tue Nov 15, 2011 8:15 am

Is the 'possible' solution of NeddySeagoon working with current dwm? I would like to apply some patches (e.g. fibonacci, pertag,...) but I dont know how to apply them.

Any help would be appreciated! :-)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Nov 15, 2011 7:12 pm

Loko123,

Did you try it ?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
tclover
Guru
Guru
Posts: 516
Joined: Sun Apr 10, 2011 11:41 pm

The other way around...

  • Quote

Post by tclover » Tue Nov 15, 2011 7:22 pm

force applying your patch with something like:

Code: Select all

post_src_unpack() {
        cd "${S}"
        epatch_user
}
If it still doesn't work, you'll have to add epatch_user to the ebuilds src_prepare() manually in your local overlay.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic