How to add a patch ? [SOLVED]

I'm trying to add a patch for a broken gdesklets.
I filed a bug report, and was asked to "apply the attached patch to /usr/lib/gdesklets and try running it again"
I've never applied a patch, and there is no /usr/lib/gdesklets file, but it's a directory.
See: https://bugs.launchpad.net/gdesklets/+bug/403774
I want to try the patch, but really don't know how to procede.
Last edited by jeff story (2009-07-24 05:19:06)

jeff story wrote:
I'm trying to add a patch for a broken gdesklets.
I filed a bug report, and was asked to "apply the attached patch to /usr/lib/gdesklets and try running it again"
I've never applied a patch, and there is no /usr/lib/gdesklets file, but it's a directory.
See: https://bugs.launchpad.net/gdesklets/+bug/403774
I want to try the patch, but really don't know how to procede.
patch < /path/to/file
For more info.

Similar Messages

  • How to add Stardict dictionary [Solved]

    Stardict came with Chinese dictionary. I wanted to install more dictionaries in other languages. So, I have downloaded some dictionaries from http://reciteword.cosoft.org.cn/stardic … rdict-dic/
    I unzip the file and got .dict.dz file. And I made ~/.stardict/dic directory and moved dictionary directory to ~/.stardict/dic. However I could not find the dictionaries in Stardict > Manage Dictionaries > Manage Dict. I also try to /usr/share/stardict/dic directory. It didn't work either. Anyone knows how to add more dictionaries to Stardict?
    Last edited by since1992 (2010-09-28 11:31:01)

    I figure it out myself. The downloaded a dictionary had problems. When I extract the file, there were not .idx and .ifo files. There was only .dict.dz file. That's why Stardict could not detect dictionary automatically. I spent about 5 hours until I realized that I needed .idx and .ifo files with .dict.dz. I hope no one get this trouble like me. Thank you.
    Last edited by since1992 (2010-09-28 11:30:40)

  • How can I add a patch to an existing package?

    I really want to add a patch to Archlinux klibc package.
    http://git.debian.org/?p=kernel/klibc.g … 571d2c979d
    http://repos.archlinux.org/viewvc.cgi/k … core-i686/
    But the more I read about contributing, the more confusing it gets. Wiki first page would take me to AUR, but it looks like AUR is only for adding new packages. So I find out about ABS which is for creating a custom package, but what steps to take to get the changed package to replace the existing? And should I actually be doing it this way? Maybe there are tools to introduce git patches automatically? I really don't understand...
    I realize this is a newbie problem, but the wiki organization is confusing to me, so if anyone would provide links to answer my questions I'd be very happy.

    edgg wrote:what steps to take to get the changed package to replace the existing? And should I actually be doing it this way?
    ABS is exactly how you want to do this.
    * install and run abs as described in the wiki page
    * copy the files in /var/abs/core/klibc to your build directory (I have a builds directory in my home directory)
    * edit the PKGBUILD to add your patch (man PKGBUILD will help here)
    * make the package with makepkg (there is a wiki page for makepkg)
    * use pacman to install it:  pacman -U klibc-blahblah.pkg.tar.gz
    The process is shockingly easy.  And the great thing is that, since you've installed the package with pacman, you can use pacman to remove it if you change your mind.  There is also a way to keep pacman from upgrading it when you do pacman -Syu (see pacman.conf).
    The process is also described here:  http://wiki.archlinux.org/index.php/ABS … he_ABS_way

  • How to add docentry with some num.?can you solve below query   Declare @a as Numeric SET @a=14900000; SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    how to add docentry with some num.?
    can you solve below query
    Declare @a as Numeric
    SET @a=14900000;
    SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    Hi,
    Yes possible.
    Try this:
    Declare @a as INT
    SET @a=14900000;
    SELECT (@a+($[ORDR.DocEntry]))
    Thanks & Regards,
    Nagarajan

  • [SOLVED] How to add modules to build with the kernel?

    Hello i´m trying to learn how to build my own custom kernel and doing it the arch way https://wiki.archlinux.org/index.php/Ke … raditional. But unfortunately dm-crypt was not included in the kernel so it all failed.
    svart_alg% sudo mkinitcpio -k 3.15.6 -c /etc/mkinitcpio.conf -g /boot/initramfs-test.img
    ==> Starting build: 3.15.6
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [lvm2]
    ==> ERROR: module not found: ‘dm-snapshot’
    -> Running build hook: [encrypt]
    ==> ERROR: module not found: ‘dm-crypt’
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    ==> WARNING: No modules were added to the image. This is probably not what you want.
    ==> Creating gzip initcpio image: /boot/initramfs-test.img
    ==> WARNING: errors were encountered during the build. The image may not be complete.
    I have never don any of this before and have no idea of how to add a missing module to the kernel i´m building. So i search on internet and had a very hard time finding a good guide for this but i fond one possible solution. https://www.kernel.org/doc/Documentatio … odules.txt
    svart_alg% make -C /home/nigro_alko/Kernel/linux-3.15.6 M=/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in
    make: Entering directory ‘/home/nigro_alko/Kernel/linux-3.15.6‘
    mkdir: cannot create directory ‘/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in’: Not a directory
    scripts/Makefile.build:44: /home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in/Makefile: Not a directory
    make[1]: *** No rule to make target ‘/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in/Makefile’. Stop.
    Makefile:1310: recipe for target ‘_module_/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in’ failed
    make: *** [_module_/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in] Error 2
    make: Leaving directory ‘/home/nigro_alko/Kernel/linux-3.15.6‘
    So is there any one that have time to help a lost little newbie i would bee very happy  :-)
    Last edited by Moosey_Linux (2014-07-29 15:00:40)

    karol wrote:Why do you want a custom kernel in the first place?
    Moosey_Linux wrote:i´m trying to learn how to build my own custom kernel
    Reason enough IMO. But anyway... you refer to the Traditional build method in the wiki, but is it possible you didn't really read it? Or maybe you only skimmed it? Did you run make menuconfig? Did you try to build everything in instead of using modules? That mkinitcpio output suggests that you did.
    As suggested there for first-timers, it's a good idea to start with a kernel configuration that is known to work - the Arch config is the obvious choice, but there are other sources e.g. http://kernel-seeds.org/ .

  • [SOLVED]How to add multiple gateways in Arch

    Hi, can someone please advise how to add multiple gateway address for multiple interfaces.
    In my case I have two wired LAN cards. I use Arch network daemon to manage my NIC's.
    I know in Gentoo it could be done through : 'gateway_ethX=( "default gw xx.xx.xx.xx dev ethX" )'
    but doing so in arch wont connect to router/gateway.
    Also in rc.conf it says :
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    #   - prefix an entry in ROUTES with a ! to disable it
    How to declare each route, and then how to list it in ROUTES?
    I read the following thread:
    http://bbs.archlinux.org/viewtopic.php?id=52992, but after adding the suggested lines in rc.conf and restarting the network it fails and says hostname not found.
    Thanks.
    Last edited by kapz (2009-10-08 18:53:39)

    In that case, your routing table should look something like this:
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
    rc.conf:
    eth0="eth0 192.168.1.14 netmask 255.255.255.0 broadcast 192.168.1.255"
    eth1="eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
    INTERFACES=(eth0 eth1)
    # You may need to add 'dev eth1' to the end of this after '.1.1'
    gateway="default gw 192.168.1.1"
    ROUTES=(gateway)
    Last edited by fukawi2 (2009-10-06 21:55:49)

  • How to add patch in Oracle Payable under Linux

    Hi All
    I want to know how to apply a patch in Oracle under Linux environment. The problem is that I'm a Newbie in Oracle and i'm not a DBA and also i have little knowledge in Linux environment.
    Apps: 11.5.9
    OS: Linux x86
    Patch : 7309767
    Thanks
    Edited by: 883454 on Sep 6, 2011 5:07 PM

    Wrong category forum.

  • [SOLVED] DWM - how do you apply patches with patch?

    I'm totally new to dwm (it's working great by the way) and patching. I'm having problems understanding how to use the patch program. The basic usage on dwm site says basically:
    patch -p1 < path/to/patch.diff
    Great, now I have the patch file ~/builds/dwn/patch/dwm-5.9-statuscolors.diff and my altered ~/builds/dwn/config.h. Here's what I did
    herman@sam ~/builds/dwm $ patch -p1 <patch/dwm-5.9-statuscolors.diff
    can't find file to patch at input line 4
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -up dwm-5.9/config.def.h dwm-5.9-colors/config.def.h
    |--- dwm-5.9/config.def.h 2011-07-10 16:24:25.000000000 -0400
    |+++ dwm-5.9-colors/config.def.h 2011-08-18 02:02:47.033830823 -0400
    File to patch: config.def.h
    config.def.h: No such file or directory
    Skip this patch? [y]
    Skipping patch.
    2 out of 2 hunks ignored
    can't find file to patch at input line 41
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |Only in dwm-5.9: config.h
    |Only in dwm-5.9: dwm
    |diff -up dwm-5.9/dwm.c dwm-5.9-colors/dwm.c
    |--- dwm-5.9/dwm.c 2011-07-10 16:24:25.000000000 -0400
    |+++ dwm-5.9-colors/dwm.c 2011-08-18 02:07:20.788935100 -0400
    File to patch: dwm.c
    dwm.c: No such file or directory
    Skip this patch? [y]
    Skipping patch.
    12 out of 12 hunks ignored
    and it asks me for the filename it didn't find at line 4. Looking at the patch, I see it's a diff on config.def.h so I suppose this is the file to be patched and that I should supply this filename and the same with dwm.c? I'm not new to C coding but fresh out when it comes to diffing and patching, how do I actually go forward from here?
    Edit:
    More info  - I used the description using ABS to download the PKGBUILD for dwm and making dwm. My files
    herman@sam ~/builds/dwm $ ls -R
    PKGBUILD config.h dwm-5.9-2-x86_64.pkg.tar.xz dwm-5.9.tar.gz dwm.desktop dwm.install patch pkg src
    ./patch:
    dwm-5.9-statuscolors.diff
    ./pkg:
    usr
    ./pkg/usr:
    bin share
    ./pkg/usr/bin:
    dwm
    ./pkg/usr/share:
    doc licenses man xsessions
    ./pkg/usr/share/doc:
    dwm
    ./pkg/usr/share/doc/dwm:
    README
    ./pkg/usr/share/licenses:
    dwm
    ./pkg/usr/share/licenses/dwm:
    LICENSE
    ./pkg/usr/share/man:
    man1
    ./pkg/usr/share/man/man1:
    dwm.1.gz
    ./pkg/usr/share/xsessions:
    dwm.desktop
    ./src:
    config.h dwm-5.9 dwm-5.9.tar.gz dwm.desktop
    ./src/dwm-5.9:
    LICENSE Makefile README config.def.h config.def.h.orig config.def.h.rej config.h config.mk dwm dwm.1 dwm.c dwm.o
    Last edited by roygbiv (2011-12-06 20:37:40)

    Ok thanks but I'm confused again (I know..). I managed to patch the files config.def.h and dwm.c in the source dir and noticed there is yet another config.h file there as well. Now, the in the top level dir with the PKGBUILD I also have a config.h, which is the one I do my config changes. I'm confused because I now have these three header files (2x config.h + config.def.h) which are supposed to have the same source code? I've read around on the net, but haven't gotten any further answers yet. What are the purpose of each config and how should I use/update/manage them when recompiling? This is my situation:
    herman@sam ~/build/dwm $ tree .
    ├── PKGBUILD
    ├── config.h <----------------------------------------------------- this one
    ├── dwm-5.9-2-x86_64.pkg.tar.xz
    ├── dwm-5.9.tar.gz
    ├── dwm.desktop
    ├── dwm.install
    ├── pkg
    │   └── usr
    │   ├── bin
    │   │   └── dwm
    │   └── share
    │   ├── doc
    │   │   └── dwm
    │   │   └── README
    │   ├── licenses
    │   │   └── dwm
    │   │   └── LICENSE
    │   ├── man
    │   │   └── man1
    │   │   └── dwm.1.gz
    │   └── xsessions
    │   └── dwm.desktop
    └── src
    ├── config.h -> /home/herman/build/dwm/config.h
    ├── dwm-5.9
    │   ├── LICENSE
    │   ├── Makefile
    │   ├── README
    │   ├── config.def.h <-----------------------------------------------------this one
    │   ├── config.def.h.orig
    │   ├── config.h <----------------------------------------------------------this one
    │   ├── config.mk
    │   ├── dwm
    │   ├── dwm-5.9-statuscolors.diff
    │   ├── dwm.1
    │   ├── dwm.c
    │   ├── dwm.c.orig
    │   └── dwm.o
    ├── dwm-5.9.tar.gz -> /home/herman/build/dwm/dwm-5.9.tar.gz
    └── dwm.desktop -> /home/herman/build/dwm/dwm.desktop
    Thanks guys!
    Last edited by roygbiv (2011-12-06 20:06:10)

  • How to add KDE applications in KDE_base --SOLVED--

    Hi,
    I installed Archlinux base 0.7.2, xorg, KDE base 3.5
    There is less in KDE base than I thought. ( no filemanger, no tools, no terminal )  In fact it is an empty dektop with a few icons even without applications linked to these icons.
    I installed a few more KDE packages with pacman, but these are
    not added in the KDE menu. How can I fix this ?

    Linteg wrote:
    I guess you didn't log out and log in again after installing KDE? If you do, your $PATH var gets updated, and /opt/kde/bin is added, then you will be able to start the kde apps by just typing their names.
    Thanks Linteg, fixed the PATH this is ok now.
    I have a few "working" icons on my desk now, Konsole, Kwrite, Firefox but I don' t find find how to add these
    applications to the KDE menu.

  • Has anyone encountered drastic shorter battery life both on iphone 5 and ipad since updating to iOS 6.1.2? How can this problem be solved?

    Dear all,
    I am new to this community even though I have been a Apple user for years, so please forgive me if this question is not in the right section.
    Has anyone encountered drastic shorter battery life both on iphone 5 and ipad since updating to iOS 6.1.2? I've always been happy with these two products until the update - now the battery life is considerably shorter which is extremely frustrating.
    How can this problem be solved? Is there any way to go back to the previous version?
    Thanks for your help.

    If you update using iTunes the phone is first wiped clean, then the new OS is installed, and finally the backup is restored. After this finishes if you sync your music should be restored. Music is not in the backup, because it is already on your computer and duplicating it would use up a lot of hard disk space.
    An OTA update just patches what has changed; it does not disturb content.

  • How to Add parameter fields in BI publisher fields

    Hi,
    I'm creating xml report for Apps standard Trial Balance Summary, here i cant able to run the .rdf locally due to SRW.UserExit .
    So i got the XML file from output of the report.
    Then i added the xml data in BI publisher and then i have created the .rtf for that.
    Here i need to add some fields which is not available in fields list (in BI Publisher).
    How to add that fields, or is possible to add fields manually.
    That fields are given as parameters while running the .rdf file.
    Please tell me how to solve this problem.
    Is possible to add fields manually means tell me how to do that.

    If those fields are input parameters to the concurrent program then you can display them in RTF by declaring and printing it as
    <?param@begin:P_CONC_PARAM?>
    and display it as <?$P_CONC_PARAM?> - Note P_CONC_PARAM should match your parameter token

  • How to add the date field in the dso and info cube

    Hi all.
    I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
    Thanks & Regard
    KK

    my prob is solved
    KK

  • How  to add custom fields to the  sap standard  program ukm_bp_display

    How  to add new custom  fields to the  sap standard  program ukm_bp_display .
    could u  please any one help me on this?

    Hello Kumar,
    You have to modify below structure, as this structure is providing the field catalog for output display (ALV).
    Here you can see there are a lot of include structures, so if you want to add fields in the output display you can add those fileds as an append structure to any of the below mentioned structures (Like ukm_s_account, ukm_s_bp_cms_sgm etc as per your requiremnt and positon at which you need to dispaly your fields.)
    DATA: BEGIN OF gt_grid_alv OCCURS 0.
           partner LIKE but000-partner,
           credit_sgmnt LIKE ukmbp_cms_sgm-credit_sgmnt.
            INCLUDE STRUCTURE ukm_s_account.
            INCLUDE STRUCTURE ukm_s_bp_cms_sgm.
    DATA:   credit_sgmnt_txt LIKE ukmcred_sgm0t-credit_sgmnt_txt.
          Gruppe Vector
            INCLUDE STRUCTURE ukm_s_bp_vector.
          Gruppe OBL = Obligo
          include structure UKM_S_BP_CMS_MALUSDSP_OUT.
            INCLUDE STRUCTURE ukm_s_display_segment.
            INCLUDE STRUCTURE ukm_s_bp_cms.
            INCLUDE STRUCTURE bus000_dat.
    *DATA:   icon(4).
          Gruppe RAST (Raster)
    DATA:
             rast01 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast02 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast03 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast04 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast05 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast06 LIKE ukm_s_display_segment-AMOUNT_GRID.
    DATA:    rast2_6 LIKE ukm_s_display_segment-AMOUNT_GRID.
    "Summe raster 2 bis 6
    DATA:  END OF gt_grid_alv.
    Another way is you can  go  to SE38, and you can create implicit enhancements.One enhancement point is available here in this required area. so create an implementation and add your fileds with data types.This way is also simple.
    Hope this will solve yiour problems.
    Regards,
    Antony Thomas

  • How to add Excise item with out chapter id

    Dear all,
    How to add Excise item with out chapter id?
    Chapter id of purchae items will be known only after receiving Invoice/gate pass/delivery  chalan from supplier/vendor
    To send a purchase order we need to create that particular item in the master, but with out assigning chapter id system is  not allowing to save without chapter id.
    How to solve this?
    I am with SAP 8.8 and PL 10
    Thanks in advance
    regards,
    Kumar

    Hi Kumar,
    Refer the book of chapter ID or find out on internet you will get the chapter ID.
    Still if you not able to get  the chapter id then consult with excise advisory.
    But you can add Excise PO until you have the excise details in Item master.
    Regards,
    Datta Kharat

  • How to add internal table fileds in Text module in smart forms

    Hi Friends,
        How to add internal table fileds in Text module in smart forms?
    Thanks & Regards,
    Vallamuthu.M

    Hi Vallamuthu ,
    how did you solve your problem?
    thanks,

