pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
using genrpm
Alistair Crooks ÐÐÐÐÑÐÐ(ÐÐ):
> Check out pkgsrc/pkgtools/gensolpkg, and pkgsrc/pkgtools/genrpm. Although
> I'm not sure if time has been kind to either of them.
>
Hi! I'm trying to use genrpm on Linux (RHEL-5.4). The package itself
built -- although I was surprised to learn, it requires the rpm-package
to run, instead of using the system-wide /bin/rpm.
But how do I use the script?
genrpm --help
Making directory "/usr/pkg/src/redhat"
Making directory "/home/mt/pkgsrc/packages/rpms"
Making directory "/home/mt/pkgsrc/packages/rpms/x86_64"
Making directory "/home/mt/pkgsrc/packages/srpms"
Using pkg_tarup version pkg_tarup-1.8
Using rpm version rpm-2.5.4nb6
genrpm: WARNING!!! Package "--help" not found
Looking inside the script, I see some switches, but how is one to use
it? I'd like to build and rpm for pkgtools/pkg_install, so as to be able
to bootstrap our Linux servers quickly and use pkg_-tools after that to
manipulate the binary packages.
The manual page is not much more specific. If I follow it, I get:
root@ws-testjw:pkgsrc/pkgtools/pkg_install (406) genrpm pkg_install
Making directory "/usr/pkg/src/redhat"
Making directory "/home/mt/pkgsrc/packages/rpms"
Making directory "/home/mt/pkgsrc/packages/rpms/x86_64"
Making directory "/home/mt/pkgsrc/packages/srpms"
Using pkg_tarup version pkg_tarup-1.8
Using rpm version rpm-2.5.4nb6
Making an rpm spec file for pkg_install-20091115 -
pkg_install-20091115 - (pkg_install-20091115-0)
/bin/cp: cannot stat `patch-*': No such file or directory
Creating binary package: pkg_install-20091115
Creating package
/usr/obj/rpm/BUILD/pkg_install-20091115/pkg_install-20091115
File /opt/src/redhat/SOURCES/pkg_install-20091115-pkgsrc.tar: No
such file or directory
/bin/ls:
/home/mt/pkgsrc/packages/rpms/x86_64/pkg_install-20091115-*: No such
file or directory
Please, advise. Thanks! Yours,
-mi
Home |
Main Index |
Thread Index |
Old Index