[ATrpms-devel] nvidia specfile improvements (was: CGAL FC6)
Paulo Cavalcanti
promac at gmail.com
Wed Nov 8 00:50:44 CET 2006
Hi, Axel
I created a new nvidia-graphics-helpers. It is at:
http://people.atrpms.net/~pcavalcanti/nvidia-config-fix/
The instructions for testing it are also there.
I would appreciate if someone else could test it. There is an xorg.conf.orig
the way it was created for me when I installed FC6 (almost empty). Please
use it.
Axel, note that your original nvidia-config-x.py.in in the source rpm had
#! /usr/bin/python2
I think it would be transformed in
#! /usr/bin/python2.4
but since it did not worked for me (maybe a missing macro?) I left
python2.4 to be able to test.
I put two more tests in nvidia-config-x.py. What I changed
is preceded by a comment #roma
These comments can be removed in the final version.
Also, the bash script can be rewritten in python and inserted as a routine
in the original file. I used bash because it was faster for me. Otherwise, I
would have had to look for the equivalent python commands. But certainly it
is possible.
I also put in
http://people.atrpms.net/~pcavalcanti/srpms/
a lot of .src.rpm I created along the time. Some of them have only
historical reasons, such as xv, xpaint and ivtools. But they work. Maybe
someone can find a use for some of them.
/Paulo Roma.
On 11/7/06, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
>
> On Sat, Nov 04, 2006 at 08:07:54PM -0300, Paulo Cavalcanti wrote:
> > nvidia binary (nvidia-xconfig) also segfaults without the Section
> "Module".
> >
> > The problem with the nvidia-config-x.py python script is that
> > it does not read xorg.conf without a Section "Module".
> > It returns an object (xconfig.files) of type None.
> > Worse, ixf86config.readConfigFile, which actually reads xorg.conf, is a
> C
> > program.
> >
> > Therefore the only simple fix without patching those guys is the one
> > I told you before. The bash script can be called into the python script
> if
> > you want.
> > It works just fine.
> >
> >
> -------------------------------------------------------------------------------------------------------------------------
> >
> > # Read config file
> > os.system('nvidia-graphics-append /etc/X11/xorg.conf
> /etc/X11/xorg.conf')
> > (xconfig, xconfigpath) = xf86config.readConfigFile()
> >
> >
> ------------------------------------------------------------------------------------------------------------------------
>
> OK, could you weave that into the nvidia-graphics-helpers package?
> That way the miriad of nvidia-graphicsXXXX packages don't need to be
> touched :)
> Thanks!
>
> > Changing the subject again, what is your opinion about dkms approach.
> > I read in the Freshrpms list that Mathias and Dag seems to approve it.
> >
> > Despite the fact I do not like anything from Dell, it seems to me that
> > forcing to have a compiler in the computer is not the best solution.
>
> Indeed. The dkms author once discussed this on this list and we
> considered merging the kmdl and dkms approaches. We found out that
> they already did the same thing only that kmdl specialized in producing
> packages while dkms specialized in custom kernel builds.
>
> At that time dkms wouldn't offer anything more than kmdls can, but
> time has passed since and both kmdl and dkms evolved further. Do you
> see any benefits of today's dkms over today's kmdls?
>
> > /Paulo Roma.
> >
> >
> > On 11/3/06, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
> > >
> > >On Fri, Nov 03, 2006 at 12:06:12AM -0300, Paulo Cavalcanti wrote:
> > >> By the way, have you tried the easy fix of nvidia spec I suggested,
> or
> > >you
> > >> decided to rewrite all the python stuff?
> > >
> > >No, I didn't find the time yet, I'd prefer to have a single script,
> > >though. One would also have to check wheat nvidia's binary is capable
> > >of fixings, too, maybe 90% of the python script are redundant.
> > >
> > >BTW Paulo, maybe some of the stuff you upload are interesting for more
> > >people to try out/test/experiment. Every account has
> > >http://people.atrpms.net/~something/ which maps to the folder
> > >public_html in your home. Feel free to even create a personal repo
> > >somewhere under there. Contact me in PM if it doesn't work out of the
> > >box.
>
> > _______________________________________________
> > atrpms-devel mailing list
> > atrpms-devel at atrpms.net
> > http://lists.atrpms.net/mailman/listinfo/atrpms-devel
>
> --
> Axel.Thimm at ATrpms.net
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20061107/7ba58ad5/attachment.html
More information about the atrpms-devel
mailing list