Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: ohmbar on January 31, 2005, 10:55:02 PM
-
Hello,
I follow instructions of the contribs.org's page "Beginners Guide to Rolling Your Own RPMs"
Step 5
bash-2.05$ mkdir -p rpms/{SRPMS,BUILD,SPECS,SOURCES,RPMS,lib}
bash-2.05$ mkdir -p rpms/RPMS/{i386,noarch}
bash-2.05$ rpm --initdb --dbpath /rpms/lib
I have an error :
error: cannot open Packages index using db3 - Aucun fichier ou répertoire de ce type (2)
(I have created an UNIX user (rpmmaker) whith adduser command)
Can anyone help me about this error ? (I don't know well the rpm command)
Regards.
Francois
-
Hello.
I've just had the same problem (i'm currently finishing the e-smith-sme6admin rpm), and i solved it this way :
rpm --initdb --dbpath ~/rpms/lib
I think there is a little error in the guide. In my opinion, it's more normal to build the rpm db in your home dir.
HTH
-
Thanks a lot.
bash-2.05$ echo "%_topdir $HOME/rpms" > /.rpmmacros
I have reaplaced /.rpmmacros by ./rpmmacros
Is it the right thing to do ?
Regards
Francois
-
yep, surely.
In fact, in this doc :
http://no.longer.valid/phpwiki/index.php/SME%20Server%20interface%20RPM
You have the right version of the commands.
I'm going to try to modify the doc, if my rights on the wiki permits it.
-
Thanks a lot.
bash-2.05$ echo "%_topdir $HOME/rpms" > /.rpmmacros
I have reaplaced /.rpmmacros by ./rpmmacros
Is it the right thing to do ?
No. It needs to be ~/.rpmmacros, as it is in the original documentation.
-
Yes, you're right. I've been too fast :(
In this doc, somebody knows what is the createlinks script ? Apparently, it's not a rpm feature, i don't find doc on it. Is it a SME special file ? How does it work ?