You are not logged in.

#1 2025-04-27 09:52:34

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

[Solved] Match source package and binary packages

As some PKGBUILDs provide split packages, is there script or something to figure out from which PKGBUILD it came from?

Last edited by solskogen (2025-04-27 13:48:50)

Offline

#2 2025-04-27 10:37:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,400

Re: [Solved] Match source package and binary packages

Something like

expac "%e %n" | awk '$1 != $2'

should get you pretty close, basically you are looking for packages whose package name is different from their pkgbase name

Offline

#3 2025-04-27 11:46:07

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

Re: [Solved] Match source package and binary packages

Thank you!

Offline

#4 2025-04-27 12:46:26

seth
Member
Registered: 2012-09-03
Posts: 63,637

Re: [Solved] Match source package and binary packages

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#5 2025-04-27 13:04:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,362
Website

Re: [Solved] Match source package and binary packages

Or just:

pacman -Sp --print-format %e $PKGNAME

Last edited by Trilby (2025-04-27 13:05:53)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2025-04-27 13:53:24

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

Re: [Solved] Match source package and binary packages

Trilby wrote:

Or just:

pacman -Sp --print-format %e $PKGNAME

That gives way more information than I need, so the one from V1del was exactly what I needed.

Offline

#7 2025-04-27 14:11:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,362
Website

Re: [Solved] Match source package and binary packages

Way more information?  It literally gives just a single token of the package base and absolutely nothing else.  The expac command gives a list of all packages and their base names for which there is a mismatch.

Perhaps I misunderstood your goal - but there's no way my suggestion gave *more* information than requested.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2025-04-27 14:27:18

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,639

Re: [Solved] Match source package and binary packages

it does give more info then needed.

$ pacman -Sp --print-format %e vulkan-radeon
llvm
mesa
$ pacman -Sp --print-format %e opencl-rusticl-mesa-minimal-git 
spirv-llvm-translator-minimal-git
libclc-minimal-git
llvm-minimal-git
llvm-minimal-git
mesa-minimal-git
$ 

first package has mesa as pkgbase, 2nd has mesa-minimal-git as pkgbase .

(haven't tried the expac command)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2025-04-27 14:27:23

solskogen
Member
From: Norway
Registered: 2005-03-06
Posts: 135

Re: [Solved] Match source package and binary packages

No, it doesn't.

[solskogen@cozy ~]$ pacman -Sp --print-format %e zam-plugins-vst
fftw
libsigc++
glslang
gsm
libunibreak
libass
libbluray
libbs2b
libdvdread
libdvdnav
libmodplug
portaudio
libopenmpt
shaderc
libdovi
libplacebo
libsoxr
libvdpau
libvpl
openjpeg2
rubberband
srt
zimg
vapoursynth
vid.stab
vmaf
l-smash
x264
x265
xvidcore
libsodium
libpgm
zeromq
ffmpeg
aubio
cairomm
sdl3
libinstpatch
fluidsynth
glibmm
liblo
raptor
liblrdf
libltc
libev
libwebsockets
serd
zix
sord
lv2
sratom
lilv
pangomm
vamp-plugin-sdk
ardour
zita-convolver
zam-plugins

Offline

#10 2025-04-27 20:02:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,362
Website

Re: [Solved] Match source package and binary packages

Oops!  Yes, that all depends on missing dependencies.  The proper command would ignore those:

pacman -Spdd --print-format %e ...

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB