Jump to content

wrc1944

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by wrc1944

  1. As I understood it, after you had created the same tree in ~/home, so you could rebuild as user, the rpm --rebuild command wasn't suppose to write to the /usr/src/RPM directories, but use the new ones in home/wrc1944/RPM. But apparently it still tries to. I have checked and rechecked that I have folled the instructions correctly, and I have. I've never gotten an srpm to rebuild as a user, in the ~/home directory tree created for that specific purpose. I've posted at pclinuxonline, and CyberCFO tried to help, but we never figured it out, and he does it all the time. He sent me his ~/home .rpmrc file which he uses with Mandrake to build rpms as user, and I made my .rpmmacros file as instructed with my user name. Same error- it still tries to write to /usr/src/RPM/SOURCES- that's why I figure Mandrake must be defaulting somewhere in a config file/PATH, or somewhere??? This is on generic installs of both 9.0 and 9.1. wrc1944
  2. /usr/lib/rpm/rpmrc I edited the athlon line as root (added my extra flags for xp), and saved. Then after a rebuild you find your new rpms in /usr/src/RPM/RPMS/athlon. People say you should not do all this as root, and I've followed all the instructions to create the proper trees in ~/home, added the additional .rpmrc and .rpmmacros files to home exactly as instructed in the Mandrake rpm how-to, but it never works. I always get an immediate error "can't build to /usr/src/source," or something to that effect- can't recall right now. I've always resorted to doing it as root, and haven't had any problems, but if someone knows why I can't get this to work as user in home, please enlighten me! I'm sure it's some stupid error I'm making, like a path or something. wrc1944
  3. I've done it using the flags and procedure described in my recent kernel-multimedia athlon-xp post in this forum. I haven't installed it yet, but the building went perfect (no errors), and I got all the XFree86 rpms. When I find a little time, I'll install and post back- or if you do it first, please let us know how it went. I did do this successfully with 4.2, so I'm not expecting any problems. Just be sure when you install to go into init 3 first, and install from the command line as root- then you can reboot to x. If you have errors, make sure you have all the development packages needed installed. wrc1944
  4. Since it worked out OK on Mandrake 9.1 (no issues in two days so far), I thought I'd post this in case anyone was interested. I rebuilt the Mandrake kernel-multimedia-2.4.21.0.16mdk-1-1mdk.src.rpm for athlon-xp, using these flags (I edited the rpmrc file), with no errors: optflags: athlon -O3 -march=athlon-xp -mcpu=athlon-xp -mmmx -msse -m3dnow -funroll-loops -fomit-frame-pointer -pipe -ffast-math -fforce-addr -fno-strength-reduce According to man gcc, the -mcpu=athlon-xp flag is not redundant, and without specifially using it, the compiler will not generate code which will not run on the i386, even with the -march=athlon-xp flag included. Apparently, this means that with only the -march=athlon-xp flag specified, gcc omits some features specific to the athlon-xp cpu. I assume this would hold true for any specific cpu. The command (on one line, from the directory the srpm is in) is: rpm --rebuild --target athlon kernel-multimedia-2.4.21.0.16mdk-1-1mdk.src.rpm You get the kernel, kernel-source, and the smp kernel (if you need it). I haven't examined the spec file yet, but I understand this kernel has the preemptive and low-latency patches, and the generated .config file in the source directory in /usr/src confirms this (CONFIG_PREEMPT=y). It can be found at: http://distro.ibiblio.org/pub/Linux/distri.../contrib/SRPMS/ Robert Crawford
×
×
  • Create New...