public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: security updates only? (security-1.0.ebuild)
@ 2003-08-16  9:46 Karsten Schulz
  2003-08-16 10:20 ` Paul de Vrieze
  0 siblings, 1 reply; 12+ messages in thread
From: Karsten Schulz @ 2003-08-16  9:46 UTC (permalink / raw
  To: gentoo-dev

Hi all, 

At bugs.gentoo.org I attached an tarball with my version of an ebuild, which 
automatically will install *only* those security updates, which are relevant 
to your system (see <http://bugs.gentoo.org/show_bug.cgi?id=5835>).

The trick is the following code in the ebuild:
DEPEND="
$(has_version 'nfs-utils' && echo '>=nfs-utils-1.0.4')
$(has_version 'gnupg' && echo '>=gnupg-1.2.2-r1')
"
this will create dependencies on the fly: Only if you have nfs-utils 
installed, the new version with the bugfix will appear as a dependency. Same 
with gnupg. 
There is no need for new 'emerge' options or KEYWORDS.

For his own system, the admin has to type in only:
emerge rsync
emerge security

or, if he is interested in this stuff:
emerge rsync
emerge -p security
and followed by 'emerge security', if necessary.

The only drawback at the moment is, that there is no automated way to generate 
the value of the DEPEND variable by the GLSAs. Maybe here can Marius' XML 
format help. With GLSAs in such a format, a simple script can generate the 
security-ebuilds, the postings at forums.gentoo.org and the mails in 
gentoo-announce! I would love to hear from some core developers and others 
what you think (is it critical to use an ebuild, which does not compile and 
install its own sourcecode, because it has none?).

I know, that this can (and must) be improved in the future (more information, 
references to advisories, signing the ebuild, a.s.o.), but at the moment, 
this way seems to me to be an easy one, isn't it?

Comments?

Karsten


--
gentoo-dev@gentoo.org mailing list


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

end of thread, other threads:[~2003-08-18 19:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-16  9:46 [gentoo-dev] RFC: security updates only? (security-1.0.ebuild) Karsten Schulz
2003-08-16 10:20 ` Paul de Vrieze
2003-08-16 11:03   ` Karsten Schulz
2003-08-16 11:19     ` Karsten Schulz
2003-08-16 14:31     ` Paul de Vrieze
2003-08-16 15:56       ` Klavs Klavsen
2003-08-16 16:18         ` Karsten Schulz
2003-08-16 15:59       ` Karsten Schulz
2003-08-16 17:11         ` Paul de Vrieze
2003-08-16 19:38           ` Marius Mauch
2003-08-18 10:29             ` Karsten Schulz
2003-08-18 19:17               ` Marius Mauch

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