Bug 32220 - mkxf86config.sh script and Gentoo config.in
Bug#: 32220 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: desktop-misc@gentoo.org Reported By: liamh@thevenue.org
Component: Ebuilds
URL: 
Summary: mkxf86config.sh script and Gentoo config.in
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2003-10-28 13:54 0000
Description:   Opened: 2003-10-28 13:54 0000
Created from the knoppix package, with a patch to match the Gentoo default
files directories. Seems to be running automatically from the hwsetup program
when running autoconfig -> I guess there's a hook in there I didn't know about.
Awfully convenient though!

------- Comment #1 From Liam Helmer 2003-10-28 13:56:16 0000 -------
Created an attachment (id=19904) [details]
ebuild, manifest, digest and patch

unpack archive in /usr/local/portage, installs under sys-apps/mkxf86config.

------- Comment #2 From Seemant Kulleen (RETIRED) 2003-10-28 17:25:11 0000 -------
please do not attach tarballs.  Better to just attach the ebuild and patch
-- NEVER attach digest and Manifest.

see: http://dev.gentoo.org/~liquidx

------- Comment #3 From Liam Helmer 2003-10-28 23:12:59 0000 -------
Created an attachment (id=19918) [details]
mkxf86config-0.7-gentoo.patch for the files directory

Changes the "Files" section in the XF86Config.in files to the gentoo defaults

------- Comment #4 From Liam Helmer 2003-10-28 23:14:53 0000 -------
Created an attachment (id=19919) [details]
mkxf86config-0.7.ebuild

Now depends on sys-apps/ddcxinfo-knoppix (which I submitted separately)

------- Comment #5 From Donnie Berkholz 2003-11-10 02:54:14 0000 -------
A few ideas:
1) Move all the stuff in DEPEND to RDEPEND, and keep glibc there.
2) Do you need the dodirs? I don't even see the point of the /bin one.
3) I'd be very surprised if you tested it on all those architectures. Only
keyword it for archs you've tested, and do it ~arch, not arch.
4) You're missing all the header info at the top. You can get it from /usr/portage/skel.ebuild.
5) You need IUSE="" even if it's empty.
6) Try defining MY_P="xf86config-knoppix-${PV}" and using that in S and SRC_URI.

------- Comment #6 From Brandon Hale (RETIRED) 2003-12-10 21:25:48 0000 -------
Please make the changes suggested by Donnie.
Also, neither of your patches applies for me per your epatch.
Please test this and submit a working patch.

Thanks ;)
--tseng

------- Comment #7 From Liam Helmer 2003-12-12 11:44:20 0000 -------
Created an attachment (id=22092) [details]
mkxf86config-0.7.ebuild

OK, sorry about the delay all -> life caught up with me and made me move, etc.

So, here's the new ebuild -> cleaned up based on your suggestions, dumped a
couple of things, and made extensive use of the MY_P variables.

Tell me if there's anything more to do on it, I actually have a little time
now.

As to the patches... ?? I redownloaded the file to make sure it hadn't changed,
but the patches still apply fine for me. Make sure that the file is named
correctly. Note: I changed the name of the file in the files directory in this
version of the ebuild, simply because I figured that the XF86Config.in included
with the distribution is unlikely to change frequently in subsequent versions.
Make sure the file is installed at
sys-apps/mkxf86config/files/mkxf86config-gentoo.patch

------- Comment #8 From Liam Helmer 2003-12-12 11:47:56 0000 -------
Created an attachment (id=22093) [details]
mkxf86config-0.7.ebuild

Gah! Missed a line in the header on that last one.

------- Comment #9 From Liam Helmer 2003-12-12 11:50:09 0000 -------
Created an attachment (id=22094) [details]
mkxf86config-gentoo.patch -> for files directory

Re-uploaded my working copy.

------- Comment #10 From Ian Leitch (RETIRED) 2004-01-03 09:39:41 0000 -------
Bumped the ebuild and patch to 0.8-2. In CVS, thanks.