file2pacDep(1rrp)

πŸ“¦
version 2.21 Β· 3 versions
, in epel 9, fedora 43, fedora 44

πŸ’– file2pacDep β€” the rpmrebuild plugin that turns file deps into package deps πŸ’–

okay bestie, welcome to file2pacDep(1rrp), a lil rpmrebuild plugin. She's here to do one thing and do it iconically: take your package's dependencies on files and glow them up into dependencies on packages. πŸ¦‹


✨ NAME ✨

file2pacDep.plug β€” a plugin for rpmrebuild, to change file dependencies into package dependencies. πŸŽ€


🌸 SYNOPSIS 🌸

rpmrebuild --include file2pacDep.plug <packagename>
or
rpmrebuild --change-spec-requires="file2pacDep.sh [option]" <packagename>

the first form apply all changes

the second allow to choose which part to change, and plugin options


πŸ’… DESCRIPTION πŸ’…

so here's the tea: this plugin replaces all of a package's files dependencies with package dependencies. fr fr, all of them. ✨

Like, a dependency on /bin/bash gets swapped into a dependency on the bash package. Same deal for libraries. no cap. 🫢


πŸ”₯ OPTIONS πŸ”₯

  • -f, --file β€” just apply changes on files with path (ex : /bin/bash) πŸ“
  • -l, --lib β€” just apply changes on libraries file (ex : libc.so) πŸ“š
  • -h, --help β€” output help information about plugins option and exit. πŸ†˜
  • -v, --version β€” print plugin version and exit πŸ‘‘
  • -V, --forceversion β€” add a dependency to current version (>=) ⬆️

πŸŽ€ FILES πŸŽ€

  • file2pacDep.plug β€” is the 'include file' for a quicker use ⚑
  • file2pacDep.sh β€” contains the code 🧠
  • file2pacDep.plug.1 β€” is this man page πŸ“– (yes, the one you're reading, main character energy)

🌈 EXAMPLES 🌈

"normal" rpm dependencies are :

$ rpm -qR rpm
gawk
fileutils
textutils
mktemp
shadow-utils
popt = 1.6.4
/bin/sh
/bin/sh
/bin/sh
rpmlib(CompressedFileNames) <= 3.0.4-1
ld-linux.so.2
libbz2.so.1
libc.so.6
libpopt.so.0
libpthread.so.0
librpm-4.0.4.so
librpmbuild-4.0.4.so
librpmdb-4.0.4.so
librpmio-4.0.4.so
librt.so.1
libz.so.1
/bin/sh
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.2.3)
libpthread.so.0(GLIBC_2.0)
librt.so.1(GLIBC_2.1)

now build a modified package:

rpmrebuild --include file2pacDep.plug rpm

and the result is :

$ rpm -qpR rpm-4.0.4-7x19.i386.rpm
rpmlib(VersionedDependencies) <= 3.0.3-1
popt = 1.6.4
bash
bzip2-libs
fileutils
gawk
glibc
mktemp
popt
rpm
shadow-utils
textutils
zlib
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1

look at her go, all those file paths turned into tidy lil package names πŸ’–


πŸ‘‘ AUTHORS πŸ‘‘

Eric Gerbier <eric.gerbier@tutanota.com>

See <URL:http://rpmrebuild.sourceforge.net/>.


πŸ“ NOTES πŸ“

this plugin is given as an example of what can be done 🌟


rpmrebuild is copyright (C) 2004 by Eric Gerbier.

this program is distributed under GNU General Public License

It is provided "as is", without any express or implied warranties. See the file COPYING for details.

heads up bestie: "as is", no warranties, that's the deal β€” don't come for her if something breaks πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

rpm(8), rpmbuild(8), rpmrebuild_plugins(1)

compat_digest.plug(1), demo.plug(1), demofiles.plug(1), nodoc.plug(1), uniq.plug(1), file2pacDep.plug(1), exclude_file.plug(1), un_prelink.plug(1) set_tag.plug(1), unset_tag.plug(1)

man -k rrp for plugins specific manpages πŸ”


and that's the whole page, bestie!! ✨ this one came to you from Eric Gerbier, version 2.21, dated file2pacDep(1rrp) β€” slay, go rebuild something cute πŸ’…πŸŽ€

πŸ“¦ where this page comes from