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

testing/sdfat: new aport #6608

Closed
wants to merge 2 commits into from
Closed

testing/sdfat: new aport #6608

wants to merge 2 commits into from

Conversation

TBK
Copy link
Contributor

@TBK TBK commented Mar 10, 2019

https://github.com/TBK/kernel-sdfat
FAT12/16/32(VFAT)/64(exFAT) filesytems kernel module

@TBK
Copy link
Contributor Author

TBK commented Mar 10, 2019

CIs fails because the pkgs are build in the wrong order. I do not know how to fix it...

@TBK
Copy link
Contributor Author

TBK commented Mar 10, 2019

Commit order does nothing :/

@TBK TBK force-pushed the testing/sdfat branch 3 times, most recently from 7529fd4 to 3f8182f Compare March 19, 2019 14:47
@Ikke Ikke added the T-ci-malfunction Travis malfunction, must be built locally by developer label Mar 20, 2019
@Ikke
Copy link
Contributor

Ikke commented Mar 20, 2019

@TBK

Trying to build sdfat in an lxc container gives the following error:

make[1]: *** /lib/modules/4.9.65/build: No such file or directory. Stop.

So it seems to depend on a linux-$flavor package (which is not installed in an lxc contian

@TBK
Copy link
Contributor Author

TBK commented Mar 20, 2019

@TBK

Trying to build sdfat in an lxc container gives the following error:

make[1]: *** /lib/modules/4.9.65/build: No such file or directory. Stop.

So it seems to depend on a linux-$flavor package (which is not installed in an lxc contian

I made the exfat-utils-sdfat package depend on the sdfat package since it is a special variant of https://pkgs.alpinelinux.org/package/edge/community/armv7/exfat-utils:

depends="sdfat-${FLAVOR:-vanilla}"

@Ikke
Copy link
Contributor

Ikke commented Mar 20, 2019

Yes, so I try to build sdfat first, but that one already fails..

@TBK
Copy link
Contributor Author

TBK commented Mar 20, 2019

The template I used for the sdfat package is a copy of the one used for all of the kernel module packages - https://pkgs.alpinelinux.org/packages?name=*-vanilla&branch=edge&arch=x86_64

Might be the wrong way of doing it...

I am not sure if abuild sets the FLAVOR variable or which system that is suppose to defines it during build.

Maybe you could get vanilla - https://pkgs.alpinelinux.org/packages?name=linux-*&branch=edge&arch=x86_64 and set FLAVOR=vanilla as an env variable.

@TBK TBK force-pushed the testing/sdfat branch 2 times, most recently from ff45967 to 6d62623 Compare April 9, 2019 12:19
@Ikke Ikke added A-new Adds a new aport package R-testing Testing repository labels Apr 15, 2019
@TBK
Copy link
Contributor Author

TBK commented Apr 18, 2019

@ncopa Could I get you to review this?

@TBK TBK force-pushed the testing/sdfat branch 3 times, most recently from 8ed8b73 to 3bcac82 Compare May 8, 2019 11:08
@Ikke
Copy link
Contributor

Ikke commented May 11, 2019

I tried it again, but it still does not work. It's looking for lib/modules/$(uname -r)/, which does not exist. Two issues I see:

  1. The modules path is $(uname -r)-<rel>-<flavor>.
  2. The running kernel may be different from the installed modules. Especially in the build system, where the installed linux- version may be different from the kernel running on the host. In my case, uname -r returns '4.9.65', while /lib/modules/ contains '4.19.41-0-vanilla'

Hope this helps a bit.

@Ikke Ikke added the S-broken This patch is broken, must not be merged label May 11, 2019
@tcely tcely added this to Pending in Triage May 17, 2019
Copy link
Contributor

@maxice8 maxice8 left a comment

Choose a reason for hiding this comment

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

for commit 4caab34:
Please add comment on why !check is disabled
indentation on --sbindir line is wonky

Triage automation moved this from Pending to Review in progress May 20, 2019
@probot-autolabeler probot-autolabeler bot added the R-community Community repository label May 31, 2019
@TBK TBK force-pushed the testing/sdfat branch 4 times, most recently from d8a3781 to d790247 Compare May 31, 2019 13:30
@tcely tcely moved this from Review in progress to Please change in Triage Jun 2, 2019
@TBK
Copy link
Contributor Author

TBK commented Jun 5, 2019

@Ikke It builds cleanly now. So could I get you to review it again?

@tcely tcely added S-needs-review Needs thorough review, should not be merged before that and removed S-broken This patch is broken, must not be merged T-ci-malfunction Travis malfunction, must be built locally by developer labels Jun 7, 2019
testing/sdfat/APKBUILD Outdated Show resolved Hide resolved
@Ikke
Copy link
Contributor

Ikke commented Jun 8, 2019

@TBK It works for me with this patch, to match the current available kernel version:

diff --git a/testing/sdfat/APKBUILD b/testing/sdfat/APKBUILD
index 2de954ea14..d80e24ad65 100644
--- a/testing/sdfat/APKBUILD
+++ b/testing/sdfat/APKBUILD
@@ -8,7 +8,7 @@ _rel=0

 _flavor=${FLAVOR:-vanilla}
 _kpkg=linux-$_flavor
-_kver=4.19.45
+_kver=4.19.48
 _krel=0

 _kpkgver="$_kver-r$_krel"

Does that mean we need to make sure this gets updated along with any kernel upgrades?

@TBK
Copy link
Contributor Author

TBK commented Jun 8, 2019

@TBK It works for me with this patch, to match the current available kernel version:

@Ikke Thanks. I apparently missed the last kernel bump. Now fixed.

Does that mean we need to make sure this gets updated along with any kernel upgrades?

Yes, just as we do with all other kernel modules - zfs, wireguard... - https://pkgs.alpinelinux.org/packages?name=*-vanilla&branch=edge&arch=x86_64

@Ikke Ikke added S-ready Ready for merge and removed S-needs-review Needs thorough review, should not be merged before that labels Jun 8, 2019
@tcely tcely moved this from Please change to Reviewer approved in Triage Jun 10, 2019
@algitbot
Copy link

Merged in 8bc4717, 74ad2c4 by @Ikke. Thanks for your contribution!

(This pull request has been closed automatically by GitHub PR Closer. If you think that it’s not resolved yet, please add a comment.)

@algitbot algitbot closed this Jun 10, 2019
Triage automation moved this from Reviewer approved to Done Jun 10, 2019
kraj pushed a commit to kraj/aports that referenced this pull request Jun 10, 2019
kraj pushed a commit to kraj/aports that referenced this pull request Jun 10, 2019
@Ikke
Copy link
Contributor

Ikke commented Jun 10, 2019

The kernel has been updated in the mean time to 4.19.49, so I updated the commit to use that version.

@TBK
Copy link
Contributor Author

TBK commented Jun 10, 2019

@Ikke thanks 👍

@TBK TBK deleted the testing/sdfat branch June 14, 2019 11:21
@tcely tcely removed the S-ready Ready for merge label Aug 26, 2019
algitbot pushed a commit that referenced this pull request Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-new Adds a new aport package R-community Community repository R-testing Testing repository
Projects
5 participants