On Friday 2023-10-20 14:58, Andrei Borzenkov wrote:
andrei@tumbleweed:~> zypper se --requires /usr/bin/patch Loading repository data... Reading installed packages...
S | Name | Summary | Type --+-----------------+------------------------------------+-------- | flatpak-builder | Tool to build flatpaks from source | package | lsb | LSB Fake Package | package andrei@tumbleweed:~> zypper se --provides -x /usr/bin/patch Loading repository data... Reading installed packages...
S | Name | Summary | Type --+---------------+---------------------------------+-------- | busybox-patch | Busybox applets replacing patch | package | patch | GNU patch | package andrei@tumbleweed:~>
How are you going to ensure that installing flatpak-builder installs "patch" and not "busybox-patch"? By always pre-installing "patch" on every system?
If flatpak-builder requires GNU patch, then the .spec file should Requires:patch, not Requires:/usr/bin/patch. If f-b does not care, then Requires:/usr/bin/patch is good enough.