Open cateto56 opened 2 years ago
Seems that shell-blur-effect.c / shell-blur-effect.c is outdate. You can just remove workspace
directory under mutter-rounded/fedora
simply and try run package script again, it should build package correctly.
I got a similar but with meta-window-wayland.c
➜ ubuntu git:(main) ./package.sh
[run] mkdir -p workspace
[run] cd workspace
[run] sudo sed -i s/^# deb-src/deb-src/g /etc/apt/sources.list
[run] sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Hit:3 https://ppa.launchpadcontent.net/aslatter/ppa/ubuntu jammy InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 https://ppa.launchpadcontent.net/cdemu/ppa/ubuntu jammy InRelease
Hit:6 https://ppa.launchpadcontent.net/ethereum/ethereum/ubuntu jammy InRelease
Hit:7 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu jammy InRelease
Hit:8 http://ng.archive.ubuntu.com/ubuntu focal InRelease
Hit:9 http://ng.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:10 http://ng.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:11 http://ng.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:12 http://ng.archive.ubuntu.com/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
[run] sudo apt install -y gnupg pbuilder ubuntu-dev-tools apt-file
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-file is already the newest version (3.2.2).
gnupg is already the newest version (2.2.27-3ubuntu2.1).
pbuilder is already the newest version (0.231build1).
ubuntu-dev-tools is already the newest version (0.189).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[run] sudo apt build-dep -y mutter
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[run] rm -rf mutter-* shell-blur-effect*
Reading package lists... Done
NOTICE: 'mutter' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/gnome-team/mutter.git -b ubuntu/master
Please use:
git clone https://salsa.debian.org/gnome-team/mutter.git -b ubuntu/master
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 2,880 kB of source archives.
Get:1 http://ng.archive.ubuntu.com/ubuntu jammy/main mutter 42.0-3ubuntu2 (dsc) [4,544 B]
Get:2 http://ng.archive.ubuntu.com/ubuntu jammy/main mutter 42.0-3ubuntu2 (tar) [2,742 kB]
Get:3 http://ng.archive.ubuntu.com/ubuntu jammy/main mutter 42.0-3ubuntu2 (diff) [133 kB]
Fetched 2,880 kB in 11s (261 kB/s)
Download complete and in download only mode
dpkg-source: info: extracting mutter in mutter-42.0
dpkg-source: info: unpacking mutter_42.0.orig.tar.xz
dpkg-source: info: unpacking mutter_42.0-3ubuntu2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying clutter-Mark-clutter_stage_grab-return-value-as-transfer-.patch
dpkg-source: info: applying clutter-Pass-target-actor-of-events-to-event-filter-funct.patch
dpkg-source: info: applying events-Use-the-event-target-actor-to-determine-window-for.patch
dpkg-source: info: applying wayland-surface-Disable-WL_SURFACE_ERROR_INVALID_SIZE-che.patch
dpkg-source: info: applying winsys-Check-for-KHR_swap_buffers_with_damage.patch
dpkg-source: info: applying clutter-Always-unregister-point-on-GRAB_NOTIFY-leave-even.patch
dpkg-source: info: applying clutter-pick-stack-Avoid-uninitialized-cairo_region_subtr.patch
dpkg-source: info: applying workspace-Use-existing-focus_window-when-asked-to-focus-d.patch
dpkg-source: info: applying backends-native-Make-function-to-determine-ClutterInputDe.patch
dpkg-source: info: applying clutter-Add-ClutterInputCapabilities-flagset.patch
dpkg-source: info: applying clutter-Add-ClutterInputDevice-capabilities-property.patch
dpkg-source: info: applying backends-native-Assign-capabilities-to-input-devices.patch
dpkg-source: info: applying clutter-Add-compatibility-code-to-get-input-capabilities-.patch
dpkg-source: info: applying wayland-Set-wayland-seat-capabilities-based-on-input-devi.patch
dpkg-source: info: applying wayland-Check-input-device-capabilities-in-tablet-seats.patch
dpkg-source: info: applying backends-Update-MetaInputSettings-to-apply-settings-based.patch
dpkg-source: info: applying core-Port-to-input-device-capabilities-in-pad-mapper.patch
dpkg-source: info: applying onscreen-native-Don-t-try-rendering-on-a-secondary-GPU-wi.patch
dpkg-source: info: applying onscreen-native-Fall-back-if-COPY_MODE_SECONDARY_GPU-fail.patch
dpkg-source: info: applying window-Check-fullscreen-status-when-window-changes-monito.patch
dpkg-source: info: applying xwayland-Init-DnD-on-every-Xwayland-start.patch
dpkg-source: info: applying x11-Set-WM_S0-last.patch
dpkg-source: info: applying wayland-shm-Add-support-for-ABGR8888-and-XBGR8888-formats.patch
dpkg-source: info: applying clutter-Refactor-code-marking-actors-dirty-for-paint.patch
dpkg-source: info: applying clutter-Keep-actors-dirty-if-a-redraw-was-queued-up-durin.patch
dpkg-source: info: applying cogl-context-Add-transfer-full-annotation-to-destroy-time.patch
dpkg-source: info: applying cursor-tracker-Add-missing-annotation-to-meta_cursor_trac.patch
dpkg-source: info: applying mutter-Add-missing-nullable-annotation-when-possible.patch
dpkg-source: info: applying startup-notification-Specify-the-actual-type-in-the-chang.patch
dpkg-source: info: applying shaped-texture-Pass-along-the-snippet-to-the-texture-towe.patch
dpkg-source: info: applying shaped-texture-Paint-with-the-right-layer-snippet.patch
dpkg-source: info: applying kms-impl-device-Add-addfb2_modifiers-to-MetaKmsDeviceCaps.patch
dpkg-source: info: applying kms-device-Disable-modifiers-when-DRM_CAP_ADDFB2_MODIFIER.patch
dpkg-source: info: applying clutter-stage-Repick-when-pointer-actor-goes-unmapped.patch
dpkg-source: info: applying core-Account-ClutterStage-grabs-on-Wayland-key-focus-sync.patch
dpkg-source: info: applying x11-selection-Unset-selection-ownership-on-shutdown.patch
dpkg-source: info: applying tests-test-client-Add-clipboard-set-command.patch
dpkg-source: info: applying wayland-Add-getter-for-XWayland-manager-object.patch
dpkg-source: info: applying xwayland-Only-warn-on-X-IO-errors-when-X11-is-mandatory.patch
dpkg-source: info: applying xwayland-Add-API-to-send-signal-to-the-Xwayland-process.patch
dpkg-source: info: applying selection-Return-an-error-if-trying-to-transfer-from-NULL.patch
dpkg-source: info: applying x11-input-selection-stream-Handle-Xwayland-going-away.patch
dpkg-source: info: applying tests-async-waiter-Keep-track-of-X11-display-it-was-creat.patch
dpkg-source: info: applying tests-Check-that-X11-selections-handle-Xwayland-disappear.patch
dpkg-source: info: applying clutter-Bail-out-and-warn-on-reentry-into-mapping-unmappi.patch
dpkg-source: info: applying theme-use-gtk_render_icon_suface-to-paint-button-icon.patch
dpkg-source: info: applying theme-load-icons-as-Gtk-does-with-fallback-and-RTL-suppor.patch
dpkg-source: info: applying meson-add-back-default_driver-option.patch
dpkg-source: info: applying tests-Mark-view-verification-tests-as-incomplete-in-big-e.patch
dpkg-source: info: applying Consistently-pass-timestamp-as-uint64-when-creating-MetaS.patch
dpkg-source: info: applying backends-native-kms-crtc-Don-t-compare-gamma-values-on-un.patch
dpkg-source: info: applying monitor-manager-Ensure-monitors-settings-after-backend-ha.patch
dpkg-source: info: applying Support-Dynamic-triple-double-buffering.patch
dpkg-source: info: applying debian/tests-Tag-unstable-tests-as-flaky.patch
dpkg-source: info: applying debian/tests-Do-not-run-screencast-tests.patch
dpkg-source: info: applying debian/meson-Do-not-mark-CI-test-tools-as-required.patch
dpkg-source: info: applying debian/tests-skip-monitor-width-size-check-as-it-may-lead-to-une.patch
dpkg-source: info: applying ubuntu/x11-Add-support-for-fractional-scaling-using-Randr.patch
dpkg-source: info: applying ubuntu/wayland-data-device-Allow-any-drag-timestamp-as-drag-star.patch
[run] wget https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/42.0/src/shell-blur-effect.c
--2022-09-01 10:09:29-- https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/42.0/src/shell-blur-effect.c
Resolving gitlab.gnome.org (gitlab.gnome.org)... 8.43.85.27, 2620:52:3:1:5054:ff:fe8f:413d
Connecting to gitlab.gnome.org (gitlab.gnome.org)|8.43.85.27|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27926 (27K) [text/plain]
Saving to: ‘shell-blur-effect.c’
shell-blur-effect.c 100%[===================>] 27.27K 68.7KB/s in 0.4s
2022-09-01 10:09:31 (68.7 KB/s) - ‘shell-blur-effect.c’ saved [27926/27926]
[run] wget https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/42.0/src/shell-blur-effect.h
--2022-09-01 10:09:31-- https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/42.0/src/shell-blur-effect.h
Resolving gitlab.gnome.org (gitlab.gnome.org)... 8.43.85.27, 2620:52:3:1:5054:ff:fe8f:413d
Connecting to gitlab.gnome.org (gitlab.gnome.org)|8.43.85.27|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1918 (1.9K) [text/plain]
Saving to: ‘shell-blur-effect.h’
shell-blur-effect.h 100%[===================>] 1.87K --.-KB/s in 0s
2022-09-01 10:09:32 (435 MB/s) - ‘shell-blur-effect.h’ saved [1918/1918]
[run] cp shell-blur-effect.c shell-blur-effect.h mutter-42.0/src
[run] cp /home/froyenbird/josias/mutter-rounded/ubuntu/../patches/meta_clip_effect.c /home/froyenbird/josias/mutter-rounded/ubuntu/../patches/meta_clip_effect.h /home/froyenbird/josias/mutter-rounded/ubuntu/../patches/shader.h mutter-42.0/src
[run] cd mutter-42.0/
[run] patch -p1
patching file data/org.gnome.mutter.gschema.xml.in
patching file src/compositor/compositor-private.h
patching file src/compositor/compositor.c
Hunk #2 succeeded at 514 (offset -1 lines).
Hunk #3 succeeded at 564 (offset -1 lines).
Hunk #4 FAILED at 914.
Hunk #5 succeeded at 926 (offset -4 lines).
Hunk #6 succeeded at 1102 (offset -14 lines).
Hunk #7 succeeded at 1175 (offset -20 lines).
Hunk #8 succeeded at 1196 (offset -21 lines).
Hunk #9 succeeded at 1541 (offset -21 lines).
1 out of 9 hunks FAILED -- saving rejects to file src/compositor/compositor.c.rej
patching file src/compositor/meta-window-actor-private.h
patching file src/compositor/meta-window-actor-wayland.c
Hunk #2 succeeded at 130 with fuzz 1 (offset -5 lines).
Hunk #3 succeeded at 193 (offset -5 lines).
Hunk #4 succeeded at 504 (offset -5 lines).
Hunk #5 succeeded at 539 (offset -5 lines).
Hunk #6 succeeded at 559 with fuzz 1 (offset -5 lines).
Hunk #7 succeeded at 573 (offset -5 lines).
patching file src/compositor/meta-window-actor-x11.c
Hunk #2 succeeded at 439 (offset -20 lines).
Hunk #3 succeeded at 579 (offset -20 lines).
Hunk #4 succeeded at 738 (offset -20 lines).
Hunk #5 succeeded at 1082 (offset -20 lines).
Hunk #6 succeeded at 1094 (offset -20 lines).
Hunk #7 succeeded at 1202 (offset -20 lines).
Hunk #8 succeeded at 1226 (offset -20 lines).
Hunk #9 succeeded at 1377 (offset -20 lines).
patching file src/compositor/meta-window-actor.c
patching file src/core/prefs.c
patching file src/meson.build
Hunk #1 succeeded at 174 (offset 1 line).
Hunk #2 succeeded at 475 (offset 1 line).
Hunk #3 succeeded at 1031 (offset 1 line).
patching file src/meta/prefs.h
patching file src/ui/frames.c
patching file src/ui/frames.h
patching file src/wayland/meta-window-wayland.c
[err: 1] patch -p1
please fix the package.sh script for fedora. I encountered the following issue:
package.sh:
Then i corrected the variable pkgver in the script. The tar extracted fine. But i other errors during patching
package.sh: