Package Details: tortoisehg 6.6.3-4

Git Clone URL: https://aur.archlinux.org/tortoisehg.git (read-only, click to copy)
Package Base: tortoisehg
Description: Graphical tools for Mercurial
Upstream URL: https://foss.heptapod.net/mercurial/tortoisehg/thg
Licenses: GPL
Submitter: bwalle
Maintainer: Misery
Last Packager: Misery
Votes: 126
Popularity: 0.188902
First Submitted: 2011-06-11 12:14 (UTC)
Last Updated: 2024-03-14 17:39 (UTC)

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 .. 23 Next › Last »

j77h commented on 2019-11-27 15:58 (UTC) (edited on 2019-11-27 16:02 (UTC) by j77h)

this might help others with the same need.

(sorry for lack of verbosity, it's very late here, but it should be self-explanatory when you try it)

mkdir pkgbld
cd pkgbld
yay -G tortoisehg
cd tortoisehg

edited PKGBUILD:

from depends=('python' 'mercurial>=5.1' 'mercurial<5.3' 'python-qscintilla-qt5' 'python-iniparse' 'qt5-svg' 'python-pyqt5')

to depends=('python' 'mercurial' 'python-qscintilla-qt5' 'python-iniparse' 'qt5-svg' 'python-pyqt5')

yay -S python-iniparse
makepkg -si

error: failed to commit transaction (conflicting files)

tortoisehg: /usr/lib/python3.7/site-packages/hgext3rd/init.py exists in filesystem (owned by mercurial-stable-hg)

tortoisehg: /usr/lib/python3.7/site-packages/hgext3rd/pycache/init.cpython-37.pyc exists in filesystem (owned by mercurial-stable-hg)

sudo rm /usr/lib/python3.7/site-packages/hgext3rd/__init__.py
sudo rm /usr/lib/python3.7/site-packages/hgext3rd/__pycache__/__init__.cpython-37.pyc

sudo pacman -U tortoisehg-5.2.0-0-any.pkg.tar.xz

I could then run tortoisehg

chrisjbillington commented on 2019-11-27 14:49 (UTC)

@j77h you can read about how to download and build (after editing their PKGBUILDs if you like) packages from the AUR without an AUR helper here:

https://wiki.archlinux.org/index.php/Arch_User_Repository#Acquire_build_files

This is assumed knowledge on the AUR since Arch doesn't include AUR helpers in its repository (i.e. people must manually build at least one AUR package before they can use the AUR). So it will be good to know it since much advice in comment threads like this will assume you're familiar (and yeah, some people will get annoyed at people who don't know).

Also what kind of AUR helper doesn't let you download PKGBUILDs for editing before installing them? That is pretty contrary to what the AUR is supposed to be. Might I recommend yay?

j77h commented on 2019-11-27 14:10 (UTC) (edited on 2019-11-27 14:46 (UTC) by j77h)

@chrisjbillington

"You could use mercurial-stable-hg ... need to modify this package's PKGBUILD ..."

I installed mercurial-stable-hg, and now I'm wondering how to edit PKGBUILD of tortoisehg, as these AUR helpers don't get as far as offering that possibility.

EDIT: Sorry for very n00b question; this probably answers it: https://github.com/Jguer/yay/issues/750

$ pikaur -S tortoisehg
...
tortoisehg depends on: 'mercurial>=5.2,mercurial<5.3'
 found in 'PackageSource.REPO': '{'mercurial': '5.1.2-1'}'
$ yay -S tortoisehg
...
==> Error: Could not find all required packages:
    mercurial>=5.2 (Wanted by: tortoisehg)

vlatkoB commented on 2019-11-25 17:17 (UTC)

@chrisjbillington Thanks a lot for the detailed instructions. thg works. :-)

chrisjbillington commented on 2019-11-25 16:48 (UTC) (edited on 2019-11-25 16:50 (UTC) by chrisjbillington)

@vlatkoB this package indeed requires mercurial 5.2 built with Python 3. You could use mercurial-stable-hg or mercurial-hg, though those do not have version numbers that start with 5.2, since they are straight from the mercurial hg repo and not an official release. If you used them you would need to modify this package's PKGBUILD to allow any mercurial version so that it doesn't choke on that.

Another option (the one I've gone with) is to modify the mercurial PKGBUILD from the repos to install the official mercurial 5.2 release with Python 3:

cd /tmp
asp checkout mercurial
cd mercurial/trunk/
sed -i 's/5.1.2/5.2/g; s/python2/python/g; s/pkgrel=1/pkgrel=0/g' PKGBUILD
updpkgsums 
makepkg --skippgpcheck -i

updpkgsums and --skippgpcheck are essentially ignoring the pkgsums and PGP signatures of the downloaded tarball, so feel free to verify the sha256 of the tarball yourself, though since the source is downloaded from mercurial-scm.org over HTTPS I wouldn't be too worried.

Using a modified mercurial from the repos has the benefit that when a version higher than than 5.2-0 becomes available in the repos, you won't have to change anything to get the update.

vlatkoB commented on 2019-11-25 06:58 (UTC)

How do you install it? It has a dep on mercurial 5.2.

chrisjbillington commented on 2019-11-19 04:10 (UTC)

@mjacob thanks! I'm using that and all your other changes. Much appreciated!

mjacob commented on 2019-11-19 04:03 (UTC)

@chrisjbillington

A patch to replace all uses of cgi.escape was committed. Python 3.8 is now supported without further patches.

chrisjbillington commented on 2019-11-15 14:47 (UTC)

@mjacob thanks for your hard work! Pulling and testing your changes, and I'll continue to report bugs.

Using this prepare() function for the moment to fix the issue with the removed stdlib function:

prepare() {
  find "${srcdir}/${_pkgname}" -type f -name "*.py" -exec sed -i 's/cgi/html/g' {} +
}

Confused about the direction the mercurial devs seem to want to take maintaining Python 2 support for some time. Whilst their current process relies a lot on Python 2 such that building mac/windows releases for Python 3 is a massive headache, sticking with Python 2 is going to cause even larger headaches as py2 versions of dependencies stop being maintained.

abique commented on 2019-11-15 12:49 (UTC)

I'm so tired of this package breaking all the time, and I know it is not an issue with this package itself.

Anyone willing to add tortoisehg to flatpak? :D