Gentoo Archives: gentoo-dev

From: Luke-Jr <luke-jr@g.o>
To: vapier@g.o, gentoo-dev@g.o
Subject: Re: [gentoo-dev] making metadata.xml pay off and removing pkg_postinst crud
Date: Fri, 15 Aug 2003 14:30:42
Message-Id: 200308151430.40174.luke-jr@gentoo.org
In Reply to: [gentoo-dev] making metadata.xml pay off and removing pkg_postinst crud by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 1. The XML tag shouldn't really be called postinst. Something like <howto> or
5 <instructions> looks better for this purpose.
6 2. Some packages may have different instructions based on the version
7 installed. metadata.xml is the same for all versions of a package.
8
9 Alternatively, why not add a pkg_instructions function and have 'emerge help
10 ...' or 'ebuild ... instructions' run that? It could be run after
11 pkg_postinst of a normal emerge, also.
12
13 On Friday 15 August 2003 02:00 am, Mike Frysinger wrote:
14 > right now we're doing all our informative output inside pkg_postinst simply
15 > because it's the last function run by emerge when emerging a new pkg ...
16 > this is really not the reason pkg_postinst was created (displaying
17 > informative output to the user), but i havent said anything before because
18 > we never had a solution to 'fix' the situation ...
19 >
20 > but now ive got it ! lets finally use metadata :)
21 > i propose we add a section, maybe call it <howto> or <postinstconfig> or
22 > something similar, or maybe have a few considering there are a few steps to
23 > take when properly using some packages ... plus we wouldnt have to worry
24 > about logging said informative output with some kludge that portage
25 > implements because the user missed the message as it flew by his screen in
26 > a multi-merge process ...
27 > we extend the use of '-h' in emerge ...
28 >
29 > for example, say i want to know 'howto' setup mysql ...
30 > root@vapier 0 root # emerge --help dev-db/mysql
31 > You might want to run:
32 > ebuild /var/db/pkg/dev-db/mysql-4.0.14/mysql-4.0.14.ebuild config
33 > if this is a new install.
34 > it will auto generate the basic mysql databases for you.
35 >
36 > or, i just installed these sexy new X cursors ...
37 > root@vapier 0 root # emerge --help x11-themes/silver-xcursors
38 > To use this set of cursors, edit or create the file ~/.Xdefaults
39 > and add the following line:
40 > Xcursor.theme: Silver
41 >
42 > Also, you can change the size by adding a line like:
43 > Xcursor.size: 48
44 >
45 > To globally use this set of mouse cursors edit the file:
46 > /usr/share/cursors/xfree/default/index.theme
47 > and change the line:
48 > Inherits=[current setting]
49 > to
50 > Inherits=Silver
51 > Note this will be overruled by a user's ~/.Xdefaults file.
52 >
53 > If you experience flickering, try setting the following line in
54 > the Device section of your XF86Config:
55 > Option "HWCursor" "false"
56 >
57 > if people like the idea, ill put together a bug and/or some portage patches
58 > -mike
59 >
60 > --
61 > gentoo-dev@g.o mailing list
62
63 - --
64 Luke-Jr
65 Developer, Gentoo Linux
66 http://www.gentoo.org/
67 -----BEGIN PGP SIGNATURE-----
68 Version: GnuPG v1.2.2 (GNU/Linux)
69
70 iD8DBQE/PO6LZl/BHdU+lYMRAkj1AJ9O9wFX0HVIo1C7D0EKkLOkq4x3KwCffZBW
71 0ZCoa3O7CsXvgRrw5HcKi0A=
72 =V1HQ
73 -----END PGP SIGNATURE-----
74
75
76 --
77 gentoo-dev@g.o mailing list