-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add debian source package files #249
base: main
Are you sure you want to change the base?
Conversation
debian/control
Outdated
@@ -0,0 +1,43 @@ | |||
Source: machine-emulator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think name should be cartesi-machine-emulator
.
debian/control
Outdated
lua-lpeg, | ||
lua-posix-dev, | ||
lua-sec-dev, | ||
lua-socket-dev, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lua-posix
, lua-sec
, lua-socket
are only needed for testing could remove if we are not performing tests.
lua-lpeg
can be removed
lua-dkjson
we are not using anymore for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took them from the Dockerfile, I'll add an issue to clean it up as well.
debian/control
Outdated
Depends: | ||
libboost1.81-dev, | ||
liblua5.4-dev, | ||
libslirp-dev, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lua-dev
and slirp-dev
are only needed during build time, so could move to Build-Depends
.
debian/patches/series
Outdated
@@ -0,0 +1,3 @@ | |||
fix-make-clean | |||
add-generated-files | |||
fix-removal-of-generated-files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably make the changes needed for fix-removal-of-generated-files
and fix-make-clean
into the emulator source tree.
Could the workflow shared on this PR comment be a workflow in CI? |
Yes, I plan on replacing the binary version with this one on CI. I just wanted to confirm the direction since the debian source packaging is so intrusive. Thus the draft. |
40cf70a
to
1b252ce
Compare
61654b7
to
8df51ae
Compare
In the uarch toolchain image (`cartesi/toolchain:0.17.0-rv64ima-lp64`), run the following commands: ``` apt build-dep . -y --no-install-recommends dch -v `make -s version` "Release `make -s version`" dpkg-buildpackage ``` Packages are created on the parent directory.
8df51ae
to
a3c1bf4
Compare
workflow: