FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-01-2011, 07:04 PM
Maxim Koltsov
 
Default Virtual for tftp server

Hi,
Assuming we have a package, that want to have any tftp server on
system, no matter which one exactly, what must we set in DEPEND? I
think creating virtual for tftp server would be nice.
Maxim
 
Old 05-01-2011, 07:12 PM
"Aaron W. Swenson"
 
Default Virtual for tftp server

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/01/2011 03:04 PM, Maxim Koltsov wrote:
> Hi,
> Assuming we have a package, that want to have any tftp server on
> system, no matter which one exactly, what must we set in DEPEND? I
> think creating virtual for tftp server would be nice.
> Maxim
>
Sure, if there are multiple packages that just want a TFTP server,
rather than a particular TFTP server.

- - Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk29sJUACgkQCOhwUhu5AEkCDgEAtcUs6VZfFZ hslC38ZvZvHQrZ
H2mbvQwsUU4U8Lb9exAA/iJ8L6r18c+bu8iSpw6n8gNk8MjOaaqVyYbhuFsrfPwJ
=rfTh
-----END PGP SIGNATURE-----
 
Old 05-01-2011, 08:34 PM
Maxim Koltsov
 
Default Virtual for tftp server

I'm going to add such a package to the tree tomorrow,
http://bugs.gentoo.org/show_bug.cgi?id=365605. Can you write ebuild
for this virtual, because i'm not familliar with new-style virtuals
yet?
 
Old 05-01-2011, 08:41 PM
Ciaran McCreesh
 
Default Virtual for tftp server

On Sun, 1 May 2011 23:04:54 +0400
Maxim Koltsov <maksbotan@gentoo.org> wrote:
> Assuming we have a package, that want to have any tftp server on
> system, no matter which one exactly, what must we set in DEPEND? I
> think creating virtual for tftp server would be nice.

If it doesn't care about what the tftp server is, presumably that means
that the package itself doesn't actually use the tftp server (and if
it did call the tftp server, it would need to know the syntax for each
individual package, so it wouldn't be a virtual). So why would it be a
DEPEND?

Since suggested dependencies don't exist yet, what's wrong with just
elogging a message suggesting the user install a tftp server of their
choice?

--
Ciaran McCreesh
 
Old 05-01-2011, 08:42 PM
Mike Gilbert
 
Default Virtual for tftp server

On Sun, May 1, 2011 at 4:34 PM, Maxim Koltsov <maksbotan@gentoo.org> wrote:
> I'm going to add such a package to the tree tomorrow,
> http://bugs.gentoo.org/show_bug.cgi?id=365605. Can you write ebuild
> for this virtual, because i'm not familliar with new-style virtuals
> yet?
>
>

Just create an package "virtual/tftp-server" that has RDEPEND="|| (
net-ftp/A net-ftp/B ... )" where A and B are the various tftp server
implementations.

http://devmanual.gentoo.org/general-concepts/virtuals/index.html
 

Thread Tools




All times are GMT. The time now is 09:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org