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
project.diff 0000001386 1.35 KB 21 days
Comments for drbd 3

Hans-Peter Jansen's avatar

frispete wrote about 1 month 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 about 1 month 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 about 1 month ago

Thanks for the fixes, Nick. Looks good now.