SCIENTIFIC-LINUX-USERS Archives

July 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Fri, 25 Jul 2014 08:09:18 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (93 lines)
On Fri, Jul 25, 2014 at 7:39 AM, Nico Kadel-Garcia <[log in to unmask]> wrote:
> On Fri, Jul 25, 2014 at 7:27 AM, Tom H <[log in to unmask]> wrote:
>> On Fri, Jul 25, 2014 at 6:39 AM, Nico Kadel-Garcia <[log in to unmask]> wrote:
>>> On Thu, Jul 24, 2014 at 3:00 PM, ToddAndMargo <[log in to unmask]> wrote:
>>>> On 07/23/2014 09:05 AM, Mark Stodola wrote:
>>>>> On 07/23/2014 10:43 AM, ToddAndMargo wrote:
>>>>>
>>>>> I would first check the integrity of the file.
>>>>> I downloaded it here (not installed it, as I don't have SL6.5).
>>>>> It unpacked fine though using "rpm2cpio filename.rpm | cpio -idmv"
>>>>> I have the following checksum on it:
>>>>>
>>>>> It has an odd directory structure, it seems to put everything in
>>>>> /pdfstudio9.
>>>
>>> No, it puts it all in 'pdfstudio9'. Like I said, the author of the RPM
>>> needs a cluebat applied.
>>
>> It's unpacked into ".pdfstudio" not "pdfstudio" when I run "rpm2cpio
>> PDFStudio_v9_0_2_linux.rpm | cpio -idm".
>
> "rpm -qlp" reports as going in "pdfstudio", not even "/pdfstudio". I
> suspect that rpm and rpmbuild are unhappy about the use of unqualified
> filenames.

True (about "rpm -qlp ..."). I don't understand why rpm2cpio unpackes
into ".pdfstufio". Maybe it's trying "./pdfstudio" and fails because
there's relative path in the build. The postinstall script is:


$ rpm -qp --scripts PDFStudio_v9_0_2_linux.rpm
postinstall scriptlet:
if [ "$RPM_INSTALL_PREFIX0" = "" ]
then
RPM_INSTALL_PREFIX0="pdfstudio9"
fi
I4J_INSTALL_LOCATION="$RPM_INSTALL_PREFIX0"
cd "$I4J_INSTALL_LOCATION"
ln -sf "$I4J_INSTALL_LOCATION/pdfstudio9" /usr/local/bin/
/bin/echo -e "#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=PDF Studio 9
Exec=/bin/sh \"$I4J_INSTALL_LOCATION/pdfstudio9\"
Icon=$I4J_INSTALL_LOCATION/.install4j/pdfstudio9.png
" >> "$I4J_INSTALL_LOCATION/pdfstudio9.desktop"
chmod +x "$I4J_INSTALL_LOCATION/pdfstudio9.desktop"
ln -sf "$I4J_INSTALL_LOCATION/updater" /usr/local/bin/
ln -sf "$I4J_INSTALL_LOCATION/pdfstudiosu" /usr/local/bin/

if [ -f "$I4J_INSTALL_LOCATION/jre/lib/rt.jar.pack" ]; then
  old_pwd200=`pwd`
  cd "$I4J_INSTALL_LOCATION/jre"
  echo "Preparing JRE ..."
  jar_files="lib/rt.jar lib/jfxrt.jar lib/charsets.jar lib/plugin.jar
lib/deploy.jar lib/ext/localedata.jar lib/jsse.jar"
  for jar_file in $jar_files
  do
    if [ -f "${jar_file}.pack" ]; then
      bin/unpack200 -r ${jar_file}.pack $jar_file

      if [ $? -ne 0 ]; then
        echo "Error unpacking jar files. Aborting."
        exit 1
      fi
    fi
  done
  bin/java -Xshare:dump >/dev/null 2>&1
  cd "$old_pwd200"
fi

preuninstall scriptlet:
if [ "$RPM_INSTALL_PREFIX0" = "" ]
then
RPM_INSTALL_PREFIX0="pdfstudio9"
fi
I4J_INSTALL_LOCATION="$RPM_INSTALL_PREFIX0"
cd "$I4J_INSTALL_LOCATION"
if [ "$1" = "0" ] ; then

rm "/usr/local/bin/pdfstudio9" 2>/dev/null
rm "$I4J_INSTALL_LOCATION/pdfstudio9.desktop"
rm "/usr/local/bin/updater" 2>/dev/null
rm "/usr/local/bin/pdfstudiosu" 2>/dev/null
rm -Rf "$I4J_INSTALL_LOCATION/jre/lib"
fi


There's no SrPM because it doesn't seem to be OSS.

If you install from the upstream site, you have two options a 63M
shell script with embedded executable(s) and a 63M deb file.

ATOM RSS1 RSS2