Maybe you are looking for

  • Making A Field Editable In MIRO Transaction

    Hi All, In MIRO transaction, when you enter details for Brazil, the NOTA FISCAL tab gets displayed on the Menu Bar. On clicking the NOTA Fiscal Tab, the control goes to the screen where it says "Create NOTA Fiscal Incoming". In The Item Overview Scre

  • Windows will not open an indesign or pdf on my computer

    Something has corrupted every single pdf and indd file on my computer. I am the lead designer for a company. I need access to these files. I have sent files to other computer and they cannot be opened. I have received new pdfs and they will open. Som

  • I have a MacBook Pro, CS5 photoshop extended

    I have installed the photoshop CS5 extended on 1 laptop, and want to download it again to my 2nd laptop.  It says it can go on 2, if owned by the same person - which is does. When I put it into the CD slot on MacBook Pro - it pops out?  Its also does

  • FTP problem solved by Firmware update

    When i bought my Airport Extreme in september i was really disappointed: *no ftp connections!* i tried everything, and then discovered (here in discussion) it was a bug in the firmware of the base station. I solved the problem putting an old pc lapto

  • Webservice for EJB DC

    I'm trying to create a webservice for an EJB with the Webservice Creation Wizard of NDS. While this is no problem for an "old fashioned" EJB, it does not seem to work for an EJB DC. The context menu "New -> Virtual Interface / Webservice" appears, ju