Package Details: firefox-unbranded-bin 54.0.1.1497953364-1

Git Clone URL: https://aur.archlinux.org/firefox-unbranded-bin.git (read-only)
Package Base: firefox-unbranded-bin
Description: Standalone web browser from mozilla.org - Unbranded version (binary)
Upstream URL: https://wiki.mozilla.org/Add-ons/Extension_Signing#Latest_Builds
Keywords: browser gecko web
Licenses: GPL, MPL, LGPL
Conflicts: firefox, firefox-unbranded
Provides: firefox=54.0.1.1497953364
Submitter: LA-MJ
Maintainer: LA-MJ
Last Packager: LA-MJ
Votes: 8
Popularity: 0.053506
First Submitted: 2016-09-26 19:00
Last Updated: 2017-06-24 11:26

Required by (210)

Sources (3)

Latest Comments

rhendric commented on 2017-09-04 22:03

Okay, I did it.

Patch here: https://pastebin.com/raw/eLKzds8K

rhendric commented on 2017-08-18 14:05

Sadly, due to recent build system changes, this package is now a major version out of date.

Here are some links for the next intrepid explorer who tries to update this:

You can look at the release tags here to determine what revision you need:
https://hg.mozilla.org/releases/mozilla-release

Then, find the full version of that revision here:
https://tools.taskcluster.net/index/artifacts/gecko.v2.mozilla-release.revision

Then you can edit PKGBUILD:
_pkgver="<VERSION>"
_srcurl="https://index.taskcluster.net/v1/task/gecko.v2.mozilla-release.revision.<FULL REVISION>.firefox.linux64-add-on-devel/artifacts/public/build"
_file="target"
Remove ".${_lasttmstmp}" from pkgver, and change "curl -s" to "curl -Ls" in _sha512sum.

The _pkgver can be determined from the contents of "$_srcurl/$_file.json". So really all we need to automate this again is a way to get the most recently released full Mercurial version.

LA-MJ commented on 2017-07-22 07:38

Mozilla discontinued add-on-devel builds at buildbot:
https://bugzilla.mozilla.org/show_bug.cgi?id=1372241
but that does not seem to affect release branch for now.

The task cluster URLs:
https://tools.taskcluster.net/index/artifacts/gecko.v2.mozilla-release.latest.firefox/linux64-add-on-devel (same build atm)
https://tools.taskcluster.net/index/artifacts/gecko.v2.mozilla-beta.latest.firefox/linux64-add-on-devel (actually older)

LA-MJ commented on 2016-11-17 21:24

@StephenBrown2 I have missed .SRCINFO only once and fixed it immediately.

Bear in mind that Arch wiki puts emphasis on using makepkg/pacman manually and this PKGBUILD is setup to be intentionally reusable. I. e. You would need to download it only once.

I am using yaourt just fine btw. I suggest you raise an issue with pacaur. I don't understand how it is so popular being so inertial. There are many PKGBUILDs that get modified dynamically. All -git packages, for instance. Surely, they can't all fail?

Alternatively, make use of customizepkg.

StephenBrown2 commented on 2016-11-17 19:27

For the last several updates, I've run into issues:

firefox-unbranded-bin package(s) failed to install. Check .SRCINFO for mismatching data with PKGBUILD.

Please do remember to run mksrcinfo before uploading package updates. It can be easy to miss, .SRCINFO being a hidden file and all.

EDIT: Actually, it seems that the PKGBUILD is getting modified when it attempts to install, apparently due to the same timestamp issue:

7 pkgver=50.1.0.1479380722
25 _lasttmstmp=$(curl -s "${_rooturl}/" | grep -Po '(?<=/)\d+(?=/")' | sort -n | tail -n1)
37 pkgver() {
38 >·······echo "${_pkgver}.${_lasttmstmp}"
39 }

The PKGBUILD and SRCINFO versions don't match after a new timestamp is determined, and so it fails.

I am using pacaur, btw, but I don't know that that's the issue.
Removing the pkgver() function allows it to install fine.

LA-MJ commented on 2016-10-21 18:14

@jpike I am not sure what you mean.

E.g. 49.0.2.1476439595 and 49.0.2.1476473615 differ by 9 files or so.

This is not a novel idea either. E. g. firefox-aurora uses buildID in pkgver. The reason is obvious, the source is different => so should the version be.

I am sorry that you are inconvenienced but this seems to be a pacaur deficiency to me. I confess I have not used it myself. I'm all ears if you have ideas how to improve the package.

jpike commented on 2016-10-20 13:22

Why do you include the timestamp in the package version? I've seen 4 timestamp updates now for firefox 49.0.2 and yet they were identical archives each time.

Every `pacaur -Sy` is delayed while it checks the timestamp when it's like this also.

LA-MJ commented on 2016-10-03 15:37

@jpike sorry for the typo (supposed to be printf). I guess echo is better.

no need to mark as OOD though

jpike commented on 2016-10-03 13:50

You should replace `print` with `echo` in pkgver().

jpike commented on 2016-10-03 13:45

You seem to be missing a build dependency:

/tmp/yaourt-tmp-james/aur-firefox-unbranded-bin/./PKGBUILD: line 38: print: command not found
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version:
==> ERROR: Makepkg was unable to build firefox-unbranded-bin.