Skip to content

borgbackup: initial commit #19973

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

Merged
merged 9 commits into from
Nov 29, 2022
Merged

borgbackup: initial commit #19973

merged 9 commits into from
Nov 29, 2022

Conversation

julienmalik
Copy link
Contributor

Maintainer: me
Compile tested: on Turris OS stable, based off of OpenWRT 21.02
Run tested: on Turris OS stable, based off of OpenWRT 21.02

Description:

Add package for borgbackup and its dependencies.

@BKPepe BKPepe requested review from commodo and jefferyto November 26, 2022 11:00
@hnyman
Copy link
Contributor

hnyman commented Nov 26, 2022

Fails in CI.
Apparently dirty patches.
You need to run "make package/xxxx/refresh" to fix the patches. (Likely for each package)


PKG_LICENSE:=BSD
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=The Borg Collective
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if this is accepted here.

@julienmalik
Copy link
Contributor Author

Thanks for the review @BKPepe, I addressed all your comments.

@BKPepe
Copy link
Member

BKPepe commented Nov 26, 2022 via email

@julienmalik
Copy link
Contributor Author

Yep spotted that just after writing. Fixed now

@julienmalik
Copy link
Contributor Author

Some concerns :

@hnyman
Copy link
Contributor

hnyman commented Nov 26, 2022

Still fails for the dirty patch.
You need to run the refresh, so that the patch gets properly formatted (and the refresh check in CI notices nothing)

if [ -s "/home/build/openwrt/build_dir/target-arc_archs_glibc/pypi/exceptiongroup-1.0.4/patches/series" ]; then (cd "/home/build/openwrt/build_dir/target-arc_archs_glibc/pypi/exceptiongroup-1.0.4"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
Applying patch 0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch
patching file setup.py

Now at patch 0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch
touch "/home/build/openwrt/build_dir/target-arc_archs_glibc/pypi/exceptiongroup-1.0.4/.quilt_checked"
Applying patch 0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch
patching file setup.py

Now at patch 0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch
Refreshed patch 0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch
mkdir -p ./patches
rm -f ./patches/* 2>/dev/null >/dev/null
'/home/build/openwrt/build_dir/target-arc_archs_glibc/pypi/exceptiongroup-1.0.4/patches/0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch' -> './patches/0001-add-setup.py-to-avoid-depending-on-flit-for-building.patch'
make[2]: Leaving directory '/feed/lang/python/python-exceptiongroup'
time: package/feeds/packages_ci/python-exceptiongroup/refresh#0.22#0.04#0.26
make[1]: Leaving directory '/home/build/openwrt'
Dirty patches detected, please refresh and review the diff
Error: Process completed with exit code 1.

@julienmalik
Copy link
Contributor Author

I replaced my initial patch with a proper git format-patch but was not sufficient.

Now ran make package/python-exceptiongroup/refresh on top of it

Thanks for your patience :)

@stangri stangri changed the title BorgBackup borgbackup: initial commit Nov 26, 2022
Copy link
Contributor

@commodo commodo left a comment

Choose a reason for hiding this comment

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

1 minor comment
rest looks good

@hnyman hnyman merged commit d115eec into openwrt:master Nov 29, 2022
@julienmalik julienmalik deleted the borg branch December 1, 2022 11:46
@hnyman
Copy link
Contributor

hnyman commented Dec 2, 2022

@BKPepe
Apparently you backported borgbackup to 22.03.
Please be aware that xxhash included in it may cause build failures for other packages like stress-ng.

See #19453 (comment)

@BKPepe
Copy link
Member

BKPepe commented Dec 2, 2022

Uggh... I wanted to make users happy that they are going to have it in OpenWrt 22.03. 😢 😭 Thanks for letting me know. I will address it shortly. I would notice later than you since my builds are usually running after midnight.

@commodo
Copy link
Contributor

commodo commented Dec 3, 2022

Uggh... I wanted to make users happy that they are going to have it in OpenWrt 22.03. cry sob Thanks for letting me know. I will address it shortly. I would notice later than you since my builds are usually running after midnight.

yeah, i no longer care about making users happy;
since having 2 kids around the house, trying to make them (as users) happy, is ¯\_(ツ)_/¯

anyway; i will fix stress-ng in 22.03

@commodo
Copy link
Contributor

commodo commented Dec 3, 2022

yeah, i no longer care about making users happy; since having 2 kids around the house, trying to make them (as users) happy, is ¯_(ツ)_/¯

i'm reivising the above statement;
i remembered of cases where i also tried to make users happy;

apologies for any hypocrisy (on my part)

@ynezz
Copy link
Member

ynezz commented Jan 2, 2023

I wanted to make users happy that they are going to have it in OpenWrt 22.03

root@aba8b869ca40:/# opkg install gdb
Unknown package 'gdb'.

https://downloads.cdn.openwrt.org/releases/faillogs-22.03/aarch64_cortex-a72/base/gdb/compile.txt

Package gdb is missing dependencies for the following libraries:
libxxhash.so.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants