-
Notifications
You must be signed in to change notification settings - Fork 25
Description
My system: OpenSuSE 13.2, x86_64.
I get this particular error when running ./gradlew -q myPrebuildTask.
=======================================
Building on linux-x86_64 for android...
=======================================
14:15:10
Building libosmocore ... ok [0:16]
Building libasn1c ... ok [0:13]
Building libosmo-asn1-rrc ... ok [0:18]
Building openssl ... ok [2:12]
Building diag_helper ... ok [0:0]
Building gsm-parser ... ok [0:0]
14:18:09
=============================================================================================
Installing files to: /home/(my username)/snoopsnitch-xlite/xLite/contrib/build-OuZUZ5MKCW/parser/ ...
=============================================================================================
rename: not enough arguments
Usage:
rename [options] <expression> <replacement> <file>...
Options:
-v, --verbose explain what is being done
-s, --symlink act on the target of symlinks
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
FAILURE: Build failed with an exception.
* Where:
Build file '/home/error/snoopsnitch-xlite/xLite/SnoopSnitch/build.gradle' line: 13
* What went wrong:
Execution failed for task ':myPrebuildTask'.
> Process 'command 'bash'' finished with non-zero exit value 1
The problem is in contrib/compile.sh, line 299, where you invoke "rename" to get rid of the tailing version numbers on .so files.
My version of rename, from the linux-util-ng package, needs 3 arguments ([options], expression, replacement, files), whereas compile.sh only gives it two (rename -v 's/\.[0-9]$//' ${PARSER_DIR}/*.so.*) - the regexp and the file list (I'm guessing, based on this, that this project was coded on some Debian derivative where it's actually a perl script which takes different syntax.
I've written a fix which uses a more platform independent combination of ls, sed, mv and a for loop, I'll submit a pull request for that change shortly.