[solved] Clean way to include a "ln -s /usr/ /usr/..." in a PKGBUILD?

Hello,
in order to run a third party closed source software, I needed to
ln -s /usr/lib32/libjpeg.so /usr/lib32/libjpeg.so.62
In order not to do this by hand in the future, I'd like to make this by the PKGBUILD. But as far as I can see, the PKGBUILD script is only about files inside the package, not outside of them.
So is there a clean way to include
ln -s /usr/lib32/libjpeg.so /usr/lib32/libjpeg.so.62
in a PKGBUILD?
Thanks!
Last edited by Carl Karl (2013-11-08 00:42:54)

Sorry. I didn't mean to be so mysterious. Basically it hides a problem and it can cause further problems. So the application you do it for believes that it has a certain version of the library but it doesn't which could well cause weird failures, even if it does compile. Once that symbolic link is in your system, moreover, anything else you compile can potentially find it and try to compile against it. Suppose you were building something which did something conditionally e.g. "if we find version X of lib Y, assume A; if we find version Z of lib Y, assume B" or which just depended on a particular version of the library. Now you will have silent errors building up in the stuff you are compiling, even though it has nothing to do with the original application you installed the work around for.
There may be other reasons it is bad, too, which I don't know about. That's the stuff I know about.
Anyway, I'm certainly glad you found a better solution. As for finding packages, you could just search AUR using the web interface or you could use something like cower. In this case, you could try, for example:
$ cower -s lib32-libjpeg
aur/lib32-libjpeg6 6b1-1 (392)
Legacy version of Library of JPEG support functions (32 bit)
aur/lib32-libjpeg6-turbo 1.2.1-1 (12)
libjpeg derivative with accelerated baseline JPEG compression and decompression
aur/lib32-libjpeg7 7-3 (19)
Library of JPEG support functions, version 7 (32 bit)
32 bit libraries for 64 bit systems all start lib32- so that's why I searched on lib32-libjpeg rather than just libjpeg. cower is an extremely useful, minimal and lightweight AUR helper. Obviously, you could use another AUR helper if you liked - cower is just my favourite.
Last edited by cfr (2013-11-07 22:57:34)

