Package Details: vlang-git 0.2.2.r796.gfbc02cbc5-1

Git Clone URL: https://aur.archlinux.org/vlang-git.git (read-only, click to copy)
Package Base: vlang-git
Description: Simple, fast, safe, compiled language for developing maintainable software
Upstream URL: https://vlang.io
Keywords: language programming v vlang
Licenses: MIT
Conflicts: v, vlang, vlang-bin
Provides: vlang
Submitter: whoami
Maintainer: lberrymage
Last Packager: lberrymage
Votes: 0
Popularity: 0.000000
First Submitted: 2019-06-22 17:56 (UTC)
Last Updated: 2021-03-09 04:09 (UTC)

Pinned Comments

lberrymage commented on 2021-01-12 08:14 (UTC)

/usr/lib/vlang/cmd/tools/ is no longer chmod 777-ed in 0.2.r418.g33976246c-4! A couple notes for those of you upgrading:

  • You may need to forcefully remove compiled tools (e.g. vup, vpm, etc.) from /usr/lib/vlang/cmd/tools/ before you can install the new version
  • You may also need to manually uninstall and re-install the package for permissions on /usr/lib/vlang/cmd/tools/ to truly be fixed.

Latest Comments

lberrymage commented on 2021-03-09 02:55 (UTC) (edited on 2021-03-09 04:10 (UTC) by lberrymage)

@scottyeager Thanks for bringing this to my attention (and in great detail!); at first glance I think the cause is 17266ecb0786616e841cf25434d0bdfcaad91199 upstream. I'll start working on it.

Edit: The problem should be fixed in 0.2.2.r796.gfbc02cbc5-1.

scottyeager commented on 2021-03-06 00:14 (UTC)

I tried building today with version: vlang-git weekly.2021.8.r197.g204f57d22-1.

First, build() failed here:

./v -prod self
sh: line 1: vlang-git/src/vlang/cmd/tools/vself: No such file or directory

So I manually compiled vself.v:

cd src/vlang
./v -prod cmd/tools/vself.v

Then build() failed again at:

./v -prod self
Recompilation is disabled, since there is a "vlang-git/src/vlang/cmd/tools/.disable_autorecompilation" file present.
Please install V from source, to use `v self` .

I commented out the prepare() section of PKGBUILD where the .disable_autorecompilation file is created, and then building completed successfully.

lberrymage commented on 2021-01-12 08:14 (UTC)

/usr/lib/vlang/cmd/tools/ is no longer chmod 777-ed in 0.2.r418.g33976246c-4! A couple notes for those of you upgrading:

  • You may need to forcefully remove compiled tools (e.g. vup, vpm, etc.) from /usr/lib/vlang/cmd/tools/ before you can install the new version
  • You may also need to manually uninstall and re-install the package for permissions on /usr/lib/vlang/cmd/tools/ to truly be fixed.

lberrymage commented on 2021-01-02 11:05 (UTC)

@chovy This package actually isn't outdated since VCS packages update to the latest commit when the user installs them. They won't necessarily show the latest commit on the AUR, however. According to the Arch Wiki:

VCS packages are not considered out-of-date when the pkgver changes and are not to be flagged in this case.

https://wiki.archlinux.org/index.php/Arch_User_Repository#Flagging_packages_out-of-date

chovy commented on 2021-01-02 01:17 (UTC)

this is outdated. use vlang-bin

ragouel commented on 2020-07-20 07:32 (UTC)

Produces

For usage information, quit V REPL and run v help
sh: /usr/lib/vlang/cmd/tools/vrepl: No such file or directory

I'm not sure what the devs were smoking... Not spending any more time on it, feel free to adopt.

lberrymage commented on 2020-07-19 23:46 (UTC) (edited on 2020-07-19 23:47 (UTC) by lberrymage)

@ragouel I have a solution for the permissions issue over on the vlang package - please feel free to adopt/adapt it so we don't need to chmod 777 :)

ragouel commented on 2020-06-13 02:11 (UTC) (edited on 2020-06-13 02:11 (UTC) by ragouel)

