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

app-containers/containers-{common,storage}: with stable & live of deps #32976

Closed
wants to merge 5 commits into from

Conversation

rahilarious
Copy link
Contributor

Common configs & docs for Containers eco-system (i.e. podman buildah skopeo...)

Go realm, executables are all in compiled, static, tidy in one binary but docs & configs...OMG all over the place. Spent whole day coding all these (such noob, I know), but was fun & fulfilling. Once this is merged the foundation of podman-stack is built, so will proceed to update frontend packages of eco-system.

Closes: https://bugs.gentoo.org/907805
Closes: https://bugs.gentoo.org/904433
Closes: https://bugs.gentoo.org/914456
Closes: https://bugs.gentoo.org/907804

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @rahilarious
Areas affected: ebuilds
Packages affected: app-containers/containers-common, app-containers/containers-image, app-containers/containers-shortnames, app-containers/containers-storage

app-containers/containers-common: @gentoo/proxy-maint (new package)
app-containers/containers-image: @gentoo/proxy-maint (new package)
app-containers/containers-shortnames: @gentoo/proxy-maint (new package)
app-containers/containers-storage: @zmedico

Linked bugs

Bugs linked: 914456, 904433, 907804, 907805


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added new package The PR is adding a new package. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Sep 21, 2023
@rahilarious rahilarious force-pushed the containers-common branch 2 times, most recently from 2a13e45 to 4170ac6 Compare September 21, 2023 20:15

SLOT="0"

DEPEND="
Copy link
Member

Choose a reason for hiding this comment

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

BDEPEND (because we execute it during the build)


EAPI=8

DESCRIPTION="Common config files and docs for Containers eco-system"
Copy link
Member

Choose a reason for hiding this comment

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

Change the whitespace so it's like:

DESCRIPTION
HOMEPAGE
SRC_URI

LICENSE
SLOT
BDEPEND
...

src_prepare() {

}

...

This roughly matches skel.ebuild.

[[ ${PV} == *9999* ]]
}

if is_live; then
Copy link
Member

Choose a reason for hiding this comment

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

I don't really see the benefit here, you could just put it above with SRC_URI (as suggested above).

Look at what other ebuilds do (e.g. ntpsec-9999)

}

src_compile() {
emake docs || die
Copy link
Member

Choose a reason for hiding this comment

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

No need for || die with newer EAPIs for builtins like emake. Still needed for external commands which may fail.

.PHONY:
EOF

eapply "${T}/fix-warnings.patch" || die
Copy link
Member

Choose a reason for hiding this comment

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

No need for die.

[[ -f docs/Makefile ]] || die
sed -i -e 's|/usr/local|/usr|g' docs/Makefile

cat <<"EOF" > "${T}/fix-warnings.patch"
Copy link
Member

Choose a reason for hiding this comment

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

Can't you put this in a proper patch in files/ and then add it to PATCHES in the ebuild?

default

[[ -f docs/Makefile ]] || die
sed -i -e 's|/usr/local|/usr|g' docs/Makefile
Copy link
Member

Choose a reason for hiding this comment

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

die

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-09-21 21:55 UTC
Newest commit scanned: f542043
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0797067887/output.html

app-containers/containers-common depends on this

Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
app-containers/containers-common depends on this

Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
releasing 1.50.2 & live version in next commit

Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
adding myself as maint + drop USE flags

Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
Common configs & docs for Containers eco-system (i.e. podman buildah skopeo...)

Go realm, executables are all in compiled, static, tidy in one binary but docs & configs...OMG all over the place. Spent whole day coding all these (such noob, I know), but was fun & fulfilling. Once this is merged the foundation of podman-stack is built, so will proceed to update frontend packages of eco-system.

Closes: https://bugs.gentoo.org/907805
Closes: https://bugs.gentoo.org/904433
Closes: https://bugs.gentoo.org/914456
Closes: https://bugs.gentoo.org/907804
Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. new package The PR is adding a new package.
Projects
None yet
4 participants