Koozali.org: home of the SME Server

problem with "Beginners Guide to Rolling Your Own RPMs&

ohmbar

problem with "Beginners Guide to Rolling Your Own RPMs&
« 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

Landry

problem with "Beginners Guide to Rolling Your Own RPMs&
« Reply #1 on: February 01, 2005, 03:05:19 PM »
Hello.
I've just had the same problem (i'm currently finishing the e-smith-sme6admin rpm), and i solved it this way :

Code: [Select]
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

ohmbar

rpmmacros
« Reply #2 on: February 01, 2005, 03:46:55 PM »
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

Landry

problem with "Beginners Guide to Rolling Your Own RPMs&
« Reply #3 on: February 01, 2005, 05:18:55 PM »
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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: rpmmacros
« Reply #4 on: February 01, 2005, 10:16:44 PM »
Quote from: "ohmbar"
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.

Landry

problem with "Beginners Guide to Rolling Your Own RPMs&
« Reply #5 on: February 01, 2005, 11:53:39 PM »
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 ?