LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2019, 02:44 PM   #1
playker
LQ Newbie
 
Registered: Nov 2009
Location: Poland
Distribution: Slackware 14.2
Posts: 18

Rep: Reputation: 8
Adobe Air on Slackware 14.2 32-bit


The Polish finance ministry publishes an application for sending tax declarations over the Internet (called "e-Deklaracje Desktop"). It's supposed to work on Windows, Mac and Linux. It requires Adobe Air and Adobe Reader.

I downloaded from get.adobe.com/air the last version of Adobe Air that was released for Linux, but the graphical installer failed with an error:

Quote:
Adobe AIR could not be installed because this is not a supported Linux distribution. Only RPM- and Debian-based Linux distributions are supported.
The rpm tool is present in Slackware, but Adobe Air uses commands such as "rpm -q rpm" which fail on Slackware (and on any OS that uses something other than rpm or dpkg to install most packages in the system). Adobe Air is not open source and the installer code is in a 20MB binary .so file, but using strace one can find out what commands it runs on the system.

I had to create a simple wrapper so that Adobe Air can use rpm on Slackware.

/usr/bin/airwrap:
Code:
#!/bin/sh
export PATH="/usr/lib/airwrap/rpm:$PATH"
exec "$@"
/usr/lib/airwrap/rpm/rpm:
Code:
#!/bin/sh
if [ "$1" = "-q" -a "$2" = "rpm" ]
then
  echo rpm-4.12.0.1-1.i586
  exit 0
elif [ "$1" = "--qf" -a "$2" = '%{VERSION}' -a "$3" = "-q" -a "$4" = "rpm" ]
then
  echo 4.12.0.1
  exit 0
elif [ "$1" = "-U" ]
then
  exec /bin/rpm --nodeps "$@"
else
  exec /bin/rpm "$@"
fi
It can be used like this:

# airwrap ./AdobeAIRInstaller.bin
# airwrap "/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer"

The first command starts the installation of the Adobe Air environment (you can download the installer from the Adobe website). The second command starts the installation of an application from an .air file.

Here are some screenshots in my local language from the installation and running of Adobe Air and an Air application on Slackware 14.2 32-bit:

https://i.imgur.com/2RSZALH.png

https://i.imgur.com/E0MGMQI.png

https://i.imgur.com/VM00p7I.png

https://i.imgur.com/xtpJakd.png

A Slackware package, airwrap.txz, can be downloaded from dropbox here: airwrap.txz.

Searching this forum I haven't found anyone using a similar method to run Adobe Air on Slackware, so perhaps this post will be useful. The same method could also work on other distributions such as Arch with a little modification.
 
Old 01-03-2019, 05:23 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,159

Rep: Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508


Good job! Thanks for posting.
 
1 members found this post helpful.
Old 01-03-2019, 06:28 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,628

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I just use WINE.
 
Old 01-04-2019, 06:22 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,438

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
Dugan's solution is probably best because you will get a more recent version of Air. Failing that, I still don't think installing an rpm on Slackware directly is a good idea and can be avoided. Just extract the contents of the archive instead.

Switch to an empty working directory and fetch the binary.

Code:
$ wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin
The .bin actually has a .tar.lzma archive inside it. You just need to find it. Grep can help you do that e.g. (assuming bash)

Code:
$ LC_CTYPE=C grep -abom1 ]$'\000\000'....$'\377\377\377\377\377\377' AdobeAIRInstaller.bin 
6704:]???????
Add 1 to this value (e.g. 6705). The contents of the internal, compressed tar can be extracted like so:

Code:
$ tail -c+6705 AdobeAIRInstaller.bin | xz -qqd | tar xv
./
./setup.swf
./setup
./build/
./build/opt/
./build/opt/Adobe AIR/
./build/opt/Adobe AIR/Versions/
./build/opt/Adobe AIR/Versions/1.0/
./build/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer
./build/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer.swf
./build/opt/Adobe AIR/Versions/1.0/Resources/
./build/opt/Adobe AIR/Versions/1.0/Resources/rpmbuilder
./build/opt/Adobe AIR/Versions/1.0/Resources/libeggtray.so
./build/opt/Adobe AIR/Versions/1.0/Resources/ko.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/ko.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/libadobecertstore.so
./build/opt/Adobe AIR/Versions/1.0/Resources/control.spec
./build/opt/Adobe AIR/Versions/1.0/Resources/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/cs.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/cs.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/nl.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/nl.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/libWebKit.so
./build/opt/Adobe AIR/Versions/1.0/Resources/airappinstaller
./build/opt/Adobe AIR/Versions/1.0/Resources/setup.deb
./build/opt/Adobe AIR/Versions/1.0/Resources/zh_Hans.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/zh_Hans.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/appentry
./build/opt/Adobe AIR/Versions/1.0/Resources/it.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/it.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/libaddkey.so
./build/opt/Adobe AIR/Versions/1.0/Resources/de.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/de.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/libflashplayer.so
./build/opt/Adobe AIR/Versions/1.0/Resources/digest.s
./build/opt/Adobe AIR/Versions/1.0/Resources/stylesNative.swf
./build/opt/Adobe AIR/Versions/1.0/Resources/installCertificate
./build/opt/Adobe AIR/Versions/1.0/Resources/setup.swf
./build/opt/Adobe AIR/Versions/1.0/Resources/zh_Hant.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/zh_Hant.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/adobecp.vch
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-mime
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-open
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-icon-resource
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-screensaver
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-desktop-menu
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-email
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-desktop-icon
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-user-dir-lookup
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-autostart
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-user-dirs-update
./build/opt/Adobe AIR/Versions/1.0/Resources/xdg-utils/xdg-su
./build/opt/Adobe AIR/Versions/1.0/Resources/aucm
./build/opt/Adobe AIR/Versions/1.0/Resources/appinstall.spec
./build/opt/Adobe AIR/Versions/1.0/Resources/ja.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/ja.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/tr.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/tr.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/Adobe AIR Updater
./build/opt/Adobe AIR/Versions/1.0/Resources/support/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/AdobeAIR.desktop
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/22x22/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/22x22/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/22x22/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/128x128/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/128x128/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/128x128/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/64x64/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/64x64/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/64x64/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/64x64/AirWarning.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/48x48/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/48x48/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/48x48/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/24x24/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/24x24/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/24x24/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/32x32/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/32x32/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/32x32/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/96x96/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/96x96/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/96x96/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/12x12/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/12x12/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/12x12/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/20x20/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/20x20/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/20x20/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/36x36/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/36x36/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/36x36/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/192x192/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/192x192/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/192x192/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/16x16/
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/16x16/AdobeAIR.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/icons/16x16/air.png
./build/opt/Adobe AIR/Versions/1.0/Resources/support/AdobeAIR.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/libadobecp.so
./build/opt/Adobe AIR/Versions/1.0/Resources/curl-ca-bundle.crt
./build/opt/Adobe AIR/Versions/1.0/Resources/application.directory
./build/opt/Adobe AIR/Versions/1.0/Resources/en.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/en.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/Thawte Root Certificate.cer
./build/opt/Adobe AIR/Versions/1.0/Resources/libpacparser.so
./build/opt/Adobe AIR/Versions/1.0/Resources/pkcon_air
./build/opt/Adobe AIR/Versions/1.0/Resources/libadobecp15.so
./build/opt/Adobe AIR/Versions/1.0/Resources/fr.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/fr.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/ru.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/ru.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/application.desktop
./build/opt/Adobe AIR/Versions/1.0/Resources/appinstall/
./build/opt/Adobe AIR/Versions/1.0/Resources/appinstall/prerm
./build/opt/Adobe AIR/Versions/1.0/Resources/appinstall/copyright
./build/opt/Adobe AIR/Versions/1.0/Resources/appinstall/postinst
./build/opt/Adobe AIR/Versions/1.0/Resources/appinstall/control
./build/opt/Adobe AIR/Versions/1.0/Resources/Adobe Root Certificate.cer
./build/opt/Adobe AIR/Versions/1.0/Resources/Adobe AIR.vch
./build/opt/Adobe AIR/Versions/1.0/Resources/pt.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/pt.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/sv.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/sv.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/pl.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/pl.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/libcurl.so
./build/opt/Adobe AIR/Versions/1.0/Resources/es.lproj/
./build/opt/Adobe AIR/Versions/1.0/Resources/es.lproj/ContentUIText.xml
./build/opt/Adobe AIR/Versions/1.0/Resources/control/
./build/opt/Adobe AIR/Versions/1.0/Resources/control/conffiles
./build/opt/Adobe AIR/Versions/1.0/Resources/control/prerm
./build/opt/Adobe AIR/Versions/1.0/Resources/control/copyright
./build/opt/Adobe AIR/Versions/1.0/Resources/control/postinst
./build/opt/Adobe AIR/Versions/1.0/Resources/control/preinst
./build/opt/Adobe AIR/Versions/1.0/Resources/control/control
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libplds4.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libplc4.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libssl3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libnss3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libnspr4.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libnssutil3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libsmime3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libnssdbm3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libnssckbi.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/0d/libnssdbm3.chk
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libplds4.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libplc4.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libssl3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libnss3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libnspr4.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libnssutil3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libsmime3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libnssdbm3.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libnssckbi.so
./build/opt/Adobe AIR/Versions/1.0/Resources/nss3/1d/libnssdbm3.chk
./build/opt/Adobe AIR/Versions/1.0/libCore.so
./build/var/
./build/var/opt/
./build/var/opt/Adobe AIR/
./build/var/opt/Adobe AIR/Shared/
./build/var/opt/Adobe AIR/Shared/Adobe/
./build/var/opt/Adobe AIR/Shared/Adobe/AIR/
./build/var/opt/Adobe AIR/Shared/Adobe/AIR/Updater/
./build/etc/
./build/etc/opt/
./build/etc/opt/Adobe/
./build/etc/opt/Adobe/certificates/
./build/etc/opt/Adobe/certificates/AIR/
./build/etc/opt/Adobe/certificates/AIR/nss/
./build/etc/opt/Adobe/certificates/AIR/nss/cert8.db
./build/etc/opt/Adobe/certificates/AIR/nss/key3.db
./build/etc/opt/Adobe/certificates/AIR/nss/secmod.db
./build/etc/opt/Adobe/certificates/AIR/crypt/
./build/etc/opt/Adobe/certificates/AIR/crypt/1e8e7201.0
./build/etc/opt/Adobe/certificates/AIR/crypt/c1e65b0d.0
./build/etc/opt/Adobe/certificates/AIR/crypt/5021a0a2.0
./build/etc/opt/Adobe/certificates/AIR/crypt/7651b327.0
./build/etc/opt/Adobe/certificates/AIR/crypt/673b5b.0
./build/etc/opt/Adobe/certificates/AIR/crypt/2afc57aa.0
./build/etc/opt/Adobe/certificates/AIR/crypt/7a481e66.0
./build/etc/opt/Adobe/certificates/AIR/crypt/256fd83b.0
./build/etc/opt/Adobe/certificates/AIR/crypt/693dcfe1.0
./build/etc/opt/Adobe/certificates/AIR/crypt/c33a80d4.0
./build/etc/opt/Adobe/certificates/AIR/crypt/54edfa5d.0
./build/etc/opt/Adobe/certificates/AIR/crypt/facacbc6.0
./build/etc/opt/Adobe/certificates/AIR/crypt/b0f3e76e.0
./build/etc/opt/Adobe/certificates/AIR/crypt/7d453d8f.0
./build/etc/opt/Adobe/certificates/AIR/crypt/config.xml
./build/etc/opt/Adobe/certificates/AIR/crypt/111e6273.0
You can move the files under the build directory into place or create a .SlackBuild to automate all of this and allow you to easily uninstall at a later date.
 
1 members found this post helpful.
Old 01-04-2019, 06:24 AM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,438

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
It is the same shit as with reader, e.g. I wrote this 3 years ago

https://gist.github.com/ruario/42c6d49147863d5dfe78

[EDIT]: I see the Slackbuild for Reader still uses the tar.bz2, even though the bin is 13.5 Mb smaller. That is a lot of wasted bandwidth by all the people who have used this SlackBuild over the years. Oh well, I tried…

Quote:
Originally Posted by ruario View Post
I did once suggest this […] to the maintainer for the SBo SlackBuild but never heard back (although the Arch PKGBUILD maintainer did take my suggestion).

Last edited by ruario; 01-04-2019 at 07:32 AM. Reason: Added self-quote
 
1 members found this post helpful.
Old 01-04-2019, 07:30 AM   #6
playker
LQ Newbie
 
Registered: Nov 2009
Location: Poland
Distribution: Slackware 14.2
Posts: 18

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by ruario View Post
It is the same shit as with reader, e.g. I wrote this 3 years ago

https://gist.github.com/ruario/42c6d49147863d5dfe78
Adobe Air doesn't work the same way as Adobe Reader. It requires either rpm or dpkg to install .air applications on the system. So if you extract and install the files using your method, you won't be able to run "/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer" because it fails to detect either rpm or dpkg (possibly you can use "airwrap" from the first post to run it but I haven't tested with this kind of installation).

As for Wine I associate it with glitches and problems in various applications so I wouldn't be happy using it (or recommending it) for a tax declarations app for example (which works fine on supported Linux distributions).
 
Old 01-04-2019, 07:42 AM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,438

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
Quote:
Originally Posted by playker View Post
Adobe Air doesn't work the same way as Adobe Reader. It requires either rpm or dpkg to install .air applications on the system. So if you extract and install the files using your method, you won't be able to run "/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer" because it fails to detect either rpm or dpkg (possibly you can use "airwrap" from the first post to run it but I haven't tested with this kind of installation).
Then I would suggest you look at tweaking your “airwrap” with a system that does not call the real rpm but rather a similarly named shell script that extracts, converts and installs them with native tools. You don't want to be installing rpms if you can avoid it. AFAIK rpm is provided to allow you to query rpm meta-data and assist with repacking. You are not supposed to use it to install anything but of course it is your system and your choice.

P.S. Please don't take my criticism the wrong way. Your idea and method is clever, I just think that avoiding rpm altogether should be the end goal.
 
Old 01-04-2019, 10:54 AM   #8
playker
LQ Newbie
 
Registered: Nov 2009
Location: Poland
Distribution: Slackware 14.2
Posts: 18

Original Poster
Rep: Reputation: 8
All criticism is fine. What you're suggesting is more ambitious but requires more work. It's possible that calls to "rpm -q <app_name>" and "rpm -e <app_name>" (if made by Adobe Air) would need to be handled specially, if Air applications are not managed by rpm on the system. Also updating an Air application to a new version would need to be tested.

If rpm in Slackware is only meant for querying package files then why does the rpm description in Slackware even suggest using --force and --nodeps options

Code:
rpm: rpm (RPM package format tool)
rpm:
rpm: RPM is a tool from Red Hat Software used to install and remove
rpm: packages in the .rpm format.  When installing RPM packages on
rpm: Slackware, you may need to use the --nodeps and --force options.
rpm: Before installing any binary package, it's wise to examine it to
rpm: see what it's going to do, and if it will overwrite any files.  You
rpm: can use rpm2tgz to convert .rpm packages to .tgz packages so you
rpm: can look them over.

Last edited by playker; 01-04-2019 at 03:06 PM.
 
Old 01-04-2019, 11:57 AM   #9
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 FVWM
Posts: 571

Rep: Reputation: 161Reputation: 161
In reading the description it is clear that Pat was recommending looking at the binary file first! He then goes on further to recommend that a proper Slackware package be created. There are many recent threads on this forum about using rpm2tgz and the errors it will create and the successes, you should review them. Since I have used rpm and rpm2tgz to install Brave and originally Palemoon, I'm very familiar with these tools and find I totally agree with ruario, don't use them if you want a working Slackware system.
 
Old 01-05-2019, 04:44 AM   #10
playker
LQ Newbie
 
Registered: Nov 2009
Location: Poland
Distribution: Slackware 14.2
Posts: 18

Original Poster
Rep: Reputation: 8
Sometimes programs come with their own installers/updaters and using them is the only easy way. Sometimes it's similar but the programs rely on rpm or dpkg instead. Using these tools has this advantage over custom installers that you can see the list of installed files and the installation scripts.

I agree with the Slackware advice to check the files and scripts when installing an rpm. In the case of Adobe Air and Air applications all files are installed under /opt/<dir>. The installation scripts mainly create application menu shortcuts, desktop sbortcuts and update the MIME type and file extension database.

I don't believe that using rpm or rpm2tgz safely will make a Slackware system broken.
 
Old 01-05-2019, 06:58 AM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,159

Rep: Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508
Quote:
Originally Posted by playker View Post
I don't believe that using rpm or rpm2tgz safely will make a Slackware system broken.
And you're right... Otherwise these tools would not be provided by the maintainers.

I've used rpm2tgz many times without issue.
 
Old 01-05-2019, 08:39 AM   #12
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 323

Rep: Reputation: 124Reputation: 124
Hello playker,

Another Slackware user from Poland here. It's funny but as soon as I have read the subject I already knew what problem it's going to describe. I've also been using e-deklaracje app for a few years but I had a different method for starting it on Slackware. I tried it now again and it still seems to work well. I first download 'Adobe AIR 2.6 SDK Linux (35.8 MB)' from https://helpx.adobe.com/air/kb/archi...k-version.html, unzip e-deklaracjedesktop.air to ../app/ext directory and run it like that:
Code:
./bin/adl -nodebug ../app/ext/META-INF/AIR/application.xml  ../app/ext
Application starts, I didn't try to submit the tax declaration though. I remember that a couple of years ago I asked people on #slackware for help and someone was so kind that he even provided a tarball with some binaries. It was the very first time I realized that free open source software can have better support than commercial software.

Anyway, I don't use e-deklaracje anymore these days as they started to provide pre-filled reports and you only need a web browser to access them. It was a bad idea to use Adobe Air in the first place, Adobe stopped supporting Linux in 2011.
 
1 members found this post helpful.
Old 01-05-2019, 09:13 AM   #13
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 323

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by bamunds View Post
In reading the description it is clear that Pat was recommending looking at the binary file first! He then goes on further to recommend that a proper Slackware package be created. There are many recent threads on this forum about using rpm2tgz and the errors it will create and the successes, you should review them. Since I have used rpm and rpm2tgz to install Brave and originally Palemoon, I'm very familiar with these tools and find I totally agree with ruario, don't use them if you want a working Slackware system.
Instead of modifying one's real system one could consider using a throw-away virtual machine for that kind of 'tests'. I definitely would.
 
1 members found this post helpful.
Old 01-05-2019, 12:05 PM   #14
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 FVWM
Posts: 571

Rep: Reputation: 161Reputation: 161
Which is exactly what dugan suggested and I agree with.
 
Old 01-06-2019, 02:37 AM   #15
playker
LQ Newbie
 
Registered: Nov 2009
Location: Poland
Distribution: Slackware 14.2
Posts: 18

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by average_user View Post
I first download 'Adobe AIR 2.6 SDK Linux (35.8 MB)' from https://helpx.adobe.com/air/kb/archi...k-version.html, unzip e-deklaracjedesktop.air to ../app/ext directory and run it like that:
Code:
./bin/adl -nodebug ../app/ext/META-INF/AIR/application.xml  ../app/ext
Yes, it is another method which could be used, I've seen something similar when looking at past threads about Adobe Air. I can understand why some people will prefer this method, but it's hard to tell if Air applications will always work correctly when started this way (using the SDK instead of the runtime and using "adl").

Quote:
Originally Posted by average_user View Post
Anyway, I don't use e-deklaracje anymore these days as they started to provide pre-filled reports and you only need a web browser to access them. It was a bad idea to use Adobe Air in the first place, Adobe stopped supporting Linux in 2011.
In my case for example I need to declare extra income in the PIT-36 form, it's not covered by the pre-filled reports.

I can sort of understand why they chose Adobe Reader for the interactive forms and why Adobe Air to integrate with Reader but as you say it's not a good idea if they want to support Linux.

Last edited by playker; 01-06-2019 at 02:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Improving the Linux Ecosystem from Within: Thoughts on Adobe Axing Adobe Air for Linux LXer Syndicated Linux News 0 06-19-2011 09:30 AM
LXer: Install Adobe AIR and 10 Air Applications on Ubuntu 8.10 LXer Syndicated Linux News 0 12-20-2008 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration