Skip to content

Commit c5825ad

Browse files
authored
fixes the shared folder in deb packages (#1319)
The old script was following the old share folder layout and, as a result, bap is not working from debian as it is missing the neccessary lisp files.
1 parent 864ff06 commit c5825ad

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/nightly-testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: nightly-regression-tests
33
on:
44
schedule:
55
- cron: "0 6 * * *" # Every day at 06:00 UTC, 2 am EDT
6+
workflow_dispatch:
67

78
jobs:
89
build:

tools/release.sh

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cd bap-repo
4141
LLVM_VERSION=$(opam config var conf-bap-llvm:package-version)
4242
LLVM_CONFIG=$(opam config var conf-bap-llvm:config)
4343

44-
SIGURL=https://github.com/BinaryAnalysisPlatform/bap/releases/download/v2.1.0
44+
SIGURL=https://github.com/BinaryAnalysisPlatform/bap/releases/download/v2.3.0
4545
echo BAP version is $BAP_VERSION
4646
echo LLVM is $LLVM_VERSION
4747

@@ -69,29 +69,23 @@ mkdir -p bap/bap_$BAP_VERSION/DEBIAN
6969
SHARED=bap/bap_$BAP_VERSION/$PREFIX/share
7070
BINDIR=bap/bap_$BAP_VERSION/$PREFIX/bin
7171
LIBDIR=bap/bap_$BAP_VERSION/$PREFIX/lib/bap
72-
SIGDIR=bap/bap_$BAP_VERSION/$PREFIX/share/bap
7372
DEBIAN=bap/bap_$BAP_VERSION/DEBIAN
74-
PRIMUS=$SHARED/primus/site-lisp
75-
BAPAPI=$SHARED/bap-api
7673

77-
mkdir -p $BINDIR $LIBDIR $SIGDIR $DEBIAN $PRIMUS $BAPAPI
74+
SIGDIR=$SHARED/bap/signatures/
75+
76+
mkdir -p $SHARED $BINDIR $LIBDIR $DEBIAN
77+
78+
cp -r $PREFIX/share/bap $SHARED/bap
7879

7980
for binary in $BINARIES; do
8081
cp $PREFIX/bin/$binary bap/bap_$BAP_VERSION/$PREFIX/bin
8182
done;
8283

8384
cp $PREFIX/lib/bap/*.plugin $LIBDIR
84-
curl -L $SIGURL/sigs.zip > $SIGDIR/sigs.zip
85-
86-
87-
LISPSRC="primus_lisp primus_taint primus_test constant_tracker primus_symbolic_executor"
88-
for src in $LISPSRC; do
89-
cp bap-repo/plugins/$src/lisp/*.lisp $PRIMUS/
90-
done;
91-
92-
cp -r bap-repo/plugins/api/api/c $BAPAPI
93-
cp bap-repo/plugins/primus_systems/systems/*.asd $SHARED/primus
9485

86+
echo "Installing Byteweight signatures"
87+
mkdir -p $SIGDIR
88+
curl -L $SIGURL/sigs.zip > $SIGDIR/byteweight.zip
9589

9690
cat > $DEBIAN/control <<EOF
9791
Package: bap

0 commit comments

Comments
 (0)