Similar Messages

  • Clean way to remove sftp.service from avahi?

    Hello,
    I'd like to use a ftp.service according to https://wiki.archlinux.org/index.php/avahi#Vsftpd instead of the sftp service.
    I did this by moving /etc/avahi/services/sftp-ssh.service away and restart avahi. That works, but something tells me that is a dirty solution. At the next avahi update, /etc/avahi/services/sftp-ssh.service will be there again, I suppose.
    So do you know a clean way of disabling sftp? I tried to find something in /etc/avahi/avahi-daemon.conf, but didn't succeed.

    What is the rationale that the avahi package owns the /etc/avahi/services/{sftp-,}ssh.service files?
    In my opinion, avahi should not provide any service files. Only the services itself (e.g. sftp) should.
    What is missing is some configuration which services to include without changing package files that are overwritten during an update. Or is there any solution?
    My machine does not offer SFTP, therefore advertising this service is just plain wrong.
    While it might be correct that my machine provides SSH, I might not want to advertise it (not for security reasons, obviously, but just for not polluting the directory with a mere "personal" service intended just for me).
    Last edited by PapaNappa (2015-02-12 17:06:47)

  • By default, Teststand will not include the test step result in subsequence, is there any way to include these step result in report?

    By default, Teststand will not include the test step result in subsequence, is there any way to include these step results in report?
    Thanks
    Jacky

    Hi,
    If your subsequence is in a separate sequencefile, then check the properties of the sequencefile to make sure that the record has not been disabled.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Is there a way to include html link with applet?

    I am thinking of writing an applet that would be useful to others, which I would provide for free. In return I would want a link from the pages that use the applet. It is important that the link is search engine friendly, a pure href html link that will provide google page rank to me.
    Is there a way to include such a link with an applet so that it can't be removed?

    No. You can't force other sites to change their content.

  • Is there a way to include the sys.aud$ table in a full database dp export?

    I am doing an export using the following parfile information:
    userid=/
    directory=datapump_nightly_export
    dumpfile=test_expdp.dmp
    logfile=test_expdp.log
    full=y
    content=all
    However when I run this I do not see the sys.aud$ in the log file. I know I can do a seperate export to specifically get the sys.aud$ table but is there any way to include it in with my full export?
    Thanks in advance for any suggestion.

    here's more background infomation... I have some audits setup on my database for one of my users. Every quarter I have an automated job that runs that creates a usage/statics report for this person using data in aud$. at the end of the job I export the aud$ table and truncate it. However last quarter I found that there was a mistake in my report and my export did not run properly thus my audit data was gone. i also have full datapump exports that run daily but found that aud$ was not there. so that is why I thought I'd like to include sys.aud$ in the full datapump exports.
    i understand why other sys tables would be left out of a full export but aud$ data cannot be reproduced so to me it makes sense to include it in a full export.
    don't worry, we run our true backups using rman which is eventually how I got the aud$ data back by creating a copy of my database up until the time of the truncate. however this was quite time consuming.

  • Best way to include javascript-script into different struts-pages

    Hi,
    I'm running a struts-based webapplication using the tiles-templates for my layout. Now I have to use some javascript-code for a pop-up window and another javascript for tracing on multiple pages but in different combinations. As I do n't want to copy-paste it on every page, but put it on a single place for better maintenance I'm wondering what would be the best way to do this together with the struts-logic.
    I thought about the following options:
    1.) Using the "template:put" feature like this:
    <template:put name='js' content="/myJavascripts.jsp"> I don't think this would be a good option, as I always have to include the whole javascript and I cannot distinguish between my two different javascripts
    2.) Using the template:insert feature like this:
    <template:insert template="/myJavascripts.jsp"/>. This is a lot better, as I can split my two javascripts into two different files and can always decide, which one to include with the template:insert tag. But I'm not sure, if this is conforming with the struts-concept, as I do not use any template:put or template:set tags
    3.) Using simple jsp:include or <%@ include ... %> tags.
    This would be the easiest way to include my pages with <%@ include file='/myJavascripts.jsp' %>. Same advantages like template:insert but I don't need the additionally features of the template:insert-tag. But still the same question: is this the concept of struts? Or will I become any difficulties with this concept later??
    Any recommendations or further ideas are greatly appriciated.
    Thanx for your help
    Thomas

    Getting PDFs to download is fairly easy and the method is described here.....
    http://www.iwebformusicians.com/WebMusic/PDFs.html
    To get multi page docs to display in the browser requires the use of Google Docs viewer, ISSUU or some such thing....
    http://www.iwebformusicians.com/PromoPage/ISSUU.html
    Safari is the only browser I know of that will display PDFs in an iFrame without a plugin.

  • Is there any way to include all the info on a form as an attachment?

    Hi. I would like to find out if there is a way to include the same info that is entered in the fields of a standard html form as a data file attachment? I'm thinking along the lines of an xml file that would usually be sent to the recipient once a pdf form has been filled in and submitted.
    By default (in my case anyway) when an online form is submitted by somebody, whatever info was entered in the fields will simply display in the body of the email. That's fine if it's an occasional form that's submitted but if we plan to make this a standard method of submitting data, thus greatly increasing submissions, (as opposed to filling in pdf forms - which don't work for our employees on smartphones) AND I want to gather the data and put it in a sort of a simple database (excel spreadsheets is fine!) then obviously we'll want to make this easy on ourselves and avoid having to manually enter the information received into a spreadshhet every time data is received.
    I'm not looking into setting up a full online database (despite the fact that might seem a nice (long-term) solution), as that would be unncessary for this kind of 'minor' exercise at the moment - I'd just like to see if there's a cost free solution to force a submitted html form to also send a data attachment (e.g xml) to the recipient. Thanks in advance.

    There is nothing within DW that can do this for you. You also cannot go straight from HTML to an emailed XML file, which is likely why you couldn't find anything online about it.
    You will need to find out what server scripting language(s) your hosting company supports (php is a common one).
    Once you know that, you'll need to create/purchase/download a script in that language that you attach your html form to in order for it to be converted by your server and sent to your email as an XML file, again php is a very common choice for this.
    As Murray suggests, there are a lot of sources online once you know which language you can use.

  • Is there a way to include a native executable into extension package?

    Hello,
    I need to call some native code from the CS extension using the NativeProcess API.
    Is there any way to distribute a native executable file inside the extension package?
    It looks like there is a way to include an "ordinary" file into a hybrid extension, however the file has to be installed into one of pre-defined locations (such as "$applicationsupport").
    The problem is that in order to create a NativeProcess object in the extension code, I need to know the exact path of the executable, and I can't seem to find a way to find out where exactly the executable was placed by the extension installer.
    Is there a way to install an executable into the extension folder (which I can get using CSXSInterface.getInstance().getSystemPath(APPLICATION))?
    Thank you,
    Anatoly

    Is there a way to install an executable into the extension folder (which I can get using CSXSInterface.getInstance().getSystemPath(APPLICATION))?
    Yep, the answer depends on how you're packaging your extension.
    If you're using Extension Builder, you just need the executable to be automatically copied to the bin-debug folder during the build process. The simplest way to achieve this is to put the executable underneath the src/ folder. Another option is to make your own resources/ directory and add it to the project source path (see the section "Adding resource folders to the project source path" here: http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS6f97d7caa66ef6eb1e63e3d11b6c4ce74 9-7fd8.html). Once you've got it copying to the bin-debug folder you're set, you can launch or export as usual and your executable will end up in the extension folder.
    If you're using ucf.jar, just make sure that your executable is in the extension folder you're packaging.
    You shouldn't need to create a hybrid extension in order to have a CS extension that uses NativeProcess.

  • Is there a way to include material in a DVD that some CAN copy?

    Is there a way to include material in a DVD that some CAN copy?
    I have a 30min project that I am going to burn that is copyrighted. But I’d like to add some stills or maybe a screensaver that the purchaser could copy from the disk and use.
    Thanks!

    Copyright is not the same thing as copy protect. Your material may very well be copyrighted, but it won't be copy protected if you are burning the DVD in your Superdrive. You must use a replication house to get copy protection. If you do this, you can include copyable stuff on the disc. I've seen commercial disks with PDF files, etc that you can freely use. I have no experience on how to do it though.
    But, don't fool yourself. There really is no copy protection anymore on DVDs. Anyone with an internet connection can figure out how to defeat it using software available free on the internet. All you can do is make it a hassle to copy it.

  • What is the proper way to include search terms in your page

    Say you have a web page that is about a certain topic and has information displayed on the page.  What is the proper way to include terms that you would like this page to show up on a search for but don't necessarily want to display on the page?
    I didn't know if including the search keywords at the bottom in small font with invisible color was the proper way.

    I didn't know if including the search keywords at the bottom in small font with invisible color was the proper way.
    ABSOLUTELY NOT!!!  This practice will get your site banned or blacklisted from Search Engines.  It is considered a Black Hat tactic to attempt to mislead search engine results in an effort to drive traffic to your site.
    Instead, use plenty of keyword rich, relevant text and good semantic mark-up (h1, h2, h3) inside the body of your pages.   In time, search engines will find you.
    Some Excellent Links on Search Engine Optimization:
    Google's SEO Starter Guide (PDF)
    http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf.
    Can Better Web Accessibility Mean Better Search  Ranking?
    http://alt-web.blogspot.com/2007/07/can-better-web-accessibility-mean.html
    High Rankings Advisor
    http://www.highrankings.com/newsletter/
    SEOMoz.org - Beginner's Guide to SEO (1-page  html)
    http://www.seomoz.org/article/beginners-1-page
    SEO Chat
    http://www.seochat.com/
    Submit Site Maps to 4 Major Search Engines
    http://alt-web.blogspot.com/2008/11/submit-sitemaps-to-4-major-search.html
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    www.twitter.com/altweb
    www.alt-web.blogspot.com/

  • Is there any way to include excluding one field

    hi all,
    is there any way to include a structure or type in another structure or type by excluding one field?
    regards
    hyma

    I think you are trying to include 2 structures but it is giving error that some fields are common
    you can overcome that like this , these are the 2 additions
    INCLUDE STRUCTURE ZTAB AS name1.
    INCLUDE STRUCTURE ZTAB AS name1 RENAMING WITH SUFFIX name2
    for more info check the help for INCLUDE STRUCTURE

  • Clean Way To Prevent Signature Collision Of Mounting VHDX In Parallel PowerShell Scripting

    I have multiple Virtual Machines I am to build from a Sysprepped VHDX. (All this is done automatically via Powershell)
    For each of these Virtual Machines, I copy this VHDX and create a new one unique to the Virtual Machine. However, I wish to mount each one (in parallel) and make modifications before attaching it to the virtual machine and booting the first time. 
    The issue comes when it is time to mount the VHDX on the Physical Host, and these two processes attempt to mount at the same time. This causes a Signature Collision. I am looking for a clean - emphasis on clean - way to prevent signature collision. I have
    tried the following.
    Using the Get-Drive cmdlet and determining if one exist with a FriendlyName of "Microsoft Virtual Disk" before mounting, to detect if another VHDX is already mounted and waiting til it dismounts - the latency in this flag being available causes
    this method to fail and still the two VHDXs attempt to mount and have signature collision, breaking the script associated with that VHDX.
    I have tried using a Flag file, i.e., a text file to denote if a VHD is mounted and do a similar check - however, this relies on the file system and seems too clumsy for me. 
    I have considered Environment variables, but am afraid this is also too convoluted for such a simple task.
    Any recommendations? 

    The builds are being done in separate scripts. The purpose is that each script can be ran on it's own to rebuild a particular VM, but when the host is first built, all scripts are run concurrently to build each VM (total of 3). They could be ran sequentially,
    but the copy of the VHDX will make this take a very long time (or at least that is the thought, haven't really tested this.) The script is the same for all three builds just differentiates based on a parameter passed.
    I am currently testing the inclusion of a PauseBeforeMount parameter, which I will pass to one of the two servers in question. This way, it will only be used in the full host build, and not if a single VM is being rebuilt.
         if($PauseBeforeMount.IsPresent){ 
               Write-Host "Pausing for VHDX Mount..."
               Start-Sleep -Seconds 60 
        #Mounts the OS Disk and captures the Drive Letter 
        Write-Host "Mounting OS VHDX located at $OS_VhdPath"
        [string]$OsDriveLetter = Mount-VHD -Path $OS_VhdPath -Passthru | Get-Disk | Get-Partition | Get-Volume | `
            Where-Object {$_.FileSystemLabel -eq "OS_Disk"} | Select -ExpandProperty DriveLetter
        $OsDriveLetter += ":"
     

  • Is there a declarative way to include my own javascript 'on submit'?

    I try to integrate a third party editor (CKEditor) into my ADF 11.1.1.2.0 application. This editor converts a normal inputText item through javascript into a full wysiwyg HTML editor. In need this because the default richTextEditor has limited functionality. The problem I encounter is that this editor needs a piece of javascript to be executed to sync the editor-content with the related inputText before the item is submitted. This is especially needed in case of partial submits. I don't want to include a call to the script in all items that can cause a partial submit.
    So what I'm looking for is a hook into the clientside lifecycle when the form is (partially) submitted.
    I have tried several ways to initiate the script before the form is (partially) submitted:
    1: Added a clientlistener to the item of type 'blur' or type 'valueChange'. Both fail to work in some cases and some browsers, probably because the rich editor itself does a lot of eventhandling.
    2: Added a custom clientside validator. This seems to work but the problem is that client side custom validators are only fired when the item is required and my items is not required. I don't know the reason why an item has to be required to fire the custom validators. I thought it was a bug, but chapter 4.2 of the FusionWebUIGuide describes this behavior.
    Both declarative ways fail to work. I have found a solution that works but this solution is a 'dirty' one. What I did is overriding the javascript method that processes the validators:
    AdfDhtmlPage.prototype._oldProcessValidators = AdfDhtmlPage.prototype._processValidators;
    AdfDhtmlPage.prototype._processValidators = function (x275, x276, x277) {
    // Do my javascript thing
    var result = this._oldProcessValidators(x275, x276, x277);
    return result;
    Although this solution works in all situations and in all browsers, I don't realy like it. So my question is: Is there a declarative way to include my script-call before the form is partially submitted?

    Hi,
    For your information, we have integrated FCKEditor (CKEditor's ancestor) into an ADF 11g application.
    I know it is very different from CKEditor, but we have been forced to create our own JSF component and made several hooks to the framework to make it behave like desired.
    One of the problem we have faced is the lost of the input values when partial submit was performed on the editor isntance.
    Just so you know it might be real hard to integrate the component without creating a JSF component.
    Regards,
    JP

  • What's he best way to include Adobe PDFs on my blog?

    What's he best way to include Adobe PDFs on my blog?
    I create worksheets as a teacher and would like to share them from my blog. Currently I am linking to Scribd etc to share PDFs. If I upload the worksheets as an image is there a way to adjust the size/resolution of the PDF for easier viewing? 
    Thanks!

    PDFs are just files. Can you upload files to your blog space? If yes, just upload the PDFs then, in a blog entry, provide the web link (URL) for each file (PDF).
    Or, place the PDFs into your free acrobat.com "files" storage (5GB free). You have one as you have an Adobe ID (needed to make your post here eh).
    https://cloud.acrobat.com/
    You can have acrobat.com provide a "share" link to the PDF. Place that into a blog entry.
    Or - same idea as above (use a "file share" service) -- Microsoft's OneDrive, Adobe's Creative Cloud, Google drive, DropBox, others ...
    Be well...

  • Clean way to De-register/De-commission the database with EBS from RAC/Cluster.

    Hi,
    We have a database with EBS on RAC. We are looking for Clean way to decommissioning the database from the cluster. We tried earlier, but when we again installed a fresh database on that server some how we had issues with the user oracle in cluster configuration files.
    Early response is highly appreciated.
    Thanks,
    Rajashekar

    Hi Hussein,
    We have two node db and two node application server in a cluster environment.
    We want to Remove/Decommission JUST DATABASE, APPLICATION related all files from the cluster. Cluster files should not be effected. After removing them we want install a fresh Db and Application on the same cluster.
    Looking for any standard method for decommissioning.
    Thanks,
    Rajashekar

Maybe you are looking for