Edit Package drbd

drbd

NOTE: Automatically created during Factory devel project migration by admin.

Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename Size Changed
Comments for drbd 5

Hans-Peter Jansen's avatar

frispete wrote 6 months ago

drbd fails to build with kernel 5.9, if applying some compatibility patch...

I've been lost in the maze of coccinelle and back :-(

[    8s]   -------------------   
[    8s]   GENPATCHNAMES   5.9.0-2-default
[    8s]   APPLIED_COCCI_FILES   
[    8s] claim_disk__no_link__no_claim
[    8s] make_request__no_is_blk_qc_t__no_is_void
[    8s] blkdev_get_by_path__no_present
[    8s] blk_queue_split__no_present
[    8s]   -------------------   
[    8s] cat: drbd-kernel-compat/patches/claim_disk__no_link__no_claim.patch: No such file or directory
[    8s] make[3]: *** [Makefile:183: drbd-kernel-compat/cocci_cache/9bf10efb605e302c6e788eed9be2da2f/compat.patch] Error 1
[    8s] make[2]: *** [/home/abuild/rpmbuild/BUILD/drbd-9.0.25~0+git.1053e9f9/default/Kbuild:135: /home/abuild/rpmbuild/BUILD/drbd-9.0.25~0+git.1053e9f9/default/drbd-kernel-compat/compat.patch] Error 2
[    8s] make[1]: *** [/usr/src/linux-5.9.0-2/Makefile:1798: /home/abuild/rpmbuild/BUILD/drbd-9.0.25~0+git.1053e9f9/default] Error 2
[    8s] make: *** [../../../linux-5.9.0-2/Makefile:185: __sub-make] Error 2
[    8s] make: Leaving directory '/usr/src/linux-5.9.0-2-obj/x86_64/default'
[    8s] error: Bad exit status from /var/tmp/rpm-tmp.OXCFsN (%build)
[    8s] 
[    8s] 
[    8s] RPM build errors:
[    8s]     line 49: It's not recommended to have unversioned Obsoletes: Obsoletes: drbd-kmp-trace
[    8s]     line 49: It's not recommended to have unversioned Obsoletes: Obsoletes: drbd-kmp-desktop
[    8s]     line 49: It's not recommended to have unversioned Obsoletes: Obsoletes: drbd-kmp-xen
[    8s]     Bad exit status from /var/tmp/rpm-tmp.OXCFsN (%build)
[    9s] 
[    9s] xrated failed "build drbd.spec" at Fri Oct 16 12:13:41 UTC 2020.
[    9s] 

My attempt is available here: home:frispete:kernel:HEAD


nick wang's avatar

wanghaisu wrote 6 months ago

Indeed, coccinelle usage here is quite confusing. Some block layer changes in kernel v5.9, which cause the chaos of result incompatibility. I will fix this in this two days for Kernel:HEAD:KMP and Factory.


Hans-Peter Jansen's avatar

frispete wrote 6 months ago

Thanks for the fixes, Nick. Looks good now.


Hans-Peter Jansen's avatar

frispete wrote 2 months ago

Dear Nick,

unfortunately, kernel 5.11 doesn't like drbd again:

[ 136s] /home/abuild/rpmbuild/BUILD/drbd-9.0.26~0+git.9114a038/default/drbd_bitmap.c:22:10: fatal error: asm/kmap_types.h: No such file or directory [ 136s] 22 | #include <asm/kmap_types.h> [ 136s] | ^~~~~~~~~~~~~~~~~~ [ 136s] compilation terminated. [ 136s] make[2]: *** [/usr/src/linux-5.11.0-2/scripts/Makefile.build:280: /home/abuild/rpmbuild/BUILD/drbd-9.0.26~0+git.9114a038/default/drbd_bitmap.o] Error 1 [ 136s] make[2]: *** Waiting for unfinished jobs.... [ 137s] make[1]: *** [/usr/src/linux-5.11.0-2/Makefile:1814: /home/abuild/rpmbuild/BUILD/drbd-9.0.26~0+git.9114a038/default] Error 2 [ 137s] make: *** [../../../linux-5.11.0-2/Makefile:185: __sub-make] Error 2 [ 137s] make: Leaving directory '/usr/src/linux-5.11.0-2-obj/x86_64/default' [ 137s] error: Bad exit status from /var/tmp/rpm-tmp.aaSl92 (%build)

Would you take another look, please?


nick wang's avatar

wanghaisu wrote about 1 month ago

Just submit a compatible fix for v5.11 in https://build.opensuse.org/request/show/878475

openSUSE Build Service is sponsored by