Error when re-building package from source
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel-gpu-tools (Ubuntu) |
Invalid
|
Undecided
|
Hector CAO | ||
Jammy |
Fix Committed
|
Undecided
|
Hector CAO |
Bug Description
[ Impact ]
Impossible to build the package from source on Ubuntu 22.04, users will get
this error:
```
int main(void) {
void *a = (void*) &memfd_create;
long long b = (long long) a;
return (int) b;
}
Compiler stdout:
Compiler stderr:
Checking for function "memfd_create" : YES
Configuring config.h using configuration
../lib/
dh_auto_configure: error: cd build && LC_ALL=C.UTF-8 meson .. --wrap-
make[1]: *** [debian/rules:19: override_
make[1]: Leaving directory '/home/
make: *** [debian/rules:39: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
```
The problem comes from the bad call to meson function underscorify in
lib/meson.build
This problem has been fixed upstream:
963917a3565466
lib/meson.build: Fix underscorify call
f.underscorify() is correct, f.underscorify(f) is an error that later
meson versions don't like at all.
The proposed fix for Ubuntu consists of backporting this patch.
[ Test Plan ]
Build the package from source on Ubuntu 22.04
The build command is : dpkg-buildpackage -us -uc -b
Ubuntu release : Jammy 22.04
Meson version : 0.61.2
[ Where problems could occur ]
The problem occurs only at build process
[ Other Info ]
This issue only happens at build and has been fixed upstream.
It is safe to have it in SRU
description: | updated |
This problem has been fixed upstream:
963917a35654668 32a3b2fc22e9285 d34a0bf944
lib/meson.build: Fix underscorify call
f.underscorify() is correct, f.underscorify(f) is an error that later
meson versions don't like at all.
Closes: #107
Fixes: 588555f7
See : https:/ /gitlab. freedesktop. org/drm/ igt-gpu- tools/- /commit/ 963917a35654668 32a3b2fc22e9285 d34a0bf944
I propose to backport this patch