Page 1 of 1

pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 12:42
by JustOff
I have a problem installing Pale Moon on Manjaro XFCE 17.0.2 using pminstaller.sh. It shows that Pale Moon is already installed, while it is not.

pminstaller.sh uses this code to detect Pale Moon presence:

Code: Select all

pm_is_installed ()
{
which palemoon || [[ -d /opt/palemoon ]] || [[ -d /usr/lib/palemoon ]]
}

and it always returns true because of /usr/lib/palemoon exists, even when Pale Moon not installed.

PS: I'm aware that Manjaro has Pale Moon in AUR, but it would be nice if pminstaller.sh also worked.

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 13:33
by Moonchild
Why would /usr/lib/palemoon exist if it is not installed?

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 13:43
by JustOff
This is because in Manjaro there is a config for Pale Moon package:

Code: Select all

$ head -5 /usr/lib/palemoon/distribution/distribution.ini
[Global]
id=Manjaro
version=Rolling
about=Palemoon for Manjaro

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 14:03
by Moonchild
Then why aren't you using the package manager?

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 14:11
by JustOff
Simply as I wrote above:
it would be nice if pminstaller.sh also worked

Isn't it?

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 16:54
by Moonchild
Why? so you can have even more confusion about what people are using? XD

If the check in the script needs to be made more specific, it's of course an option. But it needs to remain generally applicable to all distros, so -too- specific won't work either because then you'll get the opposite: the script thinking the browser isn't installed, while it is...

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 17:54
by JustOff
Moonchild wrote:Why? so you can have even more confusion about what people are using? XD

Let's say I don't trust this AUR package (btw, I don't see it officially endorsed at http://linux.palemoon.org/) and therefore I want to use pminstaller.sh?

If the check in the script needs to be made more specific, it's of course an option.

Yes, that's exactly what I meant. It would be nice.

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 18:08
by Moonchild
If you don't trust the package, then you don't trust the package maintainer, and in turn don't trust the Manjaro project being run in a sane way. It did, after all, make it in the official distribution, or am I missing something here?

JustOff wrote:It would be nice.

(non-breaking) patches welcome

Re: pminstaller.sh problem on Manjaro

Posted: Tue, 11 Jul 2017, 18:28
by JustOff
Moonchild wrote:It did, after all, make it in the official distribution, or am I missing something here?

I don't know, so I would be grateful to you or Travis for any details on this matter.

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 04:20
by hobbledehoy899
I thought the AUR and Manjaro packages were official... In fact, they are.

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 04:40
by adesh
May I suggest force. If installer detects Pale Moon is already installed, an option can be given to forcefully continue or a help message to rerun the installer with --force if user feels detection is wrong.
./pminstaller.sh --force
“Don’t underestimate the Force.”

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 04:44
by adesh
hobbledehoy899 wrote:I thought the AUR and Manjaro packages were official... In fact, they are.

Not quite.
https://wiki.manjaro.org/index.php?title=Arch_User_Repository wrote:Warning: Use the AUR at your own risk! Support will not be provided by the Manjaro team for any issues that may arise relating to software installations from the AUR.

BTW I'm an Arch Linux user.

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 05:56
by hobbledehoy899
adesh wrote:Not quite.

Then why are they listed as being such???

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 06:12
by trava90
Last I knew Manjaro included repacks of the Pale Moon binaries I build in their repo. You can simply enter

Code: Select all

pacman -S palemoon


JustOff wrote:
Moonchild wrote:It did, after all, make it in the official distribution, or am I missing something here?

I don't know, so I would be grateful to you or Travis for any details on this matter.

As stated above, the packages in Manjaro's repo are simply repacks of the tarballs I produce. The AUR, however is a different story. The majority of the AUR "maintainers" have been very unwilling (putting it nicely) to conform to our standards and as such those packages cannot be endorsed as official (and should not be used to due known stability issues and/or the totally insane build configurations being used).

hobbledehoy899 wrote:I thought the AUR and Manjaro packages were official... In fact, they are.

No, they are not. Where are they being listed as official?

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 06:19
by adesh
hobbledehoy899 wrote:Then why are they listed as being such???

Off-topic:
I suggest you read AUR wiki page on Arch Linux. These packages are not provided by the distribution but by the community so that most of the software is easily available for users to install. It's upto the user to trust these packages and be responsible for any damage. The distribution is mostly providing the infrastructure to host the packages.

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 08:57
by JustOff
trava90 wrote:Last I knew Manjaro included repacks of the Pale Moon binaries I build in their repo.

Well, it seems I confused AUR with a package from Manjaro's repo, but the latter also does not look like a just repack:

vmware_2017-07-12_11-43-49.png

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 09:45
by Toa-Nuva
I may be wrong, but I thought the mentioned AUR package (palemoon-bin) is just a repack of the official binaries, and the Manjaro package is not.

As for the AUR package "palemoon-bin": I've never used it (yet), but there's these two lines in the PKGBUILD file:
source_i686=("palemoon-$pkgver.en-US.linux-i686.tar.bz2::http://linux.palemoon.org/installer/download.php?v=$pkgver&a=i686")
source_x86_64=("palemoon-$pkgver.en-US.linux-x86_64.tar.bz2::http://linux.palemoon.org/installer/download.php?v=$pkgver&a=x86_64")

Unless I'm completely wrong (which may very well be the case, because I'm actually not very familiar with the structure of PKGBUILD files), this means that installing this package will simply download the official binaries from linux.palemoon.org.
It's different for other packages, of course (such as "palemoon" without "-bin", which I assume will compile Pale Moon from the source code locally on your computer).

As for the Manjaro package, as JustOff already mentioned, there are these two lines "Palemoon for Manjaro" and "Manjaro - Rolling" in "Help" > "About Pale Moon". That's why I assumed that the Manjaro packages are custom builds.

Re: pminstaller.sh problem on Manjaro

Posted: Wed, 12 Jul 2017, 10:51
by adesh
Toa-Nuva wrote:I may be wrong, but I thought the mentioned AUR package (palemoon-bin) is just a repack of the official binaries, and the Manjaro package is not.

You are right.
I'm currently using palemoon-bin from AUR. People willing to compile can use the version without -bin; I personally cannot afford the compilation costs, also mozconfig is not sane.
But I've no experience with Manjaro so cannot say anything about that package.