gasket-driver/_service
Chris Bradbury cfbc2aae74 Accepting request 1086620 from home:chrBrd:branches:hardware
Add patch to enable successful builds for Leap 15.5.

The dma-buf symbols used by this driver were moved into their own `DMA_BUF`
module namespace in kernel 5.16. Consequently, the upstream source conditionally
imports the `DMA_BUF` module namespace if the kernel version is >= 5.16.

However, the `DMA_BUF` module namespace changes have been backported to the
5.14 kernel used in Leap 15.5, causing unpatched source builds to fail.

This change incorporates a patch that removes the conditional check in the
upstream source, importing the `DMA_BUF` module namespace regardless of kernel
version, and applies that patch when `sle_version` is equal to "150500"
(ie. is Leap 15.5 or greater).

The patch is taken from the PR at:
https://github.com/google/gasket-driver/pull/10

OBS-URL: https://build.opensuse.org/request/show/1086620
OBS-URL: https://build.opensuse.org/package/show/hardware/gasket-driver?expand=0&rev=3
2023-05-11 19:51:02 +00:00

30 lines
1.2 KiB
Plaintext

<!--
For documentation on the contents of this file see:
https://github.com/openSUSE/obs-service-tar_scm#user-documentation
https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_service.html
https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.best-practices.scm_integration.html
https://en.opensuse.org/openSUSE:Build_Service_Concept_SourceService
-->
<services>
<!-- Download the module source from GitHub. -->
<service name="obs_scm">
<param name="url">https://github.com/google/gasket-driver</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">97aeba5</param>
<param name="versionformat">%h</param>
</service>
<!-- Compress source files into a tarball. -->
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<!-- Download all source and patch files that are specified in the spec file via url. -->
<service name="download_files"/>
<!-- This has to be included or the build will fail attempting to parse the "Version"
line in the spec file. -->
<service name="set_version" mode="buildtime"/>
</services>