View previous topic :: View next topic |
Author |
Message |
assemblerhead n00b
Joined: 23 Jan 2016 Posts: 29 Location: TX,US
|
Posted: Sat May 11, 2024 3:19 pm Post subject: Need help with a patch for the Alsa UCM bug. |
|
|
Followed the Gentoo patch gen guide at wiki.gentoo.org/wiki/creating_a_patch.
Cannot get the ebuild in the local/testing overlay to use it.
I am using links for a browser / cannot get a working -pipewire/pulseaudio- without a working Alsa UCM.
CMD : alsaucm listcards
Response : listisempty
Alsa lost its UCM config path:/usr/share/alsa |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54453 Location: 56N 3W
|
Posted: Sat May 11, 2024 3:30 pm Post subject: |
|
|
assemblerhead,
Tells us what you patched and what the error is when you try to use it.
Post the patch if it helps.
You cannot apply a batch to the ebuild itself. Instead copy it to your local overlay and edit it there. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
assemblerhead n00b
Joined: 23 Jan 2016 Posts: 29 Location: TX,US
|
Posted: Sat May 11, 2024 5:32 pm Post subject: requested info |
|
|
file patched /src/ucm/makefile.am
Line added under : AM_CPPFLAGS=-I($top_srcdir)/include
Line added : AM_CPPFLAGS=-I/usr/share/alsa
placed the patch in the files dir, for the overlay.
Error :
* Applying alsa-lib-1.1.6-missing_files.patch ... [ ok ]
* Applying alsa-lib-1.2.11-topology-correct-version-script-path.patch ... [ ok ]
* Applying alsa-lib-1.2.11-lost-ucm-config-path.patch ...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/alsa-lib-1.2.11/src/ucm/Makefile.am b/alsa-lib-1.2.11/src/ucm/Makefile.am
|index 7108968..ef84ef0 100644
|--- a/alsa-lib-1.2.11/src/ucm/Makefile.am
|+++ b/alsa-lib-1.2.11/src/ucm/Makefile.am
-------------------------- |
|
Back to top |
|
|
assemblerhead n00b
Joined: 23 Jan 2016 Posts: 29 Location: TX,US
|
Posted: Sat May 11, 2024 5:47 pm Post subject: |
|
|
file patched: /src/ucm/makefiles.am
Error :
* Applying alsa-lib-1.2.11-topology-correct-version-script-path.patch ... [ ok ]
* Applying alsa-lib-1.2.11-lost-ucm-config-path.patch ...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/alsa-lib-1.2.11/src/ucm/Makefile.am b/alsa-lib-1.2.11/src/ucm/Makefile.am
|index 7108968..ef84ef0 100644
|--- a/alsa-lib-1.2.11/src/ucm/Makefile.am
|+++ b/alsa-lib-1.2.11/src/ucm/Makefile.am
--------------------------
No file to patch. Skipping patch. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54453 Location: 56N 3W
|
Posted: Sun May 12, 2024 1:53 pm Post subject: |
|
|
assemblerhead,
te patch.
Portage can't find the file Code: | alsa-lib-1.2.11/src/ucm/Makefile.am | to patch.
Its using Code: | patch -p1 a/alsa-lib-1.2.11/src/ucm/Makefile.am | the -p1 throws away the first path element, here a/
Code: | >>> Preparing source in /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11 ...
* Applying alsa-lib-1.1.6-missing_files.patch ... [ ok ]
* Applying alsa-lib-1.2.11-topology-correct-version-script-path.patch . [ ok ]
* Running eautoreconf in '/var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11' ...
|
The full path to the file you want to patch is Code: | /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11/src/ucm/Makefile.am |
Your patch path looks correct.
Can you apply the patch manually?
Code: |
ebuild /var/db/repos/gentoo/media-libs/alsa-lib/alsa-lib-1.2.11.ebuild prepare
cd /var/tmp/portage/media-libs/alsa-lib-1.2.11/work
patch -p1 <path_to_patch_file> |
The ebuild command runs the unpack and prepare phase functions, then gives you control back. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1744
|
Posted: Sun May 12, 2024 2:33 pm Post subject: |
|
|
NeddySeagoon wrote: | Portage can't find the file Code: | alsa-lib-1.2.11/src/ucm/Makefile.am | to patch.
Its using Code: | patch -p1 a/alsa-lib-1.2.11/src/ucm/Makefile.am | the -p1 throws away the first path element, here a/
The full path to the file you want to patch is Code: | /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11/src/ucm/Makefile.am |
Your patch path looks correct. |
I will disagree here.
src_prepare, where eapply_user is run, starts by changing to $S. Here, $S=/var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11
So the patch must be a/src/ucm/Makefile.am and b/src/ucm/Makefile.am in its headers to be compatible with -p1. |
|
Back to top |
|
|
assemblerhead n00b
Joined: 23 Jan 2016 Posts: 29 Location: TX,US
|
Posted: Mon May 13, 2024 7:38 pm Post subject: Thanks for the info, got it partly working |
|
|
A new error. GCC crashes when it hits my added "-I/usr/share/alsa".
--file not found : ucm_local.h--
How do I inform alsa-lib where their ucm config files are?
Can't use absolute pathing in CPP includes per GCC manuel. |
|
Back to top |
|
|
|