The only way I was able to make it run, was to grant 777 recursively on /usr/lib/vlang/cmd, which is a potential security risk. Use at your own risk.

CichlaOcelaris commented on 2020-04-15 17:27 (UTC)

Awesome! Thanks.

ragouel commented on 2020-04-15 15:47 (UTC) (edited on 2020-04-15 17:28 (UTC) by ragouel)

Fixed. Install latest pkgrel.

CichlaOcelaris commented on 2020-04-15 14:53 (UTC)

Hi. Have just started learning v. Need some help, please.

Installed the package. Here it is an error whenever I enter 'v' command: For usage information, quit V REPL using exit and use v help cannot compile ‘/usr/lib/vlang/cmd/tools/vrepl.v: builder error: /usr/lib/vlang/cmd/tools/vrepl.v doesn't exist‘

The answer for 'v help' is: V Error: Unknown help topic provided. Use v help for usage information.

I have coded a module called mymodule.v . How do I build it ? 'v mymodule.v' complains about the main function and 'v build mymodule.v' worked until 0.1.2 but not anymore.

I would really appreciate any help. Thanks.

SpaceToast commented on 2019-07-16 01:58 (UTC)

Here's a patch1 against this repo that produces an optimized and functional v installation. It's also significantly simpler (install() is still awkward but it doesn't look like anyone cares). NOTE: using the Makefile there is fine because we already copied in v.c (making it an up-to-date target, as far as make is concerned).

whoami commented on 2019-06-30 17:07 (UTC)

V still not linux friendly, I'm waiting for changes (VROOT must be deleted from compiler/main.v). Plz use git clone https://github.com/vlang/v; cd v; make

izolight commented on 2019-06-29 19:48 (UTC)

compiling the compiler from the current dir doesn't seem to work with the c version (./vc -o v .), but doing it from a dir above works ./vc -o v compiler.

whoami commented on 2019-06-24 01:08 (UTC)

should be fixed. I'm crying

whoami commented on 2019-06-23 23:12 (UTC)

broken changes https://github.com/vlang/v/commit/b990f04064708fb9e16b1fc284c46a3a56bb7abd

alfonsodg commented on 2019-06-23 23:02 (UTC)

There is a problem with the package

/usr/lib/vlang not found. Run: git clone https://github.com/vlang/v ~/code/v ==> ERROR: Se produjo un fallo en build(). Cancelando... Error making: vlang-git

whoami commented on 2019-06-23 19:55 (UTC)

I've update it

jgmdev commented on 2019-06-23 18:31 (UTC)

Temporary fix for PKGBUILD

# Maintainer: whoami <whoami@systemli.org>

pkgname=vlang-git
pkgver=r44.4e24681
pkgrel=1
pkgdesc='Simple, fast, safe language created for developing maintainable software'
arch=('x86_64')
url='https://vlang.io'
license=('MIT')
depends=('glfw' 'libfreetype.so' 'libcurl.so')
conflicts=('v')
source=('git+https://github.com/vlang/v.git'
        'https://vlang.io/v.c')
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd "v"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd v

    curren_lib="$(pwd)"

    sed \
        "s|os__home_dir(), tos2(\"/code/v/\")|tos2(\"${curren_lib}\"), tos2(\"/\")|g" \
        ../v.c \
        > ./compiler/v.c

    cd compiler

    clang -w -o vc v.c

    sed -i \
        "s|mut lang_dir = os.home_dir() + '/code/v/'|mut lang_dir = '/usr/lib/v/'|g" \
        main.v

    ./vc -o v .
}

package() {
    cd "${srcdir}/v"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm755 compiler/v "$pkgdir/usr/bin/v"
    install -d "$pkgdir/usr/lib/v"
    cp -a * "$pkgdir/usr/lib/v/"
    rm "$pkgdir/usr/lib/v/compiler/vc" "$pkgdir/usr/lib/v/compiler/v.c"
    cp "${srcdir}/v.c" "$pkgdir/usr/lib/v/compiler/v.c"
}

whoami commented on 2019-06-23 15:06 (UTC)

there is a hardcoded path '~/code/v', waiting for it to be fixed in the source