[solved] export in post_install

this is my first pkgbuild and everything works great, except the post_install stuff.
i want to export some variables in the post_install hook - the hook get called but the variables are not exported after install.
cd ~/abs
mkdir -p sun-jdk5-dlj/sun-jdk5-dlj && cd $_
cat >PKGBUILD <<\EOF
pkgname="sun-jdk5-dlj"
pkgver="21"
pkgrel=1
pkgdesc="Sun JDK 5.0"
arch=('i686')
url='http://java.sun.com'
source=( \
"http://download.java.net/dlj/binaries/jdk-5.0u${pkgver}-dlj-linux-i586.bin" \
conflicts=('java-environment' 'java-runtime')
provides=('java-environment=5' 'java-runtime=5')
license=('custom')
install="${pkgname}.install"
md5sums=( \
'36f1628264efaaebf70812cdafb27a52' \
build() {
cd ${startdir}
rm -rf jdk1.5.0_${pkgver}
sh jdk-5.0u${pkgver}-dlj-linux-i586.bin --accept-license --unpack
mkdir -p ${pkgdir}/opt/jdk
cp -R jdk1.5.0_${pkgver}/* ${pkgdir}/opt/jdk/
install -m755 -D ${startdir}/jdk.profile ${pkgdir}/etc/profile.d/jdk.sh
EOF
cat >sun-jdk5-dlj.install <<\EOF
post_install() {
echo "*** post_install ***"
source /etc/profile.d/jdk.sh
EOF
the following exports should be executed after installation has been run.
cat >jdk.profile <<\EOF
export JAVA_HOME=/opt/jdk
export PATH=$PATH:$JAVA_HOME/bin
export MANPATH=$MANPATH:$JAVA_HOME/man
export JAVADIR=$JAVA_HOME
export JAVA_ROOT=$JAVA_HOME
export JAVA_BINDIR=$JAVA_HOME/bin
export JDK_HOME=$JAVA_HOME
export J2SDKDIR=$JAVA_HOME
export JRE_HOME=$JAVA_HOME/jre
export J2REDIR=$JRE_HOME
EOF
any help would be really appreciated.
regards
jan
Last edited by jzimmek (2009-10-18 16:34:33)

Exporting variables means that they will exported to and become available in the environment of any subsequent child processes started by the current process. They will not magically become part of the environment of parent processes. (see help export).
Just tell you users to either relogin or to "source /etc/profile.d/jdk.sh in your current environment", which, in my case, would require me at least to shut down X, source the file in the text console I'm logged in to, and then to startx again in order to make those variables available to all my processes.
Last edited by hbekel (2009-10-18 16:26:36)

Similar Messages

  • The Problem Wasn't Solved-Exporting Issue

    OK, my bad. This wasn't solved.
    I'm doing a different project now, using only two files. An .mp3 file and a .mov file with the appropriate specs for FCE. But the problem remains: whenever I try to use the QuickTime conversion to export the project (which is quite short at the moment), the progress remains fixed on 7% and the estimated time continues to rise and rise. I checked and double checked to make sure everything was rendered, and I can't find a problem.

    OK.
    Did both.
    All right, here are the settings I was trying for H.264.
    Frame rate: 29.97 fps
    Encoding: Best quality (multi-pass)
    Key Frames: Every. 24 frames.
    Data Rate: Automatic
    Frame Reordering checked.
    Size: 1280 x 720 HD with Deinterlace Source Video checked (and unchecked on another occasion). I also tried different sizes on other attempts.
    Message was edited by: SarahDark

  • PROBLEM SOLVED "export clips from Color back into FCP & add transition"

    If I have two clips that you cannot place a transition in between here is the only thing that worked for me.
    I discovered this problem after I exported my movie clips from FCP 6 to Color and imported the color corrected files from Color back into FCP 6. I could no longer add transitions to any of my clips unless I made the following changes.
    1. 1st check to see if the video clip has an audio track underneath it. If they are not linked Select the audio and the video track to be linked, hit Command "L" and you will see an underline under the audio and video name to show that they are now linked. Do the same for the adjoining video and audio track.
    2. Next select all of the clips after the video clip you just selected by typing "tttt" this changes to the "Select All Tracks Forward Tool". Click on the track after the video track you just linked and it will select all of the tracks thereafter. Hit the "A" button to change back to the selection tool and move all of the selected tracks away from the previous video/audio track.
    3. Next type "RR" this will change to the "Ripple" tool. Now click on end of the video track on the previous video clip and type -15 (for negative 15 frames). Then click on the beginning of other video clip to the right that you linked and type +15 (for plus 15 frames).
    4. Type "tttt" to change back to the "Select All Tracks Forward Tool" the hit the "A" button to change back to the selection tool and drag all tracks back together again.
    5. You may then drag and drop your transition in between both video clips.
    I hope this helps someone...this is the only thing that worked for me!!!
    Number1talent

    I am working with mostly DVCPro ftg, with a few clips in MiniDV.  I did have roughly 10 clips with speed changes, but they exported fine two weeks ago, when I did this the first time.  (Actually, it didn't keep the speed changes, but it did export with media to FCP). 
    The clips do have reel numbers and seem to be of the right length per clip but there's just no picture and no assoicated media with which to relink the clip.
    I'm on Color 1.5.3
    Any possible ideas?  Thank you for your help...

  • [SOLVED] Exporting terminal output to URL?

    Hello!
    I can't start graphicall user interface (gnome 3) and am stuck in linux terminal. Is there any way i could export my linux terminal commands or files to any URL where i could acess them later on another PC? I know this exists but i forgot how it is done.
    TY
    Last edited by 71GA (2012-11-19 11:57:10)

    I have an alias in /etc/bash.bashrc:
    alias web='curl -F "sprunge=<-" http://sprunge.us'
    Usage:
    $ web < /path/to/file
    If it's in my user dir, I don't even have to specify its path:
    $ web < .xinitrc
    Obviously, if I'm not in my user dir, first I just run a simple:
    $ cd

  • [SOLVED] Wired I.M. problem in GnuCash

    The problem is about GnuCash and Chinese Input Method. When I launch any IM, no matter fcitx, ibus or scim, I can input characters in GnuCash but cannot select and delete them. If I kill the IM, everything is OK. I am not sure whether it is the conflict between Gtk2 apps and IM. It's really annoying.
    Gnucash: 2.4.10
    fcitx: 4.2.1
    scim: 1.4.11
    ibus: 1.4.1
    After add the following to ~/.xprofile, problem is solved.
    export GTK_IM_MODULE=fcitx
    export QT_IM_MODULE=fcitx
    export XMODIFIERS="@im=fcitx"
    Last edited by exaos (2012-03-18 13:29:05)

    Locking multipost

  • When you create a link to a web page in numbers and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem? Thank yo

    When you create a link to a web page in numbers "Mavericks" and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text (with Cmd-K) in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem?
    Thank you.

    Hi again Raja!
    I did as you recommended and installed HTTPWatch and below is the outcome of that program. It is the exact string with the only exception of obfuscated servernames and portnumbers. The last part that begins with "sap_ep_baseurl=" makes me suspicious, is that part really correct? It looks like it's lacking things.
    Best regards
    Benny
    http://<server:port>/sap/bc/bsp/sap/Z_PURCHASE_REQ/process.htm?
    sap-syscmd=nocookie&sap-client=200&sap-language=sv&style_sheet=
    http%3A%2F%2F<server>%3A<port>%2Firj%2Fportalapps%2F
    com.sap.portal.design.portaldesigndata%2Fthemes%2Fportal%2Fsap_tradeshow%2F
    controls%2Fcontrols_ie6.css%3F7.0.10.0.0&sap-cssversion=7.0.10.0.0&sap-tray-type
    =null&sap-tray-padding=null&sap-accessibility=&sap-ep-version=7.00.200611091758&
    sap_ep_version=7.00.200611091758&sap_ep_baseurl=http%3A%2F%2F
    <server>%3A<port>%2Firj%2Fportal&matnr=9780198603641

  • Export to Pdf Not Working - Blank Pages [Solved]

    Peace all!
    I've been having this problem about some time now. Any export to pdf produces a pdf with the correct number of pages but they are all blank! Tried fiddling with the options to no avail. Also tried setting the options to use openoffice dialogs.
    In an attempt to try to find some log of errors, I started writer from the console with soffice -writer and used the export pdf function but no errors are spitted out. I'm stumped...
    Version 3.0.1
    Thanks in advance!l
    Last edited by onguarde (2009-05-11 14:14:38)

    http://www.oooforum.org/forum/viewtopic.phtml?t=83464
    Ok, I managed to solve this by deleting the old .openoffice config folder and starting afresh. Not sure what's messed up though but the folder has been used since OO version 2.

  • Audacity 1.3.3, how to export OGG files? [SOLVED]

    I can't find the way to export files in ogg format using the latest Audacity (1.3.3). Even in the preferences menu it doesn't appear anymore (edit > preferences > file formats, I only see mp3, no WAV, FLAC, OGG,...) Then when exporting, I can't choose mp3 or ogg, just wav and others.
    Anybody knows how this new version works?
    Thanks.
    Last edited by Bogart (2007-06-02 23:39:21)

    It is strange. I have the necessary libs installed, also tried deleting configuration files, but still the same. Downgrading to 1.3.2-beta solves the problem, though. Here are some screenshots so you see the problem:
    Audacity-1.3.2:
    Audacity-1.3.3:
    And when I select File > Export, 1.3.2 gives me options (wav, ogg, flac, mp3) while 1.3.3 gives me none

  • [solved] AC3d import/export in blender.

    i've looked around, tried a few versions of blender from aur,
    and have yet to encounter a version that comes pre-equiped with AC3D import/export support.
    some of the guys in #blender on freenode inform me their 2.49 versions have it, and that it's not yet in 2.5 versions.
    i dont mind using 2.49...  so long as i can get AC3d to work.
    anyone else using blender?   and have AC3D support, in archlinux?
    if so, how so, and can i get a link to the script? 
    [edit
    lol.  classic.  and the very next google search, i find what looks to be it.  http://www.koders.com/python/fid3F45792 … 8DE46.aspx & http://www.koders.com/python/fid55B4071 … 5FEE9.aspx
    ... trying it out now.  might have to mark this soved before anyone else even sees it.  ..  hopefully. ^_^
    [edit2
    looks good, added to ~/.blender/scripts, ac3d_import.py & ac3d_export.py, and am using the 2.49b-1 from pacman (not the -2 from aur, incase that makes a difference), restarted, and the .ac option is added to both import and export submenus.   yet to try them out, but i'll mark it solved already anyway]
    [edit3
    premature.  they're there... but wont open any .ac files.   probably too old a script.
    help still sought.
    [edit4
    found
    /usr/share/blender/scripts/ac3d_export.py
    /usr/share/blender/scripts/ac3d_import.py
    though the files in this directory are clearly not being recognised by blender, so added these two to ~/.blender/scripts, but still cannot import .ac files.   
    Last edited by Digit (2010-11-24 10:43:34)

    got it working now.  in 2.49b. idk what else i did besides what i've jibber-jabbered in the op, (and having restarted the laptop after it decided to switch itself off from overheating), but import is working now ~*tests-export*~ and so is export.  hehe, thankyou arch linux forums for humoring me while i think out aloud.  ^_^
    Last edited by Digit (2010-11-24 10:45:11)

  • Addressbook cant read .csv-files exported from Numbers (Solved)

    Hello,
    I can hardly believe this myself, but please try. Numbers separates fields by semicolons while exporting my address data to a .csv file, which seems completely feasible to me. When trying to import this into Addressbook, the applications moans that it cant import this file because it is not valid.
    Do programmers from separate groups at Apple ever test whether their Apps work together? I just expect them to do so and I cant imagine a case more simple then that. This is really poor. The reason why I put this complaint in the Numbers discussion is, that there is no forum for Adressbook (whereas iCal got his own - why?).
    And the reason why I pick up this topic again in a new thread is that the other thread I found related to transferring data from Numbers to Addressbook took a weird twist when they resorted to writing a complicated and elaborate Apple Script for this basic task. The Script provided there messed up with valuable Address data in the first version, so I am not going to try it here.
    I just took the search and replace functionality of my text editor to solve it for me. But I still believe that this should work without headaches right out of the box. So Addressbook programmers please hurry up, go, fix it. It is just too distressing. Imagine, I did this in public with Windows guys around. I dont want to experience such again.
    Yours, Christian Völker

    Hello Yvan,
    yes, I agree that Numbers is doing fine and by your explanation I even know why it does the way it does, but Addressbook remains broken.
    Regarding your script I did not even bother to read it and I just dont trust it because I cant sue you in case something goes wrong. I prefer to do my own faults and in this case it was an even better and faster solution for me to use my text editor with search and replace.
    To make the story complete, after the data was accepted, Addressbook wasnt able to recognize the field labeled "Email" as an Email Address and Street as a Street Name. After telling Addressbook about the meaning of the fields, it consistently crashed while importing. No, this is no good. A Script wont heal these flaws.

  • I use lion 10.7.2 and iPhoto latest version but when I export a slide show when I play it . It plays about half of the slide show and screen become white ? How can I solve it ? Is it bug or my computer problem

    I use lion 10.7.2 and iPhoto latest version but when I export a slide show when I play it . It plays about half of the slide show and screen become white ? How can I solve it ? Is it bug or my computer problem

    I would also like to know the answer to this. I am having the exact same problem.

  • Aperture to export photos either TIFF or JPEG files, highlight and shadow transition has obvious faults, this problem solved!?

    Aperture to export photos either TIFF or JPEG files, highlight and shadow transition has obvious faults, this problem solved!?

    What problem?
    You will have to be _a lot_ more specific if you'd like responsible feedback.
    I export thousands of TIFF and JPG files a week with no obvious faults.
    (Sent from my magic glass.) 

  • My workaround to solve flickering issues on Program Monitor and Exported files

    Hello guys,
    I am working with a combo of this effects: Fast Color Corrector, Three Way Color Corrector, Warp Stablizer, MB Cosmo and Neat plugin. Editing 1080p24 .MOV files from GH4 and GH3. WIN 8.1, PP 8.0.1, i7 3770K, 16G and a old GF250. After dozen tests... exporting, reinstalling, converting... I found a workaround to solve the flicker issue in Premiere.
    When the playback is set to Mercury Playback Engine Software Only, the issues occurs randomly only with clips that have video effect.
    So, I set back to the Mercury Playback Engine GPU Acceleration (CUDA) and the issue happens only in clips with Warp Stabilizer effect. In these clips, I replace for AE comps and stablize inside AE.
    Hope this helps some one. Sorry for the english. Cheers from Brazil.

    Ann Bens escreveu:
    What if you nest the clips with effects first and then apply the warp?
    The error still happens.
    Let me explain somethings... in these clips with Warp Stabilizer effect, the bar render is Yellow but the image freezes with Mercury Playback Aceleration. I think my GPU cant render this. If I try to export, the message error is a generic "Error compiling movie. Unknow error". So, I  tried to put any Distort video effect, the bar render now is Red, and I can playback and export, but the flicker issue occurs.
    Hope these infos help.
    Reggards
    Diego

  • Letters 'messed up' when InDesign CS4 file is exported to PDF - how to solve?

    I hope somebody has had this problem before and knows how to solve.
    Situation: Indesign CS4.
    Book file, with 130 linked documents. Everything is ready to go to Press.
    I exported the book to PDF. Once I opened the PDF, in some of the rows on the text, all letters are 'messed up'!- see screenshots below.
    Very strange, since I made several other PDF-exports (up to 20) in the days before - and everything went fine before.
    Does anybody know how to solve this problem?
    Has it maybe something to do between 'Press quality' and 'Print quality' settings?
    The problem seems somehow related to the font, since everything else is just fine.
    NOTE: the sentences below you cannot read are NOT made that way by me ;-), to prevent it from being able to read it. This is how it comes out the PDF.

    Hello everyone
    we had the same problem
    exporting CS5 file into PDF seems to work fine but while opening the PDF file :
    a) got a message telling the /Widths are corrupted for some fonts
    b) when zooming on typos, we can see the approach/kerning is way not perfect between letters
    c) on some text lines the letters are completly messed up ( see example below ) :
    S O L U T I O N
    a) open  the CS5 indesign file
    b) export as PDF : this PDF will be wrong
    c) keep the CS5 indesign file open, don't close it
    d) export again as PDF ( different or same name ) this 2nd PDF file will be OK
    SO THE SECOND EXPORTED PDF IN A ROW IS OK
    NOTE :
    exporting as .inx or .idml just give an  illusion
    you may get an OK PDF in some circonstances
    but if you close the indesign file, open it and export it : the first PDF is WRONG
    hoping this will help you
    please confirm or infirm this "solution"
    our configuration
    - Mac OSX ( 10.5.8 )
    - InDesign CS5 last patched ( NOT 5.5 )
    - most of fonts are OpenType ( .otf )
    - the problem occurs on some particular files
    - i know that these files were exported once through "book" functionnality ( could this explain ? )
    Good Luck

  • How to solve this internal error in exporting?

    Each time I export photos to my hard drive, there's always an error message displayed at the end of exporting shows:
    Does anyone know how to solve this problem? It troubled me for a long time...
    Any reply would be highly appreciated!

    Thanks Dorin and jjm01403!
    I have checked the post-export field and it was blank indeed. The problem no longer occures after I choose the "Do Nothing" option.
    Thanks again for your help!

Maybe you are looking for

  • Multiple ALVs in a single view - dropdown not populated

    Hi, I have a web dynpro window in which I am having 2 ALVs. I have created 2 refernces to the class "CL_SALV_WD_CONFIG_TABLE" for each ALV (MR_ALV_1 and MR_ALV_2). The data to the ALVs comes from a node (MR_NODE_ALV). Now in the ALvs I have a column

  • A wishlist for Apple: Leopard Server mail services

    Apple, At 10.5.2, we find that most of the problems with email accounts and VH sites are ... still broken. After they are addressed (cull these forums for an indication of the problems the current code does not address), I'd like to suggest some othe

  • Three questions: new songs, two devices, organizing albums

    I have searched and searched and still have three questions that I can't find an answer to. I hope you guys can help. 1) I have a few albums that are not organized with each other and are duplicates and such, when I upload to itunes match, will those

  • Problem while Creating BOM using LSMW Direct Input

    Hi  all , I am trying to create the BOM Using LSMW Direct Input Method . I am getting problem at step 9 that is Read Data. It is able to read the values from header and item files . but it is not able to write , so the Written is 0 always . I put the

  • Where can I download Forms 6i?

    I'm running Win98se at home so I need Froms 6i. Although I can find a lot of documentation on Forms 6i, a download is nowhere to be found. Either i've been looking in the wrong places in which case I could use some directions, or it cannot be downloa