mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Specific version dependency in opkg/ipkg Depends field
@ 2016-08-02 15:22 Andreas Glatz
  2016-08-03  7:57 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Glatz @ 2016-08-02 15:22 UTC (permalink / raw)
  To: ptxdist

Hi

I'm using ptxdist-2012.03.0 and I'm adding two new components to the
standard installation. Everything seems to work fine and I get ipkgs
for both components, which I can install on the target.

Now I'd like to create a dependency of component A on B so that A can
only be installed if B is present and has a certain version, let's say
B has to be at or newer than version 0.6. Opkg/Ipkg seem to support
this with by e.g. adding B(>=0.6) to Depends field in the control file
of ipkg A.

Ptxdist automatically appends dependencies, however I haven't found a
way to add a version dependency to a package (without hacking the
package after it was created).

Any help appreciated.

Cheers,

Andreas

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Specific version dependency in opkg/ipkg Depends field
  2016-08-02 15:22 [ptxdist] Specific version dependency in opkg/ipkg Depends field Andreas Glatz
@ 2016-08-03  7:57 ` Michael Olbrich
  2016-08-03  8:42   ` Andreas Glatz
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2016-08-03  7:57 UTC (permalink / raw)
  To: ptxdist

Hi,

On Tue, Aug 02, 2016 at 04:22:24PM +0100, Andreas Glatz wrote:
> I'm using ptxdist-2012.03.0 and I'm adding two new components to the
> standard installation. Everything seems to work fine and I get ipkgs
> for both components, which I can install on the target.
> 
> Now I'd like to create a dependency of component A on B so that A can
> only be installed if B is present and has a certain version, let's say
> B has to be at or newer than version 0.6. Opkg/Ipkg seem to support
> this with by e.g. adding B(>=0.6) to Depends field in the control file
> of ipkg A.
> 
> Ptxdist automatically appends dependencies, however I haven't found a
> way to add a version dependency to a package (without hacking the
> package after it was created).
> 
> Any help appreciated.

There is no easy way to do this. In theory you could overwrite
ptxd_make_xpkg_prepare() with a custom version and do whatever you want
there, but accessing the necessary information there will not be trivial.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Specific version dependency in opkg/ipkg Depends field
  2016-08-03  7:57 ` Michael Olbrich
@ 2016-08-03  8:42   ` Andreas Glatz
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Glatz @ 2016-08-03  8:42 UTC (permalink / raw)
  To: ptxdist

Hi Michael,

>>
>> Ptxdist automatically appends dependencies, however I haven't found a
>> way to add a version dependency to a package (without hacking the
>> package after it was created).
>>
>> Any help appreciated.
>
> There is no easy way to do this. In theory you could overwrite
> ptxd_make_xpkg_prepare() with a custom version and do whatever you want
> there, but accessing the necessary information there will not be trivial.
>
> Michael
>

Ok I see. Then I'll probably change the control file after the package
is generated outside of ptxdist...

Cheers,

A.

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-03  8:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 15:22 [ptxdist] Specific version dependency in opkg/ipkg Depends field Andreas Glatz
2016-08-03  7:57 ` Michael Olbrich
2016-08-03  8:42   ` Andreas Glatz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox