Package Details: firefox-clearurls 1.26.1-1

Git Clone URL: https://aur.archlinux.org/firefox-clearurls.git (read-only, click to copy)
Package Base: firefox-clearurls
Description: Remove tracking elements from URL's to protect privacy while browsing.
Upstream URL: https://addons.mozilla.org/en-US/firefox/addon/clearurls/
Keywords: addon clearurl clearurls extension firefox firefox-addon privacy
Licenses: LGPL3
Groups: firefox-addons
Submitter: arojas
Maintainer: jeois (ryanbarillos)
Last Packager: ryanbarillos
Votes: 4
Popularity: 0.000051
First Submitted: 2022-04-01 17:17 (UTC)
Last Updated: 2024-04-23 22:42 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

jeois commented on 2022-08-16 02:45 (UTC)

@kousu Thanks for clearing that up. pikaur's DynamicUser and running as root both change the build system's binary paths whereas the 'strip-nondeterminism' package and PKGBUILD assumes Perl added "/usr/bin/vendor_perl/" to the environment executable paths.

I can change the PKGBUILD to point directly where the standard Arch 'strip-nondetermism' binary is located, but that doesn't necessarily help in a real clean root build, in which case, it should install all relevant dependencies to the chroot build system, otherwise if it just uses your user's libraries and binaries, then it's kinda defeats the purpose, and you might as well use your normal user as the build environment. Do you pikaur folks want me to do that? It might dirty up clean build deployment, but that might not be a real issue.

kousu commented on 2022-08-13 16:25 (UTC)

And btw @zimbi, is it possible that the difference between sway and GNOME is actually the difference between a user account and the root account somehow? If I run pikaur -S firefox-clearurls manually as my usual user it works, but if I run it as root (which I do sometimes to avoid) then it uses DynamicUsers and fails.

kousu commented on 2022-08-13 16:22 (UTC)

I also hit

/var/cache/private/pikaur/build/firefox-clearurls/PKGBUILD: line 38: strip-nondeterminism: command not found

while using pikaur.

It's definitely triggered because of ~/.config/pikaur.conf's [sync].AlwaysUseDynamicUsers setting. When 'yes' -- or when running pikaur as root, which forces that setting to be yes -- pikaur does

/usr/sbin/systemd-run --service-type=oneshot --pipe --wait --pty -p DynamicUser=yes -p CacheDirectory=pikaur -E HOME=/tmp -p WorkingDirectory=/var/cache/pikaur/build/firefox-clearurls makepkg --force

which prints

Running as unit: run-u292.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: firefox-clearurls 1.25.0-1 (Sat 13 Aug 2022 12:17:59 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 1.25.0.tar.gz...
...

I edited the PKGBUILD when pikaur asked me to add a couple of debugging lines:

package() {
  cd Addon-$pkgver
  set
  set -x
  install -d "$pkgdir"/usr/lib/firefox/browser/extensions
  zip -r \
    "$pkgdir"/usr/lib/firefox/browser/extensions/{74145f27-f039-47ce-a470-a662b129930a}.xpi \
    clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* \
    core_js/* css/* fonts/* _locales/*
  strip-nondeterminism -t zip "$pkgdir"/usr/lib/firefox/browser/extensions/*
}

And from that I found out that in the DynamicUser environment,

PATH=/usr/local/sbin:/usr/local/bin:/usr/bin

while strip-nondetermism is in /usr/bin/vendor_perl/strip-nondeterminism.

So an easy fix for pikaur users, until pikaur -- or systemd? -- gets its act together would just be to replace 'strip-nondetermism' with '/usr/bin/vendor_perl/strip-nondeterminism'.

zimbi commented on 2022-07-30 04:56 (UTC)

looks like there's something wrong with my PATH under swaywm, when running pikaur under Gnome Shell it works

jeois commented on 2022-07-28 12:27 (UTC) (edited on 2022-07-28 14:15 (UTC) by jeois)

@zimbi: After playing with paru.conf options, I suspect your error is related to clean root builds.
For instance, pikaur needs to also install the dependencies (in this case strip-nondeterminism) into the chroot build system. I'm not familiar with pikaur configuration, but if there's a way to turn off the chroot option, try doing that.

If that doesn't work, I'd try using yay instead of pikaur. If you don't need this extension deployed to multiple browsers and/or users, then you could get it from Mozilla's add-on site to install it to your current active Firefox profile. It's probably not the solution you want, but it usually works.

Edit: I just installed pikaur and tried it with default settings, and after I removed my paru local repo, it worked fine, so I really don't know. Somehow 'strip-nondeterminism' is not in your /bin executable PATH during the build, but all that should have setup automatically when its perl dependency was installed. https://bbs.archlinux.org/viewtopic.php?id=156580 According to this old post, if you had perl installed, then the profile.d script should add the path. If it still doesn't work after re-login, then the only other issue I can think of is the chroot options, which I don't know how to configure for pikaur.

jeois commented on 2022-07-28 11:52 (UTC)

@zimbi It seems like you shouldn't get that error if the strip-nondeterminism package is installed.

Perhaps pikaur is trying to do a clean root install and not using your system programs? I can't reproduce the error with yay, paru or pamac; so I'm not sure.

zimbi commented on 2022-07-28 11:15 (UTC)

I'm getting the following error message: /home/frank/.cache/pikaur/build/firefox-clearurls/PKGBUILD: line 36: strip-nondeterminism: command not found pacman -Ss strip-nondeterminism
community/strip-nondeterminism 1.12.1-2 [installed] any idea what I'm doing wrong?

jeois commented on 2022-07-27 00:08 (UTC) (edited on 2022-07-27 19:59 (UTC) by jeois)

I already knew this package was out-of-date for quite some time. However, when the previous maintainer set it up, the source is from the gitlab release, not the Firefox add-ons website, and there hasn't been an official release from the ClearURL's website either.

I can change the source to Mozilla, but it's harder to manage, so therefore I rather wait until a full release across github and gitlab is posted to their website. https://clearurls.xyz/

(Edit: Updated to 1.25.0 from github source)