Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rizin as subproject dist #4684

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

amibranch
Copy link
Contributor

@amibranch amibranch commented Oct 22, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

PR to replace:

Test plan

CI is green

Closing issues

Partially addresses #3454

@amibranch
Copy link
Contributor Author

amibranch commented Oct 23, 2024

Note:

  • Will add gnu99 to PCRE2 to fix builds on CentOS and Debian in next push
  • Will add gnu99 to rzqnx to fix static build

@amibranch
Copy link
Contributor Author

Note:

* Will add `gnu99` to PCRE2 to fix builds on CentOS and Debian in next push

* Will add `gnu99` to rzqnx to fix static build

Same for tree-sitter

@amibranch
Copy link
Contributor Author

amibranch commented Oct 23, 2024

...
Same for tree-sitter

Same for xz/Libzlma and rzgdb

@amibranch amibranch force-pushed the rizin_as_subproject-dist branch 2 times, most recently from 3c69d33 to d7db846 Compare October 23, 2024 08:24
@github-actions github-actions bot added the GDB label Oct 23, 2024
@amibranch
Copy link
Contributor Author

To any potential reviewer:
The cc.has_argument('--std=***')-changes still need some cleanups and the branch must be rebased. Will update this PR, as soon as CI approves

@amibranch
Copy link
Contributor Author

To any potential reviewer: The cc.has_argument('--std=***')-changes still need some cleanups and the branch must be rebased. Will update this PR, as soon as CI approves

Done so far. PR is ready for review

Copy link
Member

@XVilka XVilka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! I am blocking this first to push to the internal branch first so that even more CI jobs are triggered. If they pass - I think it's mergeable almost as is. Please squash your (and mine, if necessary) commits to be self-descriptive and/or self-contained.

#4686

@@ -355,7 +359,7 @@ foreach it : ccs
have_pthread = it_th.found() and it_machine.system() != 'windows'
if it_machine.system() == 'sunos'
# workaround for Solaris until https://github.com/mesonbuild/meson/issues/4328 is fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the comment also then.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thestr4ng3r take a look at this one please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't test unfortunately. Seems my solaris disk is not in the server and I have no physical access at the moment. But from manual review, this looks good and likely we can remove this workaround entirely in another patch independently of this pr.

@XVilka
Copy link
Member

XVilka commented Oct 23, 2024

@amibranch all additional CI jobs passed flawlessly. Lets wait for more reviews and it's ready to be merged, IMHO. Just squash your commits.

@amibranch
Copy link
Contributor Author

Squashed commits into one - awaiting reviews

Copy link
Member

@wargio wargio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems ok on linux.

@XVilka
Copy link
Member

XVilka commented Oct 25, 2024

@amibranch please rebase again and make a commit message to follow the common commit convention: https://www.conventionalcommits.org

As for the review, now only waiting for @thestr4ng3r to respond about the Solaris changes. After that is sorted out - it's good to merge.

* Setting GNU99/C99 standard for subprojects
* Remove use of `add_global_arguments`
* Added extern "C" linkage specification to some public headers of rizin
* Changed the meson_git_wrapper.py-script to explicitly specify the output-path
* Made the RIZIN_BUILD_PATH conditional in the integration-test meson-build
@thestr4ng3r
Copy link
Member

Linking failure on OpenBSD/sparc64, but this seems unrelated, doesn't it?
openbsd-sparc64-link.txt

@amibranch
Copy link
Contributor Author

amibranch commented Oct 27, 2024

cc -Ilibrz/arch/librz_arch.so.0.8.0.p -I. -I.. -Ilibrz -I../librz -Ilibrz/include -I../librz/include -I../librz/arch/isa -I../librz/arch/isa_gnu -Ilibrz/arch -I../librz/arch -Ilibrz/util/sdb/src -I../librz/util/sdb/src -I../librz/bin/format -I../librz/type/parser -I../subprojects/capstone-next/include -I../subprojects/capstone-next/include/capstone -Isubprojects/rzspp -I../subprojects/rzspp -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 --std=gnu99 -Werror=sizeof-pointer-memaccess -Wimplicit-fallthrough=3 -fvisibility=hidden -DRZ_PLUGIN_INCORE=1 -DSUPPORTS_PCRE2_JIT -D_GNU_SOURCE -Wno-cpp -fPIC -MD -MQ librz/arch/librz_arch.so.0.8.0.p/isa_arm_arm_il32.c.o -MF librz/arch/librz_arch.so.0.8.0.p/isa_arm_arm_il32.c.o.d -o librz/arch/librz_arch.so.0.8.0.p/isa_arm_arm_il32.c.o -c ../librz/arch/isa/arm/arm_il32.c
../librz/arch/isa/arm/arm_il32.c:8:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
    8 | #pragma GCC diagnostic ignored "-Wenum-conversion"
      |                                ^~~~~~~~~~~~~~~~~~~

Not sure what changed the behavior of the CI here. Will investigate and rebase if necessary

Update:
NVM - found #4662 (comment)

@XVilka
Copy link
Member

XVilka commented Oct 27, 2024

cc -Ilibrz/arch/librz_arch.so.0.8.0.p -I. -I.. -Ilibrz -I../librz -Ilibrz/include -I../librz/include -I../librz/arch/isa -I../librz/arch/isa_gnu -Ilibrz/arch -I../librz/arch -Ilibrz/util/sdb/src -I../librz/util/sdb/src -I../librz/bin/format -I../librz/type/parser -I../subprojects/capstone-next/include -I../subprojects/capstone-next/include/capstone -Isubprojects/rzspp -I../subprojects/rzspp -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 --std=gnu99 -Werror=sizeof-pointer-memaccess -Wimplicit-fallthrough=3 -fvisibility=hidden -DRZ_PLUGIN_INCORE=1 -DSUPPORTS_PCRE2_JIT -D_GNU_SOURCE -Wno-cpp -fPIC -MD -MQ librz/arch/librz_arch.so.0.8.0.p/isa_arm_arm_il32.c.o -MF librz/arch/librz_arch.so.0.8.0.p/isa_arm_arm_il32.c.o.d -o librz/arch/librz_arch.so.0.8.0.p/isa_arm_arm_il32.c.o -c ../librz/arch/isa/arm/arm_il32.c
../librz/arch/isa/arm/arm_il32.c:8:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
    8 | #pragma GCC diagnostic ignored "-Wenum-conversion"
      |                                ^~~~~~~~~~~~~~~~~~~

Not sure what changed the behavior of the CI here. Will investigate and rebase if necessary

Update: NVM - found #4662 (comment)

Yes, we will merge after #4691 (when it's updated to fix remaining issues) to make CI happy.

@XVilka XVilka merged commit 8e6b764 into rizinorg:dev Oct 29, 2024
52 checks passed
@amibranch amibranch mentioned this pull request Nov 3, 2024
5 tasks
@amibranch amibranch deleted the rizin_as_subproject-dist branch November 3, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants