Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th June 2007, 08:25 AM
grumpy2 Offline
Registered User
 
Join Date: Nov 2004
Posts: 6
Steps for compiling a custom kernel not working

Hello everybody,

I am following the steps for compiling a custom kernel from here: http://fedoraproject.org/wiki/Docs/CustomKernel

I issue the following commands as regular user:

cd; rpmdev-setuptree
(this creates a rpmbuild directory in my home directory)

yumdownloader --source kernel
The result is:

Loading "installonlyn" plugin
Enabling fedora-source repository
Traceback (most recent call last):
File "/usr/bin/yumdownloader", line 190, in <module>
util = YumDownloader()
File "/usr/bin/yumdownloader", line 41, in __init__
self.main()
File "/usr/bin/yumdownloader", line 67, in main
self.setupSourceRepos()
File "/usr/bin/yumdownloader", line 80, in setupSourceRepos
self._getRepos(thisrepo=r.id,doSetup=True)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 341, in _getRepos
repo.setup(self.conf.cache, self.mediagrabber)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 634, in setup
self.dirSetup()
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 439, in dirSetup
"Cannot access repository dir %s" % dir
yum.Errors.RepoError: Cannot access repository dir /var/tmp/yum-<username>-bT6Ghr/fedora-source

-- where <username> is my user name

What could I do to fix this? The directory /var/tmp/yum-<username>-bT6Ghr/ exists, is accesible - but yumdownloader does not want to create the directory fedora-source and its sub-directories by itself. If I create those directories manually, yumdownloader finally complains about a missing xml file.

Thanks,
Ovidiu
Reply With Quote
  #2  
Old 26th June 2007, 08:33 AM
grumpy2 Offline
Registered User
 
Join Date: Nov 2004
Posts: 6
I forgot to say that I am using Fedora 7 with all updates. Please let me know if you need additional information.
Reply With Quote
  #3  
Old 26th June 2007, 08:44 AM
nick.stumpos's Avatar
nick.stumpos Offline
Registered User
 
Join Date: Feb 2005
Location: Lansing, Mi
Age: 28
Posts: 2,222
are you sure your enabling the right repo, im not on fc now so i cant check what it should be, but it is odd that it should error on just d/ling the source unless you are trying to grab a file from a place it is not
__________________
As always
Love, Life, Loyalty, Wisdom, Knowledge, And Understanding
FC6: Common Questions answered
Reply With Quote
  #4  
Old 26th June 2007, 09:27 AM
grumpy2 Offline
Registered User
 
Join Date: Nov 2004
Posts: 6
Hi Nickisgod,

Thanks for the response. Here's what I have - I think this should work by default, do I need to enable anything?

[user@machine ~]$ ls /etc/yum.repos.d/
fedora-development.repo fedora-updates.repo
fedora.repo fedora-updates-testing.repo
[user@machine ~]$ more /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-source]
name=Fedora $releasever - Updates Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

---

Regards,
Ovidiu
Reply With Quote
Reply

Tags
compiling, custom, kernel, steps, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom nvidia module for a Custom kernel jbkt23 Using Fedora 0 2nd October 2007 04:01 AM
Kernel Compilation : Please correct/add additional necessary steps fed.linuxgossip Guides & Solutions (No Questions) 0 17th November 2006 12:28 PM
How to get ATI + Dual Head + Fedora Core 5 working in 7 easy steps... eldnar Hardware & Laptops 0 4th August 2006 12:26 AM
Errors compiling custom kernel tron_thomas Using Fedora 10 29th October 2004 02:48 PM
compiling custom kernel boombastic Using Fedora 5 25th July 2004 09:17 AM


Current GMT-time: 17:14 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat