bump: capstone=5.0.3 & unicorn=2.1.1 (#2451)

* bump: capstone=5.0.3 & unicorn=2.1.0

* archlinux: fix usage of correct versions of Python dependencies

* bump: unicorn=2.1.1

* portable: remove unneeded proot

* bump: nixpkgs & poetry2nix

* fix pycache for release nix
pull/2474/head
patryk4815 1 year ago committed by GitHub
parent eccfd91d86
commit d96815153a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1726560853,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -26,11 +26,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1703863825, "lastModified": 1720066371,
"narHash": "sha256-rXwqjtwiGKJheXB43ybM8NwWB8rO2dSRrEqes0S7F5Y=", "narHash": "sha256-uPlLYH2S0ACj0IcgaK9Lsf4spmJoGejR9DotXiXSBZQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-github-actions", "repo": "nix-github-actions",
"rev": "5163432afc817cf8bd1f031418d1869e4c9d5547", "rev": "622f829f5fe69310a866c8a6cd07e747c44ef820",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -41,11 +41,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1723541349, "lastModified": 1728472043,
"narHash": "sha256-LrmeqqHdPgAJsVKIJja8jGgRG/CA2y6SGT2TjX5Do68=", "narHash": "sha256-+fUCZ7C34cp+bY5E9Hw4biRyI+IINVsO+sXFCieWkZA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4877ea239f4d02410c3516101faf35a81af0c30e", "rev": "4fa56ac6d86a213b556d4db9b1cb43a51b3e40ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -66,11 +66,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1723512448, "lastModified": 1728266256,
"narHash": "sha256-VSTtxGKre1p6zd6ACuBmfDcR+BT9+ml8Y3KrSbfGFYU=", "narHash": "sha256-RefXB9kqYch6uGT+mo6m3KTbNerfbDYz+EqkLb6YBbs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "poetry2nix", "repo": "poetry2nix",
"rev": "ed52f844c4dd04dde45550c3189529854384124e", "rev": "8e965fd42c0da4357c53d987bc62b54a954424da",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -122,11 +122,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719749022, "lastModified": 1727984844,
"narHash": "sha256-ddPKHcqaKCIFSFc/cvxS14goUhCOAwsM1PbMr0ZtHMg=", "narHash": "sha256-xpRqITAoD8rHlXQafYZOLvUXCF6cnZkPfoq67ThN0Hc=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "8df5ff62195d4e67e2264df0b7f5e8c9995fd0bd", "rev": "4446c7a6fc0775df028c5a3f6727945ba8400e64",
"type": "github" "type": "github"
}, },
"original": { "original": {

@ -31,7 +31,6 @@ let
version = pwndbg.version; version = pwndbg.version;
architecture = gdb.stdenv.targetPlatform.system; architecture = gdb.stdenv.targetPlatform.system;
}; };
nativeBuildInputs = [ pkgs.makeWrapper pkgs.proot ];
} }
'' ''
mkdir -p $out/pwndbg/bin/ mkdir -p $out/pwndbg/bin/
@ -58,7 +57,7 @@ let
# build pycache # build pycache
chmod -R +w $out/pwndbg/lib/${python3.libPrefix}/site-packages/pwndbg chmod -R +w $out/pwndbg/lib/${python3.libPrefix}/site-packages/pwndbg
SOURCE_DATE_EPOCH=0 proot -b $out/pwndbg:/usr/lib/pwndbg ${pwndbgVenv}/bin/python3 -c "import compileall; compileall.compile_dir('/usr/lib/pwndbg/', force=True);" SOURCE_DATE_EPOCH=0 ${pwndbgVenv}/bin/python3 -c "import compileall; compileall.compile_dir('$out', stripdir='$out', force=True);"
''; '';
in in
portable portable

1185
poetry.lock generated

File diff suppressed because it is too large Load Diff

@ -157,8 +157,7 @@ packages = [
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.10" python = "^3.10"
# Newer versions of capstone break tests capstone = "^5.0.3"
capstone = "5.0.2"
ipython = "^8.27.0" ipython = "^8.27.0"
# Needed by Capstone due to https://github.com/pwndbg/pwndbg/pull/1946#issuecomment-1921603947 # Needed by Capstone due to https://github.com/pwndbg/pwndbg/pull/1946#issuecomment-1921603947
setuptools = "^70.0.0" setuptools = "^70.0.0"
@ -171,7 +170,7 @@ ropgadget = "7.3"
sortedcontainers = "^2.4.0" sortedcontainers = "^2.4.0"
tabulate = "^0.9.0" tabulate = "^0.9.0"
typing-extensions = "^4.12.0" typing-extensions = "^4.12.0"
unicorn = "^2.0.1.post1" unicorn = "^2.1.1"
requests = "^2.32.3" requests = "^2.32.3"
pt = {git = "https://github.com/martinradev/gdb-pt-dump", rev = "50227bda0b6332e94027f811a15879588de6d5cb"} pt = {git = "https://github.com/martinradev/gdb-pt-dump", rev = "50227bda0b6332e94027f811a15879588de6d5cb"}

@ -77,7 +77,7 @@ install_pacman() {
if [[ "$answer" == "y" ]]; then if [[ "$answer" == "y" ]]; then
sudo pacman -Syu || true sudo pacman -Syu || true
fi fi
sudo pacman -S --noconfirm --needed git gdb python python-capstone python-unicorn python-pycparser python-psutil python-ptrace python-pyelftools python-six python-pygments which debuginfod curl sudo pacman -S --noconfirm --needed git gdb python which debuginfod curl
if ! grep -qs "^set debuginfod enabled on" ~/.gdbinit; then if ! grep -qs "^set debuginfod enabled on" ~/.gdbinit; then
echo "set debuginfod enabled on" >> ~/.gdbinit echo "set debuginfod enabled on" >> ~/.gdbinit
fi fi

Loading…
Cancel
Save