Package Base Details: rust-git

Git Clone URL: (read-only)
Keywords: mozilla rust
Submitter: mrshpot
Maintainer: spider-mario
Last Packager: spider-mario
Votes: 26
Popularity: 0.162344
First Submitted: 2012-01-21 11:30
Last Updated: 2017-02-03 23:50

Latest Comments

« First ‹ Previous ... 3 4 5 6 7 8 9 Next › Last »

Anonymous comment on 2012-12-23 19:03

I'm trying it out now, but I made the following modifications:

cp -a *.elc "$pkgdir/usr/share/emacs/site-lisp/" # copy just the .elc files

It also might be useful to wrap this whole section in the if:

if which emacs > /dev/null;
cd src/etc/emacs;
install --directory "$pkgdir/usr/share/emacs/site-lisp/";
cp -a *.elc "$pkgdir/usr/share/emacs/site-lisp/"
echo "enable rust-mode in emacs by adding (require 'rust-mode) to your ~/.emacs file"

Something along these lines perhaps.

spider-mario commented on 2012-12-23 18:04

I’ve just given it a try, please let me know whether it works.

Anonymous comment on 2012-12-23 17:43

For emacs, you need to first build the files in the emacs directory. I'm not sure what the pre-reqs for this are (you at least need emacs installed though).

the emacs files are in src/etc/emacs. You need to run make from this directory. Then you copy all the .elc files from there to /usr/share/emacs/site-lisp/

After that you need to add (require 'rust-mode) to your ~/.emacs file (This can probably just be some post-install output for the user to act on). I'm not sure how to do all this in the PKGBUILD right now. I'll look into (and I'm testing some stuff now) and I'll hopefully get back to you with a patched PKGBUILD, but if anyone can do this quickly off the top of their head, that'd be great too :)

spider-mario commented on 2012-12-10 19:23

Done for Vim, thanks!

Unfortunately, I don’t use Emacs either, so even if I tried to do the same for the Emacs files, I wouldn’t be able to check that it works.

If someone can make it work, I’ll be glad to add it to the PKGBUILD.

thestinger commented on 2012-12-10 14:40

It would be great if you could install the Vim and Emacs files that ship with the rust source. For vim, you just need this:

mkdir -p "$pkgdir/usr/share/vim"
cp -a src/etc/vim "$pkgdir/usr/share/vim/vimfiles"

I'm unsure about what to do with the Emacs files + Makefile though, so an Emacs user will have to step forward with that info :).

mrshpot commented on 2012-10-19 07:00

Sorry, due to lack of time I'm disowning it so somebody can actually fix it.

Svenstaro commented on 2012-10-12 16:48

This PKGBUILD has a bunch of problems.

1) You are not using a packaging() function
2) You are still using || return 1
3) You are using the wrong DESTDIR
4) You are not using Maintainer or Contributor in the comment but your custom "Author"
5) You don't need the python hack anymore
6) You shouldn't manually have to copy docs (did you make an upstream bug report?)

Anonymous comment on 2012-10-12 16:06

Files are being installed in the wrong directory (/usr/usr instead of just /usr), fixed PKGBUILD: (only changes the DESTDIR= line).

Anonymous comment on 2012-10-12 11:39

Anybody with problems on x86_64, if so what did you do to solve this?

I am working with the official repos and python2, but at the end of the build I
have problems with packaging the documentation which kill the whole build. I've tried
modifiying the PKGBUILD with no success, any ideas?

thanks for the PKGBUILD though

mrshpot commented on 2012-01-21 15:06

llvm-build (src/llvm/llvm-build/llvm-build) breaks with python3 [1].
I saw those errors during the LLVM build and figured it would be best to roll back to python2.
The carpet-bomb replacement might really be overkill, though -- the LLVM build takes a long time on my machine and I wanted to have rust working ASAP.
If the thing builds properly with python3 for everything except llvm-build, let me know (or I'll try that later myself).

$ pwd

$ python llvm-build
Traceback (most recent call last):
File "llvm-build", line 3, in <module>
import llvmbuild
File "/home/mrshpot/build/rust-git/src/llvm/utils/llvm-build/llvmbuild/", line 1, in <module>
from main import main
ImportError: No module named main

$ python2 llvm-build
# runs with no errors