[Rpm-maint] [rpm-software-management/rpm] Document RPM generator input and output format (#1011)

mikhailnov notifications at github.com
Wed Jan 15 17:10:26 UTC 2020


I have been writing an RPM generator (https://rpm.org/user_doc/dependency_generators.html) and I can't understand which output format it must have.
Script is here: https://abf.io/import/devel-rpm-generators/
It simply does not work, no provides/requires are generated, I have looked into `pkgconfigdeps.sh`, tried to make the same output format, but it still does not work. Neither stdout not stderr are printed.
But, if I run it locally, it works correctly:

`` `
bash-4.4# ls /usr/lib64/*.so | $(rpm --eval %__devel_provides) 2>/dev/null
devel(libBrokenLocale(64bit))
devel(libanl(64bit))
devel(libatomic(64bit))
devel(libc(64bit))
devel(libcrypt(64bit))
devel(libdl(64bit))
<...>
```

Just as  `pkgconfigdeps.sh`:
```
bash-4.4# ls /usr/lib64/pkgconfig/*.pc -1v | /usr/lib/rpm/pkgconfigdeps.sh --provides
pkgconfig(libzstd) = 1.4.3
pkgconfig(popt) = 1.16
pkgconfig(rpm) = 4.15.1
```

Example build log with this generator enabled: https://abf.io/build_lists/3186141

Currently the output method is:
```
echo -n "$@ "
echo
```
(https://abf.io/import/devel-rpm-generators/blob/rosa2019.1/develgen.sh#lc-7)
It is like https://github.com/rpm-software-management/rpm/blob/master/scripts/pkgconfigdeps.sh#L34

Please help to understand what is wrong in https://abf.io/import/devel-rpm-generators/ . There is no documentation.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200115/dfb4f898/attachment.html>


More information about the Rpm-maint mailing list