Package Details: buck 2020.05.14.01-1

Git Clone URL: https://aur.archlinux.org/buck.git (read-only, click to copy)
Package Base: buck
Description: A fast build system that encourages the creation of small, \ reusable modules over a variety of platforms and languages.
Upstream URL: https://buckbuild.com
Licenses: Apache
Submitter: jtgoguen
Maintainer: kendfinger
Last Packager: kendfinger
Votes: 10
Popularity: 0.000213
First Submitted: 2016-04-22 23:09
Last Updated: 2020-05-19 17:04

Pinned Comments

kendfinger commented on 2020-01-21 07:14

I have taken over the package and it will now compile correctly without Buck itself.

Latest Comments

1 2 Next › Last »

liftM commented on 2020-05-10 03:17

The latest update is currently broken, due to a bug in how the Buck installer works. I have filed a bug against the Buck repository at https://github.com/facebook/buck/issues/2462 and a fix at https://github.com/facebook/buck/pull/2463.

In the meantime, you'll need to either:

  1. Modify programs/gen_buck_info.py to remove lines 55-56 (which cause the infinite loop described in the installer bug), OR
  2. Add a .git folder in the extracted source of the Buck repository that contains the revision history of Buck (the installer searches for this to generate the Buck version).

To do (1), apply the following patch to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 3575894..1b3d161 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,7 @@ sha512sums=('b756ee8d544366534a2df189b38a7258cc9bcd36a1afc888846f81f044540b77950

 prepare() {
   sed -i 's+executable="python"+executable="python2"+g' ${pkgname}-${pkgver}/build.xml
+  sed -i '55,56d' ${pkgname}-${pkgver}/programs/gen_buck_info.py
 }

 build() {

haawda commented on 2020-04-11 14:22

You not only need to install a java 11 environment, but also activate it, e.g.

archlinux-java set java-11-openjdk

as root. I doubt if yay can be configured to do this, so please try with plain makepkg.

sramey40 commented on 2020-04-10 19:05

The build is broken. I'm not sure if it's this package, or an issue with the buck code itself. But the java compiler is having issues.

EDIT: So, I tried manually building from cloning the git repo. I have the exact same issue. Submitted github issue here

compile:
    [javac] Compiling 2967 source files to /home/sean/.cache/yay/buck/src/buck-2019.10.17.01/ant-out/classes
    [javac] [compiled 675548 lines in 11738 ms: 57552.2 lines/s]
    [javac] [5484 .class files generated]
    [javac] ----------
    [javac] 1. ERROR in /home/sean/.cache/yay/buck/src/buck-2019.10.17.01/src/com/facebook/buck/jvm/java/abi/JarReader.java (at line 71)
    [javac]     fileSystem = FileSystems.newFileSystem(jarPath, null);
    [javac]                              ^^^^^^^^^^^^^
    [javac] The method newFileSystem(Path, ClassLoader) is ambiguous for the type FileSystems
    [javac] ----------
    [javac] ----------
    [javac] 2. ERROR in /home/sean/.cache/yay/buck/src/buck-2019.10.17.01/src/com/facebook/buck/jvm/java/abi/java11/SourceVersionUtils.java (at line 27)
    [javac]     switch (version) {
    [javac]             ^^^^^^^
    [javac] The enum constant RELEASE_12 should have a corresponding case label in this enum switch on SourceVersion. To suppress this problem, add a comment //$CASES-OMITTED$ on the line above the 'default:'
    [javac] ----------
    [javac] 3. ERROR in /home/sean/.cache/yay/buck/src/buck-2019.10.17.01/src/com/facebook/buck/jvm/java/abi/java11/SourceVersionUtils.java (at line 27)
    [javac]     switch (version) {
    [javac]             ^^^^^^^
    [javac] The enum constant RELEASE_13 should have a corresponding case label in this enum switch on SourceVersion. To suppress this problem, add a comment //$CASES-OMITTED$ on the line above the 'default:'
    [javac] ----------
    [javac] ----------
    [javac] 4. ERROR in /home/sean/.cache/yay/buck/src/buck-2019.10.17.01/src/com/facebook/buck/util/unarchive/Unzip.java (at line 320)
    [javac]     try (FileSystem zipFs = FileSystems.newFileSystem(archiveAbsolutePath, null)) {
    [javac]                                         ^^^^^^^^^^^^^
    [javac] The method newFileSystem(Path, ClassLoader) is ambiguous for the type FileSystems
    [javac] ----------
    [javac] 4 problems (4 errors)

BUILD FAILED
/home/sean/.cache/yay/buck/src/buck-2019.10.17.01/build.xml:588: The following error occurred while executing this line:
/home/sean/.cache/yay/buck/src/buck-2019.10.17.01/build.xml:530: Compile failed; see the compiler error output for details.

Total time: 24 seconds
==> ERROR: A failure occurred in build().
    Aborting...
Error making: buck

kendfinger commented on 2020-01-21 07:14

I have taken over the package and it will now compile correctly without Buck itself.

jvreeland commented on 2019-08-05 23:22

Buck calls buck to build it (or I guess check if it's running?) this means it can't be built on machines that don't have a buck command already.

/home/justin/aur/buck/PKGBUILD: line 21: buck: command not found ==> ERROR: A failure occurred in build(). Aborting...

haawda commented on 2018-07-01 22:12

Fixed dependencies.

J5lx commented on 2018-07-01 20:44

This package fails to build in a clean chroot with devtools since it apparently requires Java 8 to build but this dependency is not expressed properly in makedepends, causing pacman’s automatic selection to install a different version. Additionally, python is apparently also needed at buildtime (without it I get a build failure with error /build/buck/src/buck-2018.06.25.01/build.xml:889: Execute failed: java.io.IOException: Cannot run program "python" (in directory "/build/buck/src/buck-2018.06.25.01"): error=2, No such file or directory).

haawda commented on 2018-04-29 11:42

I added a prepare function to detect java version.

haawda commented on 2018-04-29 10:45

Indeed, just figured it out myself.

Eremiell commented on 2018-04-29 09:24

Problem identified after some more searching with different errors than previously. Buck needs JDK8. Later have some features it uses removed.