Skip to content

Full featured apt package using stdeb - #1686

Merged
g1itch merged 5 commits into
Bitmessage:v0.6from
g1itch:debian
Nov 4, 2020
Merged

Full featured apt package using stdeb#1686
g1itch merged 5 commits into
Bitmessage:v0.6from
g1itch:debian

Conversation

@g1itch

@g1itch g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator

As you suggested this PR is instead of #1675. Maybe squash more?

@PeterSurda

Copy link
Copy Markdown
Member

Yes please squash, and remove Dockerfile and src/bitmessagemain.py from the PR.

@g1itch

g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator Author

The build process was documented in bionic job of the example .travis.yml it's basically

sudo apt-get install -yq apt-file build-essential debhelper dh-python fakeroot libssl-dev python-all-dev \
    python-msgpack python-qt4 python-setuptools python-stdeb
python setup.py sdist
python setup.py --command-packages=stdeb.command bdist_deb

Using export VERSION=$(python setup.py -V) you may find the package in deb_dist/pybitmessage_${VERSION}-1_amd64.deb. Such name is because it's a program, not library. python-<libname>_<version_arch>.deb is for libraries.

@PeterSurda

Copy link
Copy Markdown
Member

Yes I'm fixing it.

@g1itch

g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator Author

Yes please squash, and remove Dockerfile and src/bitmessagemain.py from the PR.

So you OK with the old deb building procedure in the Dockerfile? Changes to bitmessagemain are needed if you want to use pybitmessage -t when installed from deb.

@PeterSurda

Copy link
Copy Markdown
Member

Won't the Dockerfile work if you skip pybitmessage -t?

@g1itch

g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator Author

Won't the Dockerfile work if you skip pybitmessage -t?

pybitmessage -t is used to generate default keys.dat. Then it generates password and edits the config.

@PeterSurda

Copy link
Copy Markdown
Member

I thought it was supposed to create the defaults if settingsversion isn't high enough, even if the api* options are already set.

@g1itch

g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator Author

Without installing extra packages and running core tests it's just builds faster.

@PeterSurda

Copy link
Copy Markdown
Member

It looks like an overkill to run pybitmessage -t just to create a default config file.

@g1itch

g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator Author

It looks like an overkill to run pybitmessage -t just to create a default config file.

Otherwise user should connect to container upon first run and manually enable API and set username and password.

@PeterSurda

Copy link
Copy Markdown
Member

I think instead the bmconfigparser should set defaults when it's missing. Then you could create a minimal keys.dat and wouldn't have to run pybitmessage -t:

[bitmessagesettings]
settingsversion = auto
dontconnect = false
apiusername = aaa
apipassword = bbbb
apiinterface = 0.0.0.0
apienabled = true

@PeterSurda

Copy link
Copy Markdown
Member

I also don't understand why these two things (Dockerfile and dpkg) are in one PR.

@g1itch

g1itch commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator Author

I also don't understand why these two things (Dockerfile and dpkg) are in one PR.

I removed dpkg use from Dockerfile because it was a documentation for building deb. I can squash those changes with the removal of previous package files. Or I can drop last two commits and address docker cleanup in separate PR if you prefer.

@PeterSurda
PeterSurda self-requested a review October 31, 2020 09:24
@PeterSurda PeterSurda added this to the v0.6.4 milestone Oct 31, 2020

@PeterSurda PeterSurda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok approved, just fix pylint.

@g1itch

g1itch commented Nov 2, 2020

Copy link
Copy Markdown
Collaborator Author

I forgot the apparmor config here.

@PeterSurda PeterSurda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok

@g1itch
g1itch merged commit 93bf7ad into Bitmessage:v0.6 Nov 4, 2020
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.

2 participants