[kbuild-devel] make install with nfs root_squash

2007-04-18 Thread Frank Mori Hess
Hi,

I'm encountering some annoyances building (out-of-tree) modules on an NFS 
filesystem.  The NFS filesystem is exported with the default root_squash 
option.  When I build as a normal user, then su to root to do the final make 
modules_install, it fails with permission denied.  For example, 
modules_install tries to delete all the files in the .tmp_versions 
subdirectory, or tries to write to Module.symvers, but the nfs root_squash 
prevents root from having any special write permissions.  I've verified this 
problem with 2.6.18 and 2.6.20 kernels.  It didn't happen with the old kernel 
I was using (2.6.8).

Is there any reason that a make modules_install has to modify files in the 
source tree?

-- 
Frank


pgpNRZi4CU9QN.pgp
Description: PGP signature
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


[kbuild-devel] [PATCH] modpost bug with multiple SUBDIRS and kernel 2.6.17.6

2006-07-22 Thread Frank Hess

Hi kbuild maintainers,

Attached is a one-line patch to scripts/Makefile.modpost which fixes a 
compilation problem I had building some out-of-tree modules (linux-gpib) 
against a 2.6.17.6 kernel.  The problem was KBUILD_EXTMOD was set to 
SUBDIRS, which contained paths to multiple directories.  This made 
modulesymfile get set to a bad value.  I used $(firstword ...) to set 
modulesymfile using only the first directory in KBUILD_EXTMOD, like the 
way MODVERDIR is set in the top-level Makefile.

-- 
Frank
--- Makefile.modpost.original	2006-07-15 15:00:43.0 -0400
+++ Makefile.modpost	2006-07-19 13:07:45.648572000 -0400
@@ -40,7 +40,7 @@
 include scripts/Makefile.lib
 
 kernelsymfile := $(objtree)/Module.symvers
-modulesymfile := $(KBUILD_EXTMOD)/Modules.symvers
+modulesymfile := $(firstword $(KBUILD_EXTMOD))/Modules.symvers
 
 # Step 1), find all modules listed in $(MODVERDIR)/
 __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod)))


pgpS76wJYgxlG.pgp
Description: PGP signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


[kbuild-devel] Re: CML2 design philosophy heads-up

2001-05-18 Thread frank

On Fri, 18 May 2001, Eric S. Raymond wrote:

 Tom Rini [EMAIL PROTECTED]:
SCSI emulation over IDE, CONFIG_BLK_DEV_IDESCSI.  You have the SCSI mid
layer code but no SCSI hardware drivers.  It is a realistic case for an
embedded CD-RW appliance.
   
   Or alternatively, you want to enable SCSI code, with no hardware driver,
   because you are going to build pcmcia, which builds the scsi drivers only
   if CONFIG_SCSI is defined, and the user might put in an Adaptec 1460B or
   1480 scsi card into your pcmcia slot.
  
  Both of these 'problems' assume that you can have IDE or PCMCIA on these
  particular boxes.  Does anyone know if that's actually true?
 
 The answer is: no, you can't.  
 
 I found a feature list for the MVME147 on the web at
 http://www.mcg.mot.com/cfm/templates/article.cfm?PageID=1095.  It
 confirmed what thought I remembered from the Motorola site; no PCMCIA,
 no IDE/ATAPI.  As a matter of fact neither of these technologies
 existed yet when the board was being designed in the mid-1980s.

But it is a VME board. That means you can put a SCSI controller on the VME
bus (and these do exist, I have one right here). 

Frank

 
 (The article I found is kind of interesting.  It's a dissection of the
 MVME147's design and history...narrated in first person.)
 
 In any case, if this *had* been a problem, the right fix IMO would have
 been to split the SCSI symbol into SCSI and SCSI_DRIVERS and have
 constraints that would make SCSI and the presence of any SCSI card 
 imply SCSI_DRIVERS.
 -- 
   a href=http://www.tuxedo.org/~esr/;Eric S. Raymond/a
 
 The prestige of government has undoubtedly been lowered considerably
 by the Prohibition law. For nothing is more destructive of respect for
 the government and the law of the land than passing laws which cannot
 be enforced. It is an open secret that the dangerous increase of crime
 in this country is closely connected with this.
   -- Albert Einstein, My First Impression of the U.S.A., 1921
 -
 To unsubscribe from this list: send the line unsubscribe linux-kernel in
 the body of a message to [EMAIL PROTECTED]
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/
 

HI! I'm a .signature virus! cp me into your .signature file to help me spread!


___
kbuild-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/kbuild-devel