FS#32669 - [autojump] 21.0.3-1 uses /usr/etc/profile.d/ instead of /etc/profile.d/
Attached to Project:
Community Packages
Opened by Bernd Pol (bernarcher) - Thursday, 15 November 2012, 06:01 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 18 May 2013, 21:00 GMT
Opened by Bernd Pol (bernarcher) - Thursday, 15 November 2012, 06:01 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 18 May 2013, 21:00 GMT
|
Details
$ pacman -Ql autojump
autojump /usr/ autojump /usr/bin/ autojump /usr/bin/autojump autojump /usr/bin/autojump_argparse.py autojump /usr/bin/jumpapplet autojump /usr/etc/ autojump /usr/etc/profile.d/ autojump /usr/etc/profile.d/autojump.bash autojump /usr/etc/profile.d/autojump.sh autojump /usr/share/ autojump /usr/share/autojump/ autojump /usr/share/autojump/icon.png autojump /usr/share/man/ autojump /usr/share/man/man1/ autojump /usr/share/man/man1/autojump.1.gz |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Saturday, 18 May 2013, 21:00 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in autojump 21.5.8-1
Saturday, 18 May 2013, 21:00 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in autojump 21.5.8-1
(And for people looking to install the latest version now, there's also an autojump-git in the AUR.)
./install.sh --global --destdir "${pkgdir}"
will work as expected.
I've used this with 21.2.1 for a little while, in fact I just upgraded to 21.3.0 -- it's been fixed, and it works (w/ zsh).
https://github.com/joelthelion/autojump/issues/172
That should remove the python2 dependency.
Also, looking at jjacky's PKGBUILD there's no need to replace python with python3. autojump is compatible with Python 2.6+ and 3.0+.
@jjk - Thank you. 0.21.3 build just fine with your PKGBUILD. Just gotta get Jaroslav to update and close out the task,
Check this instead - https://github.com/joelthelion/autojump/tags - which has the URL used in my PKGBUILD, and show 21.3.0 is the latest.
/etc/profile.d/gpm.sh:4: command not found: pgrep
/home/facade/.zsh/lib/appearance.zsh:2: colors: function definition file not found
/home/facade/.zsh/lib/completion.zsh:20: command not found: whoami
/home/facade/.commonrc:1: command not found: whoami
/home/facade/.commonrc:1: command not found: uname
/home/facade/.zshrc:14: compinit: function definition file not found
EDIT: My bad... didn't read the readme.install -- adding the following fixes this.
[[ -s /etc/profile.d/autojump.sh ]] && . /etc/profile.d/autojump.sh
pkgname=autojump
pkgver=21.3.0
pkgrel=1
pkgdesc="A faster way to navigate your filesystem from the command line"
arch=('any')
url="http://wiki.github.com/joelthelion/autojump"
license=('GPL3')
depends=('bash' 'python')
optdepends=('python2: needed for jumpapplet')
source=(https://github.com/joelthelion/${pkgname}/archive/release-v${pkgver}.tar.gz)
sha256sums=('217398c3135647f223356e055a1b84adb470385584d743baf7fe4d519fd78252')
package() {
cd ${pkgname}-release-v${pkgver}
./install.sh --global --destdir "${pkgdir}"
}
I have this as the first line in my ~/.zshrc
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
I have also tried adding this to /etc/zsh/zprofile but it did not help:
[[ -s /etc/profile.d/autojump.zsh ]] && source /etc/profile.d/autojump.zsh
I added the following line to /etc/zsh/zprofile which I think circumvents the need source it in each user's ~/.zshrc
SO... I recommended that we get the Arch Linux package to create this line in /etc/zprofile and forgot about the post_install message all together.
What do you guys think?
% cat /etc/zsh/zprofile
emulate sh -c 'source /etc/profile'
[[ -f /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh