[SOLVED] Patch For Openbox In Repos Needed

I just experienced a crash in openbox due to java. This fix works (scroll to last reply):
https://bbs.archlinux.org/viewtopic.php?id=130654
I just realized that when I updated to "3.5.0-5" a while back this had still not gotten fixed. I tested the same fix and it works. Not sure how to implement a patch or if this can be done so that other people do not have to experience this. Not sure why it never got fixed as the fix was found on their bug tracker before this last release. I know that a lot of our packages are pretty vanilla so I am not sure what the official policy is on this is or if an alternate PKGBUILD would have to be created. I am interested in any feedback on this. Thanks.
Last edited by dodo3773 (2012-03-31 05:13:34)

tomk wrote:
The patch in that bug report was submitted by the bug reporter in October 2011, and the status is still "ASSIGNED" i.e. no fix has been applied yet, despite the patch submission. Also, Openbox 3.5.0 was released in August 2011, so clearly it does not include this patch.
Arch policy here is to continue to provide the current stable upstream release. You should contact the Openbox developers regarding the fix for this problem.
Thanks for the clarification. The reason I was confused is that sometimes in a PKGBUILD I see patch files. Marking thread as solved. I hope they fix this in the next major release / before we get another version update to 3.5.0-6.

Similar Messages

  • [Solved] Patch for idle3-tools

    Package aur/idle3-tools (0.9.1-1) installs a binary under /sbin and is thus affected by the recent /usr/bin consolidation; indeed, it was one of a handful of packages on my system that I uninstalled so I could do the upgrade.
    I have flagged the package and no doubt the maintainer will attend to it in due course, but to try and help out a bit I include below the changes necessary to make the package install in a post-consolidation Arch environment. Cursory searches of the source do not suggest the presence of any (other) hard-coded paths, and the binary appears to be operable from the new location, so it's only a build issue.
    (1) arch-usrbin-makefile-fix.diff (as file)
    --- src/idle3-tools-0.9.1/Makefile 2011-05-31 18:48:52.000000000 +1000
    +++ src/idle3-tools-0.9.1/Makefile 2013-06-08 11:41:02.000000000 +1000
    @@ -3,10 +3,10 @@
    # DESTDIR is for non root installs (eg packages, NFS) only!
    DESTDIR =
    -binprefix =
    +binprefix = /usr
    manprefix = /usr
    exec_prefix = $(binprefix)/
    -sbindir = $(exec_prefix)sbin
    +sbindir = $(exec_prefix)bin
    mandir = $(manprefix)/share/man
    oldmandir = $(manprefix)/man
    (2) PKGBUILD.diff (to make a new PKGBUILD) -- In addition to including the above patch, it also corrects issues identified by namcap (full package name appearing in description, and an apparent dependency on glibc)
    --- PKGBUILD 2011-07-18 20:08:00.000000000 +1000
    +++ PKGBUILD 2013-06-08 12:23:41.000000000 +1000
    @@ -3,14 +3,18 @@
    pkgname=idle3-tools
    pkgver=0.9.1
    pkgrel=1
    -pkgdesc="Idle3-tools provides a linux/unix utility that can disable, get and set the value of the infamous idle3 timer found on recent Western Digital Hard Disk Drives."
    +pkgdesc="A linux/unix utility that can disable, get and set the value of the idle3 timer found on recent Western Digital Hard Disk Drives."
    arch=('i686' 'x86_64')
    url="http://idle3-tools.sourceforge.net/"
    license=('GPL')
    -source=("http://download.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tgz")
    -md5sums=('797d8775b80b7b7b67a1f8b0a5b41f30')
    +depends=('glibc')
    +source=("http://download.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tgz" arch-usrbin-makefile-fix.diff)
    +md5sums=('797d8775b80b7b7b67a1f8b0a5b41f30' '10468e498dcd772180a73934435a001e')
    build() {
    + #Patch Makefile per ArchLinux /usr/bin consolidation of June 2013
    + patch -Np1 -i ${srcdir}/arch-usrbin-makefile-fix.diff
    +
    cd ${srcdir}/${pkgname}-${pkgver}
    make
    As this is the first time I have actually constructed a patch myself and made it available, any (constructive) feedback is welcome; I tried to make as few changes as possible to the original files, so apologies if I missed correcting/adjusting things that should have been changed as well.
    I will of course add a comment to the package page in AUR noting this topic.
    Last edited by aexoxea (2013-07-19 15:32:20)

    WonderWoofy wrote:
    There are those free single public file hosting sites that y[o]u can use.
    [#1284856]
    Good point. I admit I've never looked into such services, but if I'm going to help out with things like this I probably should . I'll do some research, unless there are some particular services you (and/or the ArchLinux community in general) recommend...?
    WonderWoofy wrote:
    Otherwise, I would say that since the package has not been updated since it was first uploaded, you should email the maintainer and see if you get a response.  I doubt that you will since it was uploaded and last updated in 2011.  If you don't get a response for two weeks you can then email aur-general and have the package orphaned so that you can adopt it.
    [#1284856]
    Fair enough. The maintainer updated another package in AUR seven weeks ago, so there's reason to believe that they'll respond. I'll give them a bit of time to do so (as there's a workaround, per this thread), and will then follow through as you suggest; I'll also post updates here for anyone interested.
    The lack of updates is likely due to upstream not having issued a new version since the package was uploaded (and the last commit to upstream is dated 24 January 2012); it's possible the tool is unmaintained upstream, though it does seem to get several hundred downloads each month (per SourceForge's stats) and there aren't lots of complaints plastered all over the discussions/bugs, so who knows?

  • When to apply SP 3 Patches for BO XI R3.1 Enterprise

    Dear Experts,
    I have installed BO XI R3.1 Enterprise Version.Xcelsius 2008 also.
    I want to work on them now.
    Later can i apply SP 3 patches for them or i need to apply at initial stages only.
    Thanks

    Hi,
    As indicated in the Update Installation and Deployment Guide:
    https://websmp207.sap-ag.de/~sapidb/011000358700000560412010E/xi31_sp3_update_inst_en.pdf
    You have two options for installing SAP BusinessObjects Enterrpise XI 3.1
    SP3 and its associated programs.
    u2022 An update install that can upgrade your current SAP BusinessObjects
    Enterprise XI 3.1 or SAP BusinessObjects Enterprise XI 3.1 SP2
    deployment to the SP3 level.
    u2022 A refresh install will perform a full installation of SAP BusinessObjects
    Enterprise XI 3.1 SP3.
    You can find more information in this KB:
    https://service.sap.com/sap/support/notes/1561265
    Regards,
    Julian

  • Patch for modbin6-1.00.38.exe is out.. "2MBIOS.BIN can't open!" Solved.

    Hi mates,
    ive decide to make a patch for modbin6 1.00.38 to improve stability and minise risk of modding the BIOS. for users which is reading this post if never heard about MODBIN better avoid reading below. its nice program for basic BIOS mod, simple to use, but very danger in the same time couse mess with BIOS and inproperty using may couse disaster. im not gona advert or to invite persons to use it. just wana make this program to be used normally to bring stability and minise risk of making corrupted BIOSes.. for persons which is already using it and have experience with him or with person Enthu which is wana try it and they dont worry if mobo may caouse for trash. there is 2 reasons to making this patch.
       1. couse sometimes im using it there is features on it wchich gives basic stuffs, unlocking hidden features locked by manifacturer(sometimes really usefull especially for DIMM Vcore..). so there is a nasty bug on it which gona explain later. most of persons who is using MODBIN know about it. so that patch will spend me alot of time and minimise risk of mistake during avoiding bug couse operation need several procedure and automatised will risk free and much fastern.
       2. to bring ability for most stable operations to persons which is already using it when need.
    but lets talk about the patch. everyone know that nasty issue with MODBIN(made it by Borg N1,part from his collection). bug is program wont safe BIOS file  and quiting with Abnormal program termination.... gives this one message: !!!File
    2MBIOS.BIN can't open!Thanks for using ModBin6 1.00.38  how nice ...
    here is Borg N1 advices:
    Quote from: Borg Number One on 16-July-05, 05:24:51
    Hi.
    It is a kind of sad fact that many users just know how to use the mouse and keyboard. 
    Well, you have to configure your config.sys (Win9x/ME) or config.nt to run MODBIN6
    (e.g. MODBIN6 2.01.01 (06/25))
    in Windows prompt/console without problems.
    The " FILES " & " BUFFERS " values are the important values.
    http://www.xtremesystems.org/forums/showthread.php?t=45538
    http://www.xtremesystems.org/forums/showthread.php?t=63210&highlight=config.nt
    +++ BNOBTC & BNOBLG +++
    http://bnobtc.pix-art.com
    Borg advices is good but unfortuanly doesnt fix that bug... seems author dont have much idea why this is happend...error is constant ... Pure DOS also can't help... i wana add few more tips to the Borg's ones to improve stability when using  modbin, after that will talking about patch.
    TIP: navigate to this folder and open config.nt file:  %SystemRoot%\system32\config.nt
    at the end of file add this ones:
    dos=high, umb
    device=%SystemRoot%\system32\himem.sys /CPUCLOCK:ON /HMAMIN=64
    FILES=40
    BUFFERS=40
    STACKS=9,256            -----> Preserving 039A-045Eh   3,152   Sys  039Ah Stacks, 0552h DOSX
    Also MODBIN doesnt work well with long filenames.... etc "document and settings\my profile\desktp\modblabla" if not gona work property and there is a big chance of failure will load but after saving will have problems to update BIOS "core"(original.tmp) so always use 8.3 syntax standart .... best way from root directory make subdir whcih name to no NOT exceed 8 symbols... etc C:\123,C:\MYFLASH,C:\ROFL
    without TIPs it is really big gamble with BIOS....
    Aslo that will prevent Stack Overflow error when BIOS is loading....
    NOTE: To activate changes just quit from any DOS interpretators like(4nt,command.com,cmd and so on). and re-run it. Reboot OS is not requred.
    here how to do:
    Also when executing MODBIN put below executable file this ones without quotes "loadfix forcedos modbin6-1.00.38.exe"
    and ofcourse nasty error is waiting us... "2MBIOS.BIN can't open!Thanks for using ModBin6 1.00.38"
    Patch which iv maked gona RIP this error forever.
    Download: modbin6_1.00.38
    Download: MODBINPATCH
    What patch need? and how to use it? I named patch "Dynamic Patch for modbin" Couse isnt make modification on MODBIN program but momory his parent process when is loaded into memory.
    tips suggested below is recommended but not nesecery for the patch.. patch need MODBIN and your BIOS file (modbin6-1.00.38.exe and mybios.bin) to be copied to systemroot drive(usually C) in folder MSI etc put modbin6-1.00.38.exe and mybios.bin(BIOS which you gona mod) to C:\MSI
    Patch make checking if folder doesnt match will not continue....
    How to use it..... Copy modbin6-1.00.38.exe and mybios.bin to C:\MSI, then from command prompt navigate to C:\MSI and execute "loadfix forcedos modbin6-1.00.38.exe" after that load your BIOS file... when loading is complete navigate to your patch folder and execute patchMSI.exe.... takes 10 seconds to complete after that make active "white" window and enter "Q" then hit ENTER key both windows will be closed, after that return to your modbin window, make what you gona make and save BIOS file like normal procedure... Method is founded and tested by me from years below never let me down(never brings corrupted BIOS), but just today ive made patch couse was too lazy... also Borg's MODBIN can work with most of all chipsets which is using AWARD Modular based... NOTE: K9 isnt tested. the most of here you can view how exacly to do it and differents with and without patch:
    here is one more think some time maybe usefull from me:D
    Here is 1st little short trick:(no analog anywhere, like patch only here can be found if accepted):
    How to reset BIOS if you have nothink? Examples if you are administrator/PC-support or any and must fix same PC but the BIOS has an password?! And you dont have permision to open Case to reset CMOS(couse PC has an sticker with Warantly (and removing that sticker couse lost pc warrantly) You need access to BIOS to re-check,configure somethink there but its password protected. anyway there could be many situation. what we need? nothink special just bootable DOS(or analog- PC-DOS or whatever,doesnt matter where will boot(cd,flash disk,hdd)), no extended commands.[io.sys(jo.sys),command.com] - files requred to boot Here we go:
    boot from desired device.when you see command prompt etc.: "A:\,C:\"
    We will write a program without any languich..directly in PC code..(without compilator), direct in machine code.
    write this:
    copy con ffs.com|ffs          *comment None
    176.230p144144230q195     *comment Hold "ALT" and write number
    ^Z                                  *comment "CTRL+Z" then hit "Enter"
    Explain:
    copy(internal command)
    con (command line switch)
    ^Z (CTRL+Z)
    NOTE: Numbers in second line must be written with holdon "ALT" key and specified numbers.(ASCI Code). Non numbers symbols is normal keyboard selection. on input display should look like:
    copy con ffs.com|ffs                   
    ░.цpРРцq├                                 
    ^Z                                           
    Program is 9 bytes long... (simple but high effective)
    Thats it.Reboot Computer... password is gone. CMOS is reseted to default values. Tested on Award 4.0,6.0, AMI BIOS. Break all..
    and finaly again:
    **To All readers of this thread: Please note that this thread is with regards to Self-Modding BIOS and are of NO Official Testings from MSI. MSI will not be responsible for ANY Damage caused from requesting these self modded BIOSes! Please mind that you'll ONLY request and flash AT YOUR OWN RISK!!!** also MODBIN Author(Borg N1) and me is dont are NOT  responsible for ANY Damage caused by MODBIN or Add On Patch. (i didnt think there is risk exit must must said that warning....couse playing with BIOS is always risky). Happy Tweaking. 

    Well, I was wondering if the system not allowing the tty to change ownership -- but root also has the problem.
    You might try checking which shell is set for your users in /etc/passwd, and then check that the shell really exists at the specified path, and that it is executable.  You might also check that the home directory for you users (also specified in /etc/passwd) is mounted and your user has the appropriate rights to that directory.
    Other than that, I am running out of altitude, airspeed and ideas all at the same time.  There was one thing in your trace I did not understand.  Why is your system looking to the floppy drive?  I wonder if that is contributing to the problem.

  • Can someonoe please assist me in my Adobe Photoshop CS6 Extended.  I keep getting a 'Couldn't Complete Your Request because Dynamic Link is not Available?" Is there a way of getting a software patch for this problem?  I thought you didn't need extra softw

    Can someonee please assist me in my Adobe Photoshop CS6 Extended.  I keep getting a 'Couldn't Complete Your Request because Dynamic Link is not Available?" Is there a way of getting a software patch for this problem?  I thought you didn't need extra software.  My software other than that problem works fine.

    Couldn't complete what request?   Way more information please.
    What operating system?

  • Central Output Server View Manager on Windows 7, need patch for jfPreview.exe

    Where can I obtain the latest version of JfPreView.exe?
    According to the following webpage:
    http://helpx.adobe.com/legacy/kb/central-central-pro-output-server-1.html
    Adobe Central and Central Pro Output Server 5.7, Windows support extended to Windows 7 (32/64 bit) and Windows Server 2008 R2 (64 bit)
    Issue 2 on this page is the problem that I am having:
    Issue 2
    View manager is a client application for Central Pro. When it is installed on Windows 7 (32/64 bit) and Windows Server 2008 (64 bit), it doesn't work properly.
    For Windows 7 and Windows Server 2008R2, IPv6 is installed and enabled by default. On a machine running the Central Preview Agent with IPv4 protocol, the Preview Agent fails to transfer the files. The Preview Agent also reports the following error in the jfserver.log.
    “Fails. Exception:  [1005] Connect to <host> failed: 10060”
    Solution
    A patch for JfPreView.exe.exe is available from Adobe enterprise support to address this issue.
    I need this patch.
    Thank you

    I have loaded KB2937636 to the server2012 wsus/sup but that still did not fix the communication issue.  I have since removed the KB2937636 from the 2012 server, because when the KB2937636 is installed on the sup server once the 7.6.7600.256 computers
    communicate with the server the WUA 7.6.7600.320 gets installed on the clients and then they stop communicating.  Very Frustrating!
    Please any help would be greatly appreciated.  
    Thanks
    ~ZbWinMan
    I have attached my WindowsUpdate.log file.  When I used CMTrace.exe you can clearly see that the computer talks fine at the beginning, then I installed WUA 7.6.7600.320 and All Communication breaks, then I uninstall to get back to 7.6.7600.256 and communication
    works again.
    If I uninstall 7.6.7600.320 then the computer communicates back to the SUP server.
    so you're using SSL? (port 8531)
    weird things might happen when in SSL if hastily configured, causing this weird error, like this for example:
    http://social.technet.microsoft.com/Forums/en-US/5d6ae350-9714-471f-aa67-375e657caa11/windows-update-cant-connect-to-wsus-server-which-happens-to-be-itself-after-switch-to-ssl?forum=winserverwsus
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Need Patches for Oracle Fusion Middleware 11.1.1.7.0 with OEL 6.3 64-bit Version

    HI,
    I need Patches for OFM 11.1.1.7.0 version in OEL6.3 64-bit version
    I have searched but could not find exact matching Patches. AS i am looking for SOA, OSB and Weblogic Specific Patches.
    CAn any one please find these out.

    Hi,
    Refer to this doc:
    Announcing Oracle Fusion Middleware 11g Release 1 (11.1.1.7.0) (Doc ID 1535341.1)
    Fixed Bugs List - Patch Set 6 (11.1.1.7.0) for Oracle Fusion Middleware 11g (Doc ID 1535354.1)
    Thanks,
    Sharmela

  • Satellite 5200 - Need master/slave patch for new DVD drive

    I need a patch for DVD to use in a Satellite 5200.
    My original DVD is broken, so i bought a Toshiba SD-C2512 DVD but it is not working inside the Satellite, but with adaptor at my Desktop PC.
    I have to patch the DVD to Master.
    Where can I get the file and prog to patch?

    Hi
    I think such patches that you mean are not available and as far as I know if you can switch a notebook from Master to Slave for example there is a jumper on the drive.
    However, for me it sounds like that the drive is not compatible with this notebook. Not every drive is compatible with every notebook (e. g. pin assignment, ) ;)
    You should buy another one and check the user manual. There you should find a list of compatible drives.
    Bye

  • Do i need any patches for weblogic 6.1 (service pack 2 or 3)  and sybase Jconnect5.5 ?

    Hi
    I am going use weblogic 6.1 (service pack 2 or 3) with Sybase Jconnect 5.5
    . database is Sybase 12.0.0.4 or 12.5. Will i need any patches for this combination
    to work? Please let me know.
    thanks

    Deepak
    Thanks. your link was not helpful. It does not mention any patches required.
    "Deepak Vohra" <[email protected]> wrote:
    >
    Sybase jConnect Driver
    http://e-docs.bea.com/wls/docs61/jdbc/intro.html#intro016
    "Madhavi" <[email protected]> wrote:
    Hi
    I am going use weblogic 6.1 (service pack 2 or 3) with Sybase Jconnect
    5.5
    . database is Sybase 12.0.0.4 or 12.5. Will i need any patches forthis
    combination
    to work? Please let me know.
    thanks

  • Need a pager for Openbox

    I need a simple, nice looking pager for Openbox. Something like fluxter, but that plays nice with Openbox/PyPanel.
    I've tried wampager and fluxter, but neither are what I want.
    Looking for:
    - Transparency (pseudo)
    - Size configuration
    - no window borders
    - icons in windows
    - doesn't change the workspace area
    Thanks!

    miqorz wrote:
    I use fbpanel..
    http://left-foot.org/Images/clearlooks-fun.png
    See it in action there?
    omg! are you using vim, haha (turncoat!)

  • I am using 4K Footages for editing in Premiere pro CC 2014, but its getting crash in between at every 15 to 20 mins. Kindly suggest how can it be solved, does any plugins or settings needed to edit 4K footages? Also would like to mention that footages fra

    I am using 4K Footages for editing in Premiere pro CC 2014, but its getting crash in between at every 15 to 20 mins. Kindly suggest how can it be solved, does any plugins or settings needed to edit 4K footages? Also would like to mention that footages frame rates are 29.97 and i have set timeline to 25 FPS is requirement by client. kindly revert. Thanks

    Thanks Richarad ..It has solved the problem but still crashes some times .As the programme has the break (bumper)after every five minutes ,i hope it will not compress bumper time too after export.

  • Need patches for oracle 8i

    hi ,
           i need patches for orcale8i for installation of sap 4.7ides pls send me links  which are very accessable,i searced but not got any.

    HI ,
           At the end of the installation iam facing the error as follows. what must be done pls help.
         the log says:
    ERROR 2006-02-23 20:57:18
    FRF-00007 Unable to open RFC connection.
    followed by...
    ERROR 2006-02-23 20:57:19
    FRF-00063 RFC logon failed with message: Failed: Connect to SAP gateway failedConnect_PM GWHOST=SERVER2, GWSERV=sapgw00, ASHOST=SERVER2, SYSNR=00
    SAPINST....

  • Need information regarding current rolling patches for BEA MessageQ 5.0

    We are using BEA MessageQ 5.0 with rolling patch 24 in our application on Sun Solaris 9 Sparc platform.
    We are upgrading our infrastucture from Sun Solaris 9 to Sun Solaris 10.
    As per upgrade we want to install latest rolling patch for MessageQ 5.0.
    Please let me know which is latest rolling patch available for MessageQ 5 and from where I can get it.
    Thanks in advance.
    Edited by: user2848685 on May 18, 2009 10:57 AM

    Hi,
    You will need to contact Oracle Support in order to access the MessageQ rolling patches.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Need to upgrade Java Kernal patch and support patch for Solman server 7.0

    Dear all ,
    Tech details  , Win32 bit and Oracle .
    I want to upgrade latest java  kernal patch for Solma 7.0 .
    I have checked the Service.sap.com (https://websmp105.sap-ag.de/support/downloads/Support Packages and patches - Entry by Application Group/Solution manager JAVA Stack)
    Solution Manager JAVA Stack :
    ADOBE DOCUMENT SERVICES 7.00
    BI UDI 7.00
    J2EE ENGINE BASE TABLES 7.00
    JAVA LOG VIEWER 7.00
    JAVA SP MANAGER 7.00
    LIFECYCLE MGMT TOOLS 7.00
    SAP CAF 7.00
    SAP CAF-UM 7.00
    SAP IGS 7.00
    SAP J2EE ENGINE 7.00
    SAP J2EE ENGINE CORE 7.00
    SAP JAVA TECH SERVICES 7.00
    SAP KERNEL 7.00 32-BIT UNICODE
    SAP VIRUS SCAN INTERFACE 7.11
    SAP VIRUS SCAN INTERFACE 7.20 .. ete ...
    what are patches required to Upgarde java  patch and let me know the procedure also . it will be helpful for me .
    Regards
    Kindly suggest

    Dear all ,
    I have checked help.sap.com , its mentioned in Software delivery Unit .
    1,software component archive (SCA),
    2,Java archive (JAR) or SAP archive (SAR).
    Support package stacks:
    A set of different SCAs
    ○     A set of different SCAs that are modified using the NWDI
    ○     The SDM JAR u2013 SDMkit.jar
    ○     The kernel SARs:
    ■      Database Independent: SAPEXE.SAR and other operating system dependent SARs
    ■      Database Dependent: SAPEXEDB.SAR and other database dependent SARs
    ■      The SAP archiving tool u2013 SAPCAR
    ○     The IGS SAR u2013 IGSEXE.SAR
    ○     A configuration XML file, which includes a description of the components that are part of the stack and their respective support package and patch levels.
    I understand the Kernal SARs and I have downlaoed SAPEXE.SAR ,SAPEXEDB.SAR ,IGSEXE.SAR .
    let me know the list of SCA files  , i have to download from service.sap.com . (set of different SCAs that are modified using the NWDI and  The SDM JAR u2013 SDMkit.jar)
    Kindly advise .
    Regards

  • [SOLVED] Asking for help and reviews for a PKGBUILD (cnijfilter-mp250)

    Hi everyone,
    I recently changed the desktop pc used by my parents, and I installed Arch on it (the previous desktop was running Debian). I know that I need to install a driver to get the printer working (a Canon MP 250 Series), because I did it before with Debian.
    The driver is in the AUR:
    https://aur.archlinux.org/packages/cnijfilter-mp250/
    A user in the comment (Huulivoide) suggested that the PKGBUILD was old, but the current mantainer didn't respond, so I decided to try to update the PKGBUILD myself as a learning opportunity and as a way to give something back to the community. This is the first PKGBUILD that I modify; while I've used Arch for quite some time, I'm still a noob in many respects.
    I tried to apply all the suggestions, and I did some other things (like quoting variables) that I often see in PKGBUILDs. This is the PKGBUILD:
    # Maintainer: Alireza Savand <[email protected]>
    # Special thanks to: olive, mirrr, GUiHKX, alessiofachechi, jeremy33,
    # jstitch, plv
    pkgname=cnijfilter-mp250
    pkgver=3.40.1
    pkgrel=5.1
    _pkgrealver=3.40
    _pkgrealrel=1
    pkgdesc="Canon IJ Printer Driver (MP250 series)"
    url="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
    arch=('i686' 'x86_64')
    license=('custom')
    depends=(
    'libcups'
    'cups'
    'popt'
    'ghostscript'
    'gsfonts'
    'atk>=1.9.0'
    'gtk2>=2.8.0'
    'pango>=1.12.3'
    'libpng>=1.2.8'
    'libtiff'
    'cairo>=1.0.2'
    'libxml2>=2.6.24'
    'fontconfig>=2.3.0'
    'libxinerama'
    makedepends=(
    'autoconf>=2.13'
    'automake>=1.6'
    'tar'
    'make'
    'gcc'
    conflicts=('cnijfilter-common')
    install=cnijfilter-mp250.install
    source=(
    'http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-3.40-1.tar.gz'
    'fix.patch'
    'libpng.patch'
    'automake_fix.patch'
    md5sums=(
    '609975a05d6050fcca88f312d3f35c6a'
    'ba9c7ec49e76bf74cc50702e362aba7b'
    '15e417cd427a920c83e4f28e225e428e'
    '07f698d8987632d9bb427d3f4a42a29a'
    prepare() {
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/"
    #patch -p0 < "${srcdir}/fix.patch"
    #patch -p0 < "${srcdir}/libpng.patch"
    #patch -p0 < "${srcdir}/automake_fix.patch"
    build() {
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/libs"
    ./autogen.sh --prefix=/usr --program-suffix=mp250
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpij"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cnijfilter"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/pstocanonij"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/lgmon"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/ppd"
    ./autogen.sh --prefix=/usr --program-suffix=mp250
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpijmon/cnijnpr"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin LIBS="-ldl"
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backend"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backendnet"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    package() {
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/libs"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpij"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cnijfilter"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/pstocanonij"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/lgmon"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/ppd"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpijmon/cnijnpr"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backend"
    make DESTDIR="${pkgdir}" install
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backendnet"
    make DESTDIR="${pkgdir}" install
    cp "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"/cnijfilter/src/config* \
    "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"/lgmon/src/
    cp "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"/cnijfilter/src/config* \
    "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"/cngpijmon/cnijnpr/cnijnpr/
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"
    install -d "${pkgdir}/usr/lib/bjlib"
    install -m 755 356/database/* "${pkgdir}/usr/lib/bjlib"
    if [ "$CARCH" == "x86_64" ]; then
    libdir=libs_bin64
    else
    libdir=libs_bin32
    fi
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcmcm356.so.8.0.1" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclapi356.so.3.5.0" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclbjcmd356.so.3.3.0" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclui356.so.3.6.0" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpess356.so.3.3.3" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpess356.so.3.3.3" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpo356.so.1.0.2" \
    "${pkgdir}/usr/lib/"
    install -m 755 "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/com/${libdir}/libcnnet.so.1.2.0" \
    "${pkgdir}/usr/lib/"
    cd "${pkgdir}/usr/lib/"
    ln -s libcnbpcmcm356.so.8.0.1 libcnbpcmcm356.so
    ln -s libcnbpcnclapi356.so.3.5.0 libcnbpcnclapi356.so
    ln -s libcnbpcnclbjcmd356.so.3.3.0 libcnbpcnclbjcmd356.so
    ln -s libcnbpcnclui356.so.3.6.0 libcnbpcnclui356.so
    ln -s libcnbpess356.so.3.3.3 libcnbpess356.so
    ln -s libcnbpo356.so.1.0.2 libcnbpo356.so
    ln -s libcnnet.so.1.2.0 libcnnet.so
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"
    install -D "LICENSE-cnijfilter-${_pkgrealver}EN.txt" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${_pkgrealver}EN.txt"
    Questions:
    * Is the PKGBUILD all right?
    * The PKGBUILD apparently needs some patches. Unfortunately I don't code so I don't understand what their effect is. As far as I can tell, automake_fix.patch isn't needed anymore: I actually had to remove it to make the package build. Can someone confirm that it is safe to remove automake_fix.patch? What about the other patches? The package seems to build fine without libpng.patch and fix.patch, but since I don't know what they do I cannot really evaluate the impact of removing them.
    * namcap outputs some warnings about missing libraries. I'm not sure how to proceed here. Here is the output:
    cnijfilter-mp250 W: Referenced library 'libcnbpess356.so' is an uninstalled dependency
    cnijfilter-mp250 W: Referenced library 'libcnnet.so' is an uninstalled dependency
    cnijfilter-mp250 W: Referenced library 'libcnbpcmcm356.so' is an uninstalled dependency
    cnijfilter-mp250 W: Referenced library 'libcnbpcnclbjcmd356.so' is an uninstalled dependency
    cnijfilter-mp250 W: Referenced library 'libcnbpcnclapi356.so' is an uninstalled dependency
    cnijfilter-mp250 W: Referenced library 'libcnbpcnclui356.so' is an uninstalled dependency
    On the other hand, if I try to search (with find) for the name of the library in the package, I can see them:
    ./src/cnijfilter-source-3.40-1/356/libs_bin32/libcnbpess356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin64/libcnbpess356.so
    ./pkg/cnijfilter-mp250/usr/lib/libcnbpess356.so
    ./src/cnijfilter-source-3.40-1/com/libs_bin32/libcnnet.so
    ./src/cnijfilter-source-3.40-1/com/libs_bin64/libcnnet.so
    ./pkg/cnijfilter-mp250/usr/lib/libcnnet.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin32/libcnbpcmcm356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin64/libcnbpcmcm356.so
    ./pkg/cnijfilter-mp250/usr/lib/libcnbpcmcm356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin32/libcnbpcnclbjcmd356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin64/libcnbpcnclbjcmd356.so
    ./pkg/cnijfilter-mp250/usr/lib/libcnbpcnclbjcmd356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin32/libcnbpcnclapi356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin64/libcnbpcnclapi356.so
    ./pkg/cnijfilter-mp250/usr/lib/libcnbpcnclapi356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin32/libcnbpcnclui356.so
    ./src/cnijfilter-source-3.40-1/356/libs_bin64/libcnbpcnclui356.so
    ./pkg/cnijfilter-mp250/usr/lib/libcnbpcnclui356.so
    So, all I can guess is that they're not in the correct place... Some of these "missing" libraries are moved around in the pkgbuild. Maybe I should move them in another dir...?
    There are other warnings in namcap; I'm inclined to ignore these:
    cnijfilter-mp250 W: Dependency libcups included but already satisfied
    cnijfilter-mp250 W: Dependency included and not needed ('cups')
    cnijfilter-mp250 W: Dependency included and not needed ('ghostscript')
    cnijfilter-mp250 W: Dependency included and not needed ('gsfonts')
    cnijfilter-mp250 W: Dependency included and not needed ('atk')
    cnijfilter-mp250 W: Dependency included and not needed ('gtk2')
    cnijfilter-mp250 W: Dependency included and not needed ('pango')
    cnijfilter-mp250 W: Dependency libpng included but already satisfied
    cnijfilter-mp250 W: Dependency libtiff included but already satisfied
    cnijfilter-mp250 W: Dependency included and not needed ('cairo')
    cnijfilter-mp250 W: Dependency included and not needed ('libxml2')
    cnijfilter-mp250 W: Dependency included and not needed ('fontconfig')
    cnijfilter-mp250 W: Dependency included and not needed ('libxinerama')
    * now the *really* noob question... My understanding is that the PKGBUILD contains instructions to produce a binary from source. What it's still mysterious to me is how to write these instruction *in practice*. E.g. in this PKGBUILD I see a lot of things copied/installed around, but how the user that originally wrote the PKGBUILD came to determine what to move and where, is beyond me. If I were to write a PKGBUILD from scratch now, how should I know that I need to  e.g.
    cp "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"/cnijfilter/src/config* \
    "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"/cngpijmon/cnijnpr/cnijnpr/
    Thanks to those who will find the time/patience to respond, and sorry for the long post.
    Last edited by greymatter (2014-04-06 13:06:27)

    Wow, so much could be simplified with a few cd's and a few for loops.
    Yes, it's OK. Not great, but OK.
    The patches, build fails here without fix.patch and libpng.patch. Make sure to delete your src dir before rebuilding, you probably still have the patches applied from a previous run. It works for now without the automake patch, but it may be needed again in the future. It would be much better done with sed than a patch, though.
    Edit: first attempt at a major cleanup
    # Maintainer: Alireza Savand <[email protected]>
    # Special thanks to: olive, mirrr, GUiHKX, alessiofachechi, jeremy33,
    # jstitch, plv
    pkgname=cnijfilter-mp250
    pkgver=3.40.1
    pkgrel=5.1
    _pkgrealver=3.40
    _pkgrealrel=1
    pkgdesc="Canon IJ Printer Driver (MP250 series)"
    url="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
    arch=('i686' 'x86_64')
    license=('custom')
    depends=(
    'libcups'
    'cups'
    'popt'
    'ghostscript'
    'gsfonts'
    'atk'
    'gtk2'
    'pango'
    'libpng'
    'libtiff'
    'cairo'
    'libxml2'
    'fontconfig'
    'libxinerama'
    conflicts=('cnijfilter-common')
    install=cnijfilter-mp250.install
    source=(
    'http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-3.40-1.tar.gz'
    'fix.patch'
    'libpng.patch'
    'automake_fix.patch'
    md5sums=(
    '609975a05d6050fcca88f312d3f35c6a'
    'ba9c7ec49e76bf74cc50702e362aba7b'
    '15e417cd427a920c83e4f28e225e428e'
    '07f698d8987632d9bb427d3f4a42a29a'
    prepare() {
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/"
    patch -p0 < "${srcdir}/fix.patch"
    patch -p0 < "${srcdir}/libpng.patch"
    #patch -p0 < "${srcdir}/automake_fix.patch"
    build() {
    for i in libs cngpij cnijfilter pstocanonij lgmon ppd backend backendnet; do
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/${i}"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
    make
    done
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpijmon/cnijnpr"
    ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin LIBS="-ldl"
    make
    package() {
    for i in libs cngpij cnijfilter pstocanonij lgmon ppd backend backendnet cngpijmon/cnijnpr; do
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/${i}"
    make DESTDIR="${pkgdir}" install
    done
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}"
    install -d "${pkgdir}/usr/lib/bjlib"
    install -m 755 356/database/* "${pkgdir}/usr/lib/bjlib"
    install -D "LICENSE-cnijfilter-${_pkgrealver}EN.txt" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${_pkgrealver}EN.txt"
    if [ "$CARCH" == "x86_64" ]; then
    local _libdir=libs_bin64
    else
    local _libdir=libs_bin32
    fi
    cd "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${_libdir}/"
    install -m 755 -t "${pkgdir}/usr/lib/" \
    libcnbpcmcm356.so* \
    libcnbpcnclapi356.so* \
    libcnbpcnclbjcmd356.so* \
    libcnbpcnclui356.so* \
    libcnbpess356.so* \
    libcnbpo356.so* \
    "${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/com/${_libdir}/"libcnnet.so*
    Things to note:
    1. Versions are not needed on the deps unless it needs something different than what is in the main repos
    2. Anything included in base-devel should not be in the makedeps.
    3. The libdir variable was changed to _libdir and declared local. Need to avoid conflicting with other potential variables from the environment.
    Last edited by Scimmia (2014-04-05 18:04:26)

Maybe you are looking for

  • Safari 6.1 is not working after latest update

    Safari loads, but when a tab is clicked on in bookmarks bar or when a page is opened - nothing happens and safari freezes. Thankfully, Firefox has come to the rescue, but I want to use Safari. Any ideas? I have Mac OSX Lion 10.7.5 on an iMac with Saf

  • How do I retrieve documents from iCloud

    I have activated iCloud and I think saved my documents to iCloud. How do I retrieve a document from iCloud?

  • Some digits not working

    I got an used iPhone 3GS and found after few days the digits (6,7,8) not working. Also the main main menu button at the bottom does not work properly. /it seemd to work few days back. But now I cannot got back to "Home" screen using that button. Appr

  • How to get ORA Errors on SQLPlus in english

    Hi, I am running 10gR2 on american Windows. Even I have set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252 still getting oracle errros on SQLPlus in german :-( What do I else need to change? Thanks

  • Acro 8.1.2 & PDF print files

    I've an InDesign business card file that I'm trying to print to PDF 8.0. When I print the file, it goes through the contortions, launches the printer application, etc. But where is it putting the PDF file? I've also been trying to use the Acro 8 OCR