[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-users
Subject:    Question about updating binary stacks
From:       Olivier Fournier <foo.foo.ch () gmail ! com>
Date:       2010-04-20 14:40:51
Message-ID: 4BCDBCF3.10607 () gmail ! com
[Download RAW message or body]


Hi everyone,

I'm trying to reproduce the setup presented in the following article:

http://www.lotterer.net/blog/en/83-openpkg-binary-software-stacks-made-easy

Build host:
============================================
$ cd /openpkg/RPM/PKG
$ openpkg index -p `openpkg rpm --eval '%{l_platform}'` -o 00INDEX.rdf -i .

=> see the 00INDEX.rdf file attached
============================================

Client host:
============================================
# Install a package
$ openpkg rpm -qa
  ...
  perl-5.10.1-20090910
  openssl-1.0.0-20100406
  openpkg-4.0.5-20100402

$ openpkg build -r http://build-host/openpkg-repository/ \
    -p `openpkg rpm --eval '%{l_platform}'` wget | sh

Preparing...                ########################################### 
[100%]
   1:wget                   ########################################### 
[100%]

$ openpkg rpm -qa
  ...
  perl-5.10.1-20090910
  openssl-1.0.0-20100406
  openpkg-4.0.5-20100402
  wget-1.12-20091019

=> works fine, wget was installed using the binary RPM from the repository



# Update the whole instance
$ openpkg build -r http://build-host/openpkg-repository/ \
    -p `openpkg rpm --eval '%{l_platform}'` -Ua | sh

# operating with OpenPKG instance /openpkg
# operating with OpenPKG RPM /openpkg/bin/openpkg rpm
# fetching XML/RDF index from URL 
http://build-host/openpkg-repository/00INDEX.rdf
# using internal XML/RDF parser
openpkg:build:FATAL: cannot find source for '/openpkg'

=> why this strange error? Am I missing something in the repository?



# Update a package
$ openpkg build -r http://build-host/openpkg-repository/ \
    -p `openpkg rpm --eval '%{l_platform}'` -U perl | sh

=> although all binary files the needed to install perl-5.12.0 are 
available in the repository, the system tries to build perl-5.12.0 
locally including all its dependencies. Why this behavior?

$ openpkg build -r http://build-host/openpkg-repository/ \
    -p `openpkg rpm --eval '%{l_platform}'` perl | sh

Preparing...                ########################################### 
[100%]
   1:perl                   ########################################### 
[100%]
============================================

To summarize: I don't really understand the behavior of the "-U" flag of 
the openpkg build command. Could you please help me there?

Thank you very much in advance and Best Regards,
Olivier





["00INDEX.rdf" (application/rdf+xml)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic