Commit Graph

913 Commits

Author SHA1 Message Date
pancake
9f2bb72017 Fallback to /bin/sh if the $SHELL is fishy ##build 2021-08-23 13:50:18 +02:00
pancake
25c1472a95
Fix sys/static.sh on iOS/macOS targets ##build 2021-08-23 13:38:52 +02:00
pancake
6f10062f0c
Improve the macOS packaging scripts ##build 2021-07-28 11:56:57 +02:00
pancake
0dbcdc8945
Honor error codes in wasi CI builds (#18918) 2021-07-21 12:24:17 +02:00
pancake
988f70b1ea
Version the artifacts ##ci 2021-07-16 22:33:39 +02:00
pancake
b8a2dc7c33
Windows CI zip stuff with version (#18898) 2021-07-15 17:17:04 +02:00
pancake
d3824bf0ce
Build and publish the ZIP with the WASI bins ##build (#18855) 2021-06-21 13:51:31 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build 2021-06-20 17:14:43 +02:00
Sergi Àlvarez i Capilla
9833d827a8 Improve error checking in termux build script 2021-06-05 11:02:17 +02:00
pancake
e92d170a3b
Add support for acr/musl-gcc static builds ##build 2021-05-14 21:34:21 +02:00
pancake
2434c3ca74
Switch to Capstone5 as default ##asm (#18127)
* Add riscv for capstone5 in the meson
* Report capstone version in the asm plugins
* Many changes in the ppc analysis, seems like it's improved, (emulation quality and xrefs)
* Update all tests and report issues in capstone4 to upstream
* Fix-x86-16 test marked as broken as it needs better fix
2021-04-24 22:04:51 +02:00
pancake
c3aafd6930 Aim to blind fix the termux build date issue 2021-04-21 20:11:42 +02:00
pancake
b5e262a6b9 Linux debugger improvements 2021-04-19 17:28:42 -07:00
pancake
23b838a0a9
Remove all the travis and codecov reminiscenses (#18585)
* Codecov and Travis scripts were disabled on January
2021-04-16 17:56:50 +02:00
Tomasz Gorochowik
4f1f0775cd
Clang format script fixes (#18580) ##dev
* Fix off-by-one error in clang-format-diff detector
* Improve debug messages in clang-format-diff (Thanks to this change the detected ranges will be actually wrapped in the start/end debug messages.)
* Make clang-format-diff detect changes in each chunk separately
2021-04-14 19:03:55 +02:00
soroosh-chabi
6d21fcfe8b
Fix the failure in finding the executing user's ID during install (#18508) ##build
The `UID` variable used previously is a Bash extension that isn't present on all
POSIX shells.
2021-03-29 00:32:44 +02:00
pancake
0b4cfc1dbb Fix version not being updated after running sys/termux.sh ##build 2021-03-17 19:05:09 +01:00
pancake
9a4f344d04
Improve sys/termux.sh checks ##build 2021-03-02 01:35:23 +01:00
pancake
eda2a09a0e Do not run sys/ldconfig on Android ##build 2021-03-02 01:31:45 +01:00
pancake
815c432217 Fix #18397 - Be less strict when running sys/install.sh as root ##build 2021-03-01 11:46:33 +01:00
pancake
81deee6fd3 Fix #18360 - Absolutize the relative --install-path in sys/user.sh 2021-02-28 18:49:14 +01:00
pancake
ee3afa01c9 Fix debian32 in CI ##build 2021-02-27 01:01:22 +01:00
pancake
a0e09ae808 Make sys/debian.sh more verbose 2021-02-24 23:07:36 +01:00
pancake
c95c206ab1 Allow custom CFLAGS for Debian packaging ##build 2021-02-24 22:56:57 +01:00
pancake
da7f0310e4 Fixes for sys/static with acr 2021-02-14 02:41:34 +01:00
soroosh-chabi
205962f73c
Fix a credentials downgrade problem in Install.sh ##build
* Fix failure when finding the executing user's ID during install

The `UID` variable used previously is a Bash extension that isn't present on all
POSIX shells.

* Prioritize downgrading credentials during install

The first thing to do is to check and, if necessary, downgrade the credentials
before proceeding any further during install. Also, checking for the presence of
GNU Make is delayed after the arguments to the install script have been parsed.
2021-02-09 23:06:55 +01:00
pancake
f80c847376
Introduce w32 and w64 in the CI ##build 2021-01-31 00:40:40 +01:00
pancake
ae0a733d5e Add tests for pf.write 2021-01-30 01:18:48 +01:00
pancake
8f72e726c3 Fix create_r2.bat 2021-01-30 00:17:55 +01:00
Gordon M
f63fc2c34c
Update debian.sh (#18299)
The flag as given is a typo. This corrects things.
2021-01-27 00:20:51 +01:00
Kamil Rytarowski
f9c99f1cd5
Fix shell portability issue (#18288)
Caught in pkgsrc on NetBSD.
2021-01-25 15:16:49 +01:00
pancake
ad66121556 Initialize the ndk once and for arm64 for now 2021-01-25 12:41:17 +01:00
pancake
36d63b46f6
Fixes for the android-ndk-installer script and the android-arm64 CI job (#18287)
Co-authored-by: pancake <pancake@nopcode.org>
2021-01-25 12:30:57 +01:00
pancake
85edbad0aa
Add WIP android-arm64 ACR build and other CI improvements ##ci
* Fix macos test
* Add cabextract for pdb tests
* Add android-ndk-installer script
* Using NDK r21d
2021-01-25 11:34:08 +01:00
Anton Kochkov
ef462a4800 Some clang-format improvements ##indent
* Fix for clang-format parsing error
* Align consecutive macros for clang-format
* Dont align escaped newlines
* Use spaces for some alignment
* Add clang-format script
2021-01-25 00:34:58 +01:00
pancake
90b5748289 Improve derizin script 2021-01-25 00:34:58 +01:00
pancake
021c5bc81d Add derizin script and workflow description 2021-01-19 05:37:17 +01:00
pancake
8f0016cc4c Dont detect leaks in the asan job and install r2pipe in brew ##ci 2021-01-13 10:29:33 +01:00
pancake
fb846712f9 Early fail in sys/debian.sh and use proper CFLAGS ##build 2021-01-13 01:28:10 +01:00
pancake
1184610971
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 13:41:21 +01:00
pancake
658c6a0918
Create dist/ to hold all the distribution build files ##build (#18131) 2020-12-31 18:57:05 +01:00
pancake
701ee21720
Improve the release-notes script (#18080) 2020-12-22 01:49:18 +01:00
pancake
dcc17e7f32 Use latest acr to support BSDs pkgconf tool and more cleanups 2020-12-19 15:24:00 +01:00
pancake
b2be57f9f7 Fix build in BSD, there is no RPATH in there ##build 2020-12-19 15:24:00 +01:00
pancake
b462a7691c
Remove enyo and p unmaintained webuis (2MB), still available via r2pm ##webui 2020-12-16 14:35:03 +01:00
pancake
fe7d2a5c85
Fixes and improvements for the Debian packaging scripts ##build (#17825) 2020-10-26 09:10:30 +01:00
GustavoLCR
489538e02b
Add DbgEng based debug backend for Windows ##debug (#17491)
* Rename `windbg` plugin to `winkd` ##debug
* Add DbgEng based debug backend for Windows ##debug
2020-08-24 19:01:10 +08:00
Christopher Hewitt
5f0be49fd1
meson install: Add DESTDIR to sys/create_r2.sh to allow specifying custom install directory (#17490)
* meson install: Add DESTDIR to allow specifying custom install directory
* Drop DESTDIR support on Windows

Co-authored-by: Khairul Azhar Kasmiran <kazarmy@gmail.com>
2020-08-19 19:58:58 +08:00
Khairul Azhar Kasmiran
fb1190d248
meson install: Create shortcut/symlink to radare2 (#17463) 2020-08-18 18:22:17 +08:00
Anton Kochkov
e3504eb0d9
Some DragonFlyBSD build fixes ##port (#17470) 2020-08-17 12:43:10 +08:00
pancake
91f7e91177
Fix sys/sdk.sh after the sdb refactoring (#17452)
Co-authored-by: pancake <pancake@nopcode.org>
2020-08-14 13:19:10 +08:00
pancake
8efd721dba
Fix Cydia/iOS packaging and compilation issues ##build (#17342) 2020-08-14 13:17:32 +08:00
pancake
8b33d764a7
Fix #3929 - Enable LTO in sys/static.sh ##build (#17141)
* Fix #3929 - Enable LTO in sys/static.sh
* Update Ubuntu to 20.04 for static build
* Use `gcc-ar` when needed
* Do not use "c" option for ${AR}
* Use `$$AR` instead of `$AR`
* Aim to fix  `-dynamiclib` issue outside darwin
* Run tests for static LTO build

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-08-13 13:55:39 +08:00
yossizap
a54f9363e4
Use meson install instead of manual installation in meson.py (#17424)
* Use meson install instead of manual installation in meson.py
* Update AppVeyor and docs to use the new meson.py flag format
* Meson.py should use --prefix for install paths and --install is a boolean for Windows and Unix now.
* Removed windows specific restrictions from meson.py
* Ensure that the prefix path is an absolute path
* Fix install options syntax
* Added an optional rootdir path for the meson setup command

Co-authored-by: yossizap <yossizap@users.noreply.github.com>
2020-08-11 12:33:15 +08:00
pancake
2c48b60f1d
Fix sys/static.sh after 2d160f2509 (#17336) ##build 2020-07-24 11:55:53 +02:00
Riccardo Schirone
e3b67f124c
Release pipeline with GitHub Actions (#17192)
* Make sure meson can build with `system` = `android`.
* Add support for binr/blob in meson build
* Create release GitHub Actions workflow
* Add publish-docker-image job
* Also create Ubuntu packages and ship static windows zip
2020-07-09 12:07:45 +08:00
Riccardo Schirone
d6c9bd4542
Add support for binr/blob and fix android build ##meson ##build (#17150)
* Make sure meson can build with `system` = `android`.

* Add support for binr/blob in meson build

* Add also r_util as dependency

* Create sdb_version.py to get the SDBVER value from config.mk

* Set unknown sdb version if something fails
2020-07-05 10:53:37 +08:00
pancake
13e1636d97
Implement RLang.spp for templated scripting ##lang (#17067)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-01 14:14:18 +02:00
Anton Kochkov
ffe743ef39
Fix #4056 - rename DEPS to R2DEPS ##build (#17020)
* Rename DEPS to R2DEPS
* Cleanup of sys/build.sh
2020-06-12 10:49:28 +08:00
karliss
18649ad666
Do the prefix check after prefix argument has been processed. (#16950) 2020-05-29 11:04:15 +08:00
FXTi
1ffdedcd07
Add Python bytecode plugins (#16771) 2020-05-13 10:37:09 +08:00
Khairul Azhar Kasmiran
dbd33d0efe
Windows sys/meson.py: Add r2 shell script (#16753) 2020-05-02 18:54:01 +02:00
pancake
fc65e0f6a8
Fix the Debian package build, add missing deps (#16745) 2020-04-30 12:00:58 +08:00
pancake
498292a70d Fix the static build by dynamically resolving libutil symbols ##build 2020-04-20 14:25:28 +02:00
Florian Märkl
0b7948a643
Fix #15598 - Remove cherrypull.sh (#16601) 2020-04-15 13:40:49 +02:00
pancake
2460e004e7 Update the release-notes script for highlights and details folding ##build 2020-04-14 17:49:23 +02:00
Alexis Ehret
ef07476e38
Fix various lgtm warning (#16497)
* Wrong type of arguments to formatting function root/shlr/mpc/mpc.c
* Overflow in uncontrolled allocation size ./libr/socket/run.c
* Multiplication result converted to larger type ./libr/core/cmd_print.c
* Multiplication result converted to larger type ./libr/bin/p/bin_dyldcache.c
* Multiplication result converted to larger type ./libr/core/linux_heap_glibc.c
* Multiplication result converted to larger type ./libr/core/visual.c
* Comparison of narrow type with wide type in loop condition ./libr/core/p/core_java.c
* Fix various warning -Wall ./libr/core/p/core_java.c
* Multiplication result converted to larger type ./libr/bin/format/mach0/mach0.c
* Multiplication result converted to larger type ./libr/util/print.c
* Multiplication result converted to larger type ./libr/asm/asm.c
* Fix small warning python
* Fix type error and declaration inside loop
* Reset mpc
* replace size_t
* Fix space missing, type and format
2020-04-12 20:45:24 +02:00
pancake
00a30c943a
Publish the emscripten builds (#16541) 2020-04-12 20:14:19 +08:00
pancake
fdb75d3bf9
Fix memory leak in /ad/ using r_regex api wrongly ##search (#16537)
* /ad/ in /bin/ls ate 9 extra MB that was never freed
* This is about 400 bytes for each instruction disassembled
2020-04-12 10:53:41 +02:00
Anton Kochkov
a686a8dcff
Fix #16532 - remove outdated JS build files (#16536) 2020-04-12 06:20:20 +02:00
Paul I
aac88e2db3
Make msbuild quieter (#16482) ##build 2020-04-08 20:32:46 +02:00
radare
5a1df188f6
Build fixes to make emscripten builds happy (#16406) ##build 2020-04-02 17:52:03 +02:00
radare
bed2cb1f40
Fix #9240 - sys/install.sh uses always /usr/local + rpath now ##build 2020-03-20 15:27:20 +01:00
pancake
b76831c050 Skip continuous tag in release-notes.sh 2020-03-04 01:26:51 +01:00
radare
40016f7727
Build debian package in CI ##build (#15997) 2020-02-20 00:37:30 +01:00
radare
45eb0052b1
Upgrade to acr-1.8.1 to get semver support ##core (#15816)
Move all version defines into r_version.h and handle it from meson too

- R2_VERSION_MAJOR
- R2_VERSION_MINOR
- R2_VERSION_PATCH
- R2_VERSION_NUMBER
2020-01-17 12:18:05 +01:00
pancake
5a48a40178 Second fix attempt for Alpine/musl builds 2020-01-10 03:32:13 +01:00
pancake
52d9baf988 Aim to fix the alpine build 2020-01-10 03:06:46 +01:00
radare
2b15e7421e
Many improvements in the V testsuite (#15722) ##test
* Kill some more tests using <<RUN
* Improve r2r.v quite a lot up to 0.2
* Delete stale temporal files in the unit test
* Use executable path instead of dbpath and more cleanup
* Move manpage and move old bins into the attic
2019-12-29 19:26:15 +01:00
Khairul Azhar Kasmiran
ec8e8c97e7 Add sys/r2env.sh: Set up env for r2 in non-standard loc (#15696) 2019-12-28 12:48:22 +01:00
pancake
73bc4da69b Revert "Strip bins and libs for the Debian package"
This reverts commit 74fb0efbe3.
2019-12-20 21:10:54 +09:00
Khairul Azhar Kasmiran
61a2d421dd sys/meson.py: Use == 'vs2017' instead 2019-12-17 10:42:22 -06:00
Khairul Azhar Kasmiran
3f5117aa2e Fix #15653: Silence MSVC XP deprecation warning 2019-12-17 07:37:22 -06:00
yossizap
9d1421a188 Added rebuild rules for windbg ##debug 2019-11-25 18:04:16 +01:00
Giovanni
08ae6fc891 Fix #15485 - Improve argument parsing in sys/{install,build} (#15486) ##build 2019-11-20 16:40:02 +01:00
Khairul Azhar Kasmiran
1472f849e4 Rename "asan" to "sanitize" (#15412) ##build 2019-11-05 00:33:35 +01:00
Sergi Àlvarez i Capilla
74fb0efbe3 Strip bins and libs for the Debian package 2019-11-04 17:53:29 +01:00
Khairul Azhar Kasmiran
16fa374db1 sys/meson.py: --asan accepts sanitizer list (#15405) 2019-11-04 00:38:20 -06:00
Khairul Azhar Kasmiran
3d2b2311d8
Sync default sanitizer list of sys/asan.sh and sys/meson.py (#15397)
* Sync default sanitizer list of sys/asan.sh and sys/meson.py

* Keep signed-integer-overflow
2019-11-02 21:47:17 +08:00
Khairul Azhar Kasmiran
dc65828446 sys/meson.py: Use -fsanitize=... instead of -lasan when linking (#15390) 2019-10-30 18:58:11 +01:00
TheGoddessInari
d42ed33f41 Make the generated r2.bat use bat path_relative syntax instead of hardcoding. (#15383) 2019-10-29 22:13:38 +08:00
Khairul Azhar Kasmiran
6190995828 sys/asan.sh: Use -fsanitize=... instead of -lasan when linking (#15375) ##build 2019-10-28 16:09:11 +01:00
pancake
f2d76b16cd Switch to travis-ci.com 2019-10-10 20:04:02 +02:00
Maijin
9227815fdb Change radare->radareorg links 2019-10-07 10:48:31 +02:00
Anton Kochkov
e41345edc8
Add MSVC 2019 for AppVeyor ##build (#13345)
* Try MSVC 2019 for AppVeyor ##build
* Fix meson building scripts
* Remove XP build from AppVeyor VS2019
* Install mingw
* Fix clang-cl build
2019-09-30 12:31:40 +08:00
Khairul Azhar Kasmiran
18ef593b2e Set rpath if non-Windows Meson shared ##build (#15051) 2019-09-22 10:49:54 +02:00
Gordon M
ca1eddb22d Debian package fixes (#15081) ##build
* Use xz instead of gzip
2019-09-20 12:25:26 +02:00
kmartin36
5c480054a2 Don't run ldconfig when installing into /usr (#15049) ##build
It seems that commit 7e5f1f5851 attempted to prevent /etc/ld.so.conf.d/radare.conf from being added and ldconfig from being necessary when the user installs into /usr instead of /usr/local. This patch achieves that behaviour.
2019-09-16 09:40:20 +02:00
Paul I
a08cb1bdcf Add webui option to sys/meson.py (#15037) 2019-09-14 23:02:52 +02:00
pancake
c13e6e5013 Fixes for sys/osx-pkg 2019-09-05 18:28:41 +02:00
pancake
72df7056f5 Use LTO for the Cydia build 2019-08-22 20:22:11 +02:00
pancake
5b87871294 Shrink the Cydia package from 512mb to only 64 ##build 2019-08-22 19:26:03 +02:00
pancake
30a5d7ed2d Fixes for the cydia static build of r2, needed for iOS12 2019-08-22 18:56:57 +02:00
radare
c93c094c40
Fix android-static ##build 2019-08-01 04:39:40 +02:00
pancake
f88c30dce7 Delete prefix/ and fix static builds (missing libmpc.a) ##build 2019-07-26 05:30:21 +02:00
pancake
718698d450 Fixes for the android compilations ##build 2019-07-18 11:46:06 +02:00
pancake
1034510dae Add $onlydebug in sys/ios-cydia.sh ##build 2019-07-18 02:32:24 +02:00
pancake
1aebd0a26d Fix single-step in the iOS-arm64 native debugger ##debug 2019-07-18 02:30:45 +02:00
pancake
9f4f802cec Fix build --without-gpl 2019-07-10 19:45:34 +02:00
GustavoLCR
0557ca2a3e Also put r2.bat under \bin on Windows install 2019-06-21 20:25:46 +02:00
GustavoLCR
ae00b18d0b Dynamically find radare2 install dir on Windows ##windows 2019-06-20 18:10:01 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
Anton Kochkov
1da215dcac Add codespell script 2019-06-18 14:51:30 +08:00
pancake
e29ba99a07 Add sys/build-shlib.sh and fix static builds ##build 2019-05-28 23:15:22 +02:00
pancake
092173bf90 Improve configure argument handling in sys/install.sh ##build
* Handle --help, --with-capstone5 and --install (no symlinks)
2019-05-14 17:54:11 +02:00
pancake
a8a22b9383 Add support for build for android-x86_64 ##build 2019-05-14 15:02:30 +02:00
radare
bf5e302881
Add anal.ex option, cleanup and improve the Java support ##anal
* Current java implementation of the analysis is not working well
* RBin.Java doesnt updates the vsizes because it seems to break things. wip for another PR
* Added anal.ex option to use extensions or not
2019-05-08 18:26:11 +02:00
Khairul Azhar Kasmiran
b3503ee207 sys/meson.py: Create r2.bat as alias to radare2.exe ##windows 2019-05-06 18:23:36 +02:00
radare
8f17f58fc3
Do not use system-wide capstone when building with sys/install.sh ##build 2019-04-16 16:55:15 +02:00
pancake
0ba7bdb29e Build for Cydia without libuv 2019-04-02 17:12:28 +02:00
Anton Kochkov
b858e7e10e Fix #13430 - Kill MinGW remnants ##deprecate 2019-03-31 12:03:07 +02:00
radare
7ffa72aaed
Fix #13552 - Crashes in tcc parser (#13566) 2019-03-31 00:32:14 +01:00
radare
e04f31a313
Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
pancake
3af32f95e4 Implement vdo to use aho from visual ##visual 2019-02-14 04:19:12 +01:00
pancake
8cf29fdb95 Purge capstone when doing the iOS build 2019-02-11 15:59:23 +01:00
pancake
158f8fdb8f Fix the iOS simulator build 2019-02-11 15:49:26 +01:00
pancake
f33db3e48c Some more fixes for the iOS build in sys/ios-sdk.sh 2019-02-07 17:24:40 +01:00
pancake
6a09544506 More ios-sdk build fixes 2019-01-30 09:14:24 -06:00
pancake
5535b6f380 iOS10 is required for the arm32 builds 2019-01-29 22:10:07 -06:00
pancake
0314eed9fe Add LC_VERSION_MIN for the libr2.dylib iOS build 2019-01-29 21:44:47 -06:00
pancake
709ffb60b6 Fixes for the android build and related warnings 2019-01-21 12:10:33 +01:00
pancake
fc68124f4d Do not statically link binaries by default in sys/static.sh ##build
* Use STATIC_BINS=1 env var to change this behaviour
2018-12-30 13:38:50 +01:00
pancake
90ac594f08 Initial implementation of the Alpine Linux package ##build 2018-12-18 23:07:38 +01:00
iamahuman
9ed24b16a3 Fix Emscripten support 2018-12-15 18:32:24 +01:00
Dan Robertson
81b3d9aa7a sys/user.sh: Allow setting an install path (#12412)
Users may want to install radare2 to a different directory than ~/bin.
Parse --install-path in sys/user.sh to allow for users to do so.
2018-12-05 12:30:36 +01:00
pancake
8c6ddc6375 Add sys/release.sh 2018-11-26 05:32:24 +01:00
pancake
6043d798be Fix codesigning for ios-cydia.sh with ldid2 2018-11-24 03:30:08 +01:00
Riccardo Schirone
0868b2d47f Use -static in CFLAGS too (#12246) 2018-11-21 01:55:23 +01:00
Riccardo Schirone
015ed58426 ELF plugin code cleaning ##refactor
* clang-format-diff: do not put space after Elf_
* bin/elf: remove warning because it's already printed by R_LOG_WARN
* bin/elf: rename get_static to is_static
* bin/elf: a bit of refactoring in init_dynamic_section
* Revert "bin/elf: other cleaning"
This reverts commit e39af6f69e.
* bin/elf: cleaning in r_bin_elf_get_sections
* bin/elf: refactor a bit get_sections_from_phdr
* bin/elf: fix create_section_from_phdr
* bin/elf: small style fixes in get_boffset
* bin/elf: simplify the code by using READWORD instead of #if/#else
* bin/elf: fix read_phdr because you need to pay attention to the order
2018-11-17 22:45:49 +01:00
pancake
aaea9b973c Add -static in sys/static for non-macos 2018-11-16 16:53:50 +01:00
pancake
712fca842c Improve the support for emscripten asm.js/wasm 2018-11-15 22:49:52 +01:00
Riccardo Schirone
bb3d054c6d sys/clang-format-diff: other small fixes to the style script 2018-11-15 12:18:12 +01:00
Riccardo Schirone
5651cf58f4 clang-format-diff: improve modified lines detection 2018-11-12 10:30:01 +01:00
Paul I
9ebbe7251b sys/meson.py: add missing makedirs() (#12127) 2018-11-12 08:26:38 +01:00
Paul I
3b8e0a585c Meson: add r_crypto headers to r2 dist 2018-11-11 22:07:43 +01:00
pancake
14fd07d5db Add --without-libuv and companion flags in ios-static-appstore.sh ##build 2018-11-09 18:14:47 +01:00
Riccardo Schirone
936512916b Another RBin API cleanup ##bin
* remove R_API from functions not used outside of RBin module
* move not-exported functions to a separate private header
* move bin_private in i/private.h
* fix and use R_IPI
* fix mips_assemble
2018-11-05 11:25:31 +01:00
pancake
9ae01a3c97 Make sys/indent.sh usable system wide and support directories 2018-10-27 03:14:48 +02:00
Riccardo Schirone
6115f00455
remove r_bin_load_io2 and rename MODE defines ##refactor
PR #11888 

* bin: no need for 2 r_bin_load_io APIs
* bin: remove io-related unused functions
* r_bin.h: remove some old comments
* r_bin.h: group together related APIs
* extract print/set modes in r_types, to remove dups in r_bin and r_core
* clang-format-diff: fix ternary operator indent for pancake
2018-10-24 16:54:57 +02:00
pancake
1b7d5b5f7f Downgrade credentials when building with sudo ##build 2018-10-23 22:22:38 +02:00
pancake
3670657748 Some more build fixes for iOS 2018-10-22 16:00:02 +02:00
radare
c50357fbe6
Fix the build of the iOS SDK ##build (#11884) 2018-10-21 14:56:56 +02:00
pancake
8ed55d5ea5 ios fixes 2018-10-21 01:41:48 +02:00
Riccardo Schirone
64d16fc506 Some code cleanup and asserts in RBin ##refactor
* libr/bin: no need to allocate RBinOptions on the heap
* bin: start using r_return_* around, that's just the beginning
* bin: remove io_owned since it's not used anywhere
* io: make r_io_bind return nothing
* bin: remove unused functions and simplify r_bin_load_io
r_bin_load_io was calling r_bin_load_io2 with UT64_MAX as sz parameter,
but r_bin_load_io2 just returns false if (st64)sz is less than 0, so
that call is actually useless and can be removed.
* bin/bin: fix some preconditions
* bin/open: fix precondition to check for bin and filename too
2018-10-21 01:27:15 +02:00
pancake
fd0ab00b14 Fix static blob build for android and disable libuv ##build 2018-10-20 20:10:17 +02:00
pancake
089e21ff46 Disable libuv in sys/sdk too 2018-10-20 20:00:20 +02:00
pancake
72246175f5 Add missing linking flags to statically build in OpenBSD 2018-10-20 19:58:20 +02:00
pancake
60508a370d Fix sys/meson-sdk.sh 2018-10-20 19:14:27 +02:00
pancake
7d32c05f9a Initial import of the sys/meson-sdk.sh ##build 2018-10-20 12:26:07 +02:00
pancake
a33fc03725 Fix visual panels glitch and handle 's' in zoom mode ##visual
* And remove dead code
2018-10-20 02:12:30 +02:00
pancake
9d912b46a1 Fix android build for the latest NDK based on LLVM ##build 2018-10-20 02:12:30 +02:00
pancake
734b3d73ba Do not build GPL code with the static build 2018-09-09 08:24:45 +02:00
pancake
1ad4b20e80 Static builds must go without libuv dependency ##build 2018-09-09 05:33:38 +02:00
pancake
fbd5bb72d4 Fix regexes in sys/release-notes.sh 2018-10-17 12:23:45 +02:00
Stefan Ilic
0e62aee601 Don't strip binaries in static.sh (#11832) ##build 2018-10-16 23:38:42 +02:00
radare
0a699f60e1
Add sys/release-notes.sh and define commit message conventions ##rules (#11827) 2018-10-16 23:38:20 +02:00
pancake
2e68dccde2 Improve autogen.sh to use r2pm if available 2018-10-16 00:28:51 +02:00
pancake
dc96db9e51 Try clang-format when no uncrustify is found and reindent r_reg with sys/indent.sh 2018-10-16 00:17:44 +02:00
Stefan Ilic
a0f274629c Remove auto-generated test file after build (#11719) 2018-10-02 23:58:16 +02:00
pancake
8caa2ba2ee Fix sys/sdk.sh (--without-gpl) 2018-09-26 10:03:32 -07:00
Riccardo Schirone
1f0ceaa6c7 sys/pre-commit-indent.sh: fix return code 2018-09-26 11:06:04 +02:00
Riccardo Schirone
58ae11607a
Create script to apply style to diffs (#11261)
* restore tabs size to 8 chars
* fixes clang-format-diff for function declaration
* DEVELOPERS: explain pre-commit hook
* sys/pre-commit: do not consider unstaged changes
* sys/pre-commit: change doc
* create an example in doc
* suggest --no-verify
2018-09-26 10:49:16 +02:00
Paul I
8786d57aa5 Fix sys/meson.py (#11626) 2018-09-23 10:54:37 +02:00
Khairul Azhar Kasmiran
2b94b2a909 sys/asan.sh: -u for user.sh (#11619) 2018-09-22 10:50:34 +02:00
radare
7579c57bdc
Add signed-integer-overflow for ASAN (#11604) 2018-09-21 12:03:15 +02:00
radare
81acc0dc97
Add undefined behaviour tests in the default sys/asan.sh (#11555) 2018-09-17 14:44:55 +02:00
radare
cc8a2b84be
Introduce new R_* macros to define direction, null, defaults, etc in function signatures (#11546)
- Helps to identify some bugs at compile time
- Useful for git grep and understand the usage of the functions
- Improve readability
- Fix memleak introduced in previous anal/var pr
- Help to find unnecessary null checks and start to use r_assert
- Deprecate R_TRUFAE R_TRUE R_FALSE and R_ERROR
- Add r2api script to ease system-wide git grep for r2 devs
- Use more R_OWN and r_return_val_if_fail
2018-09-17 12:27:11 +02:00
Miles Whittaker
a32ba803f4 Scripted dynamic building of alpine docker image (#11515) 2018-09-16 23:05:03 +02:00
pancake
eb4387c4d2 Delete sys/install-su.sh (implemented in install.sh with USE_SU=1) 2018-09-16 00:08:46 +02:00
pancake
d1e5b9a566 Remove sys/gtk* 2018-09-16 00:03:18 +02:00
pancake
75b9f699d8 Remove rasign2 from the list of statically built binaries 2018-09-14 12:15:15 +02:00
pancake
d389cd4468 Fix sys/build.sh on Mac 2018-09-14 01:42:50 +02:00
rdjondo
d4de63a5b2 Make compilation on Raspberry Pi more user friendly (#11379) 2018-09-13 19:08:20 +02:00
Paul I
4ed384b230 sys/meson.py: install libr/include/msvc on Windows (#11507) 2018-09-13 08:34:14 +02:00
Pavel Krčma
318012c2dc A quick fix for Android native build (#11449) 2018-09-08 17:54:20 +02:00
kij
5c848d1e8a Added support for single file in shellcheck.sh (#11360) 2018-09-03 02:50:27 +02:00
kij
04e52405b4 Add gmake check, just like install.sh (#11358) 2018-09-02 22:06:48 +02:00
Khairul Azhar Kasmiran
3a6acc3eb7 sys/user.sh: use dirname($0) instead of dirname($PWD/$0) (#11333) 2018-09-02 01:40:25 +02:00
pancake
ad02255f58 Fix shellcheck.sh 2018-08-31 17:58:37 +02:00
kij
f3d2edea56 WIP: Remove hardcoded list of scripts (#11228)
* remove hardcoded list of scripts
disabled shellcheck xml format

* removed GNU find dependency

* removed unused code
removed file caching
2018-08-31 15:54:25 +02:00
Dmitriy Somov
054351b223 Fix #7011 - Removed unused clean.sh, full-uninstall.sh, uninstall.sh, changed purge.sh (#10938)
* Deleted clean.sh, full-uninstall.sh
* Removed uninstall.sh, running make uninstall should be enough
* Changed Makefile and purge.sh, now users should only use ,ake purge or make system-purge, as listed in README
* Reduced 'distclean mrproper rmd clean' options to simple 'clean' in Makefile
2018-08-10 16:06:41 +02:00
pancake
cb5ce6ce47 Add sys/meson.py --alias 2018-08-01 14:51:41 +02:00
pancake
0d6647e4f0 Add sys/meson.py --nosudo (use sudo by default) 2018-08-01 03:12:33 +02:00
David CARLIER
adaa0bc986 Making asan no ops for OpenBSD (not supported) and few mem leaks fixes (#10842) 2018-07-29 16:43:46 +08:00
Maijin
bf9d45fa47 Fix #10767 2018-07-17 21:05:50 -04:00
pancake
c9242c5a66 Add --uninstall in sys/meson.py 2018-07-18 02:30:59 +02:00
pancake
73147a1e94 Add --pull to sys/meson.py 2018-07-18 02:28:59 +02:00
pancake
f04057cae4 Implement sys/meson.py --asan 2018-07-18 02:27:02 +02:00
pancake
33a39499a0 Add sys/meson.py --symstall 2018-07-18 02:06:19 +02:00
Riccardo Schirone
c932d1abff
meson fixes (#10743)
* r2pm/meson.build: install r2pm
* meson.build: use system libraries when available
* travis: add fedora-sys to the list of things to test
* bin_nso.c: still include lz4.c when not on meson
* Dockerfile.travis: add required system dependencies to dockerfile
* meson.build: split zip_dep in libzip and zlib dependencies
* shlr/meson.build: zip needs zlib
2018-07-17 23:01:40 +02:00