Hi Graham, you should use the options for setting the "openca" user/group. That is:
$ ./configure --with-openca-user=<...> --with-openca-group=<...>
that should fix your problem. Also, to build both the source and the
binary, update the Makefile.devel (line 225) and use the -ta instead
of -tb for the rpmbuild command, that is:
rpmbuild -ta "$(PKGNAME)-$(VERSION).tar.gz" ; \
I have not tested it yet, but that should work.
Let me know,
Max
On 03/17/2010 09:42 PM, Graham Leggett wrote:
Hi all,
After successfully building RPMs (and SRPMs) from the openca-tools
package by running rpmbuild -tb openca-tools-1.3.0.tar.gz, I tried the
same on the openca-base-1.1.0.tar.gz file, but had no luck.
I eventually tried the "make rpm" target after looking for clues in
the source, and the build fails as below, with reference to a hard
coded user called madwolf.
Can anyone confirm whether the procedure to create (s)rpms is correct?
I found an old post via Google suggesting that "make srpm" would work,
but this target doesn't exist.
Can anyone confirm how this is done?
+ '[' -n /var/tmp/rpmbuild/openca-base-1.1.0 -a /var/tmp/rpmbuild/
openca-base-1.1.0 '!=' / ']'
+ rm -rf /var/tmp/rpmbuild/openca-base-1.1.0
+ DESTDIR=/var/tmp/rpmbuild/openca-base-1.1.0
+ make install-online install-offline
Script dir...
/usr/bin/make -s scripts SUBTARGET=install
+ /usr/bin/install -c -d -o madwolf -g openca -m 755 /var/tmp/rpmbuild
/usr/bin/install: invalid user `madwolf'
make[11]: *** [__install_dir] Error 1
+ /usr/bin/install -c -d -o madwolf -g openca -m 755 /var/tmp/rpmbuild/
openca-base-1.1.0
/usr/bin/install: invalid user `madwolf'
make[10]: *** [__install_dir] Error 1
+ /usr/bin/install -c -d -o madwolf -g openca -m 755 /var/tmp/rpmbuild/
openca-base-1.1.0/opt
/usr/bin/install: invalid user `madwolf'
make[9]: *** [__install_dir] Error 1
+ /usr/bin/install -c -d -o madwolf -g openca -m 755 /var/tmp/rpmbuild/
openca-base-1.1.0/opt/openca
/usr/bin/install: invalid user `madwolf'
make[8]: *** [__install_dir] Error 1
+ /usr/bin/install -c -d -o madwolf -g openca -m 755 /var/tmp/rpmbuild/
openca-base-1.1.0/opt/openca/bin
/usr/bin/install: invalid user `madwolf'
make[7]: *** [__install_dir] Error 1
make[6]: *** [/var/tmp/rpmbuild/openca-base-1.1.0/opt/openca/bin]
Error 2
make[5]: *** [scripts] Error 2
make[4]: *** [install-common] Error 2
make[3]: *** [src] Error 2
make[2]: *** [install-common] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.79007 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.79007 (%install)
mv: cannot stat `/usr/src/redhat/RPMS/*/openca-base*.rpm': No such
file or directory
mv: cannot stat `/root/tmp/rpm/RPMS/*/openca-base*.rpm': No such file
or directory
mv: cannot stat `/root/rpmbuild/RPMS/*/openca-base*.rpm': No such file
or directory
mv: cannot stat `/usr/src/redhat/SRPMS/openca-base*.src.rpm': No such
file or directory
mv: cannot stat `/root/tmp/rpm/SRPMS/openca-base*.src.rpm': No such
file or directory
mv: cannot stat `/root/rpmbuild/SRPMS/openca-base*.src.rpm': No such
file or directory
Regards,
Graham
--
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users
--
Best Regards,
Massimiliano Pala
--o------------------------------------------------------------------------
Massimiliano Pala [OpenCA Project Manager] [email protected]
[email protected]
Dartmouth Computer Science Dept Home Phone: +1 (603) 369-9332
PKI/Trust Laboratory Work Phone: +1 (603) 646-8734
--o------------------------------------------------------------------------
People who think they know everything are a great annoyance to those of us
who do.
-- Isaac Asimov
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Openca-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openca-users
