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

add test deb packaging and fix misc build problems #91

Merged
merged 6 commits into from
Jan 25, 2024

Conversation

garlick
Copy link
Member

@garlick garlick commented Jan 25, 2024

This adds a make deb target which builds a deb package from the current source tree, handy for testing.

Along the way I found a few problems and tossed in fixes for those too.

Problem: the project version is parsed without stripping
a leading 'v', causing problems for debbuild.

Strip out the 'v' in the AC_INIT scriptlet as we do on
other projects.
Problem: snapshot packaging makes testing the installed
powerman less messy on the test system.

Add a 'make deb' target to build packages in debbuild,
borrowing heavily from Mark Grondona's work in flux-framework.
Problem: installing build dependencies is an irritating
iterative process.

Add a script to install all the dependencies for debian.
Problem: vpcd used to be installed but is no longer, yet it
still has a man page.

Remove man page.
Problem: autogen.sh moves aclocal.m4, which triggers a rebuild
and rerun of configure in maintainer mode.

Just copy over flux-core's autogen.sh as it contains some other
improvements as I recall.
Problem: libtool is used to build the installed libpowerman
library, but not convenience libraries which could lead to
problems.

Right now the API is disjoint from the rest of powerman but
if it were to use convenience libraries, we could run into
trouble with non-PIC code.

Use libtool for the whole project.
Copy link
Member

@chu11 chu11 left a comment

Choose a reason for hiding this comment

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

lgtm except for the nits i saw below.

Although I'm not familiar with debian builds, dunno if you wanna get a debian familiar person to skim it quick.

debian/copyright Outdated
Files: *
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bramble
Source: <https://github.com/worlickwerx/pi-cluster-two>
Copy link
Member

Choose a reason for hiding this comment

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

should be the source of powerman?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops :-)

debian/control Outdated
libcurl4-gnutls-dev,
libgenders-dev

Homepage: https://github.com/worlickwerx/pi-cluster-two
Copy link
Member

Choose a reason for hiding this comment

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

need to tweak for powerman?

@garlick
Copy link
Member Author

garlick commented Jan 25, 2024

Pushed a fix for those (embarassing) errors. I've tested this on my test system and looks good. This isn't meant to be used beyond simple testing so I think the bar is pretty low as far as compliance with debian's many rules. I'll go ahead and set MWP.

@mergify mergify bot merged commit c7cb796 into chaos:master Jan 25, 2024
8 checks passed
@garlick garlick deleted the debbuild branch January 25, 2024 20:04
@garlick
Copy link
Member Author

garlick commented Jan 25, 2024

Oh crap, non-linear history again. Does mergify need something configured a bit different?

@garlick
Copy link
Member Author

garlick commented Jan 25, 2024

Oh the time is messed up on this test box, never mind.

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