First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 39943
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Scott Taylor (RETIRED) <swtaylor@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Andrew <ehud42@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
thinkpad-5.0.ebuild Modified ebuild for thinkpad 5.0 text/plain Andrew 2004-02-07 13:55 0000 2.05 KB Details
thinkpad-5.0-r1.ebuild thinkpad-5.0-r1.ebuild text/plain steveb 2004-04-10 20:13 0000 2.76 KB Details
thinkpad-5.0-r2.ebuild thinkpad-5.0-r2.ebuild text/plain steveb 2004-04-11 10:57 0000 2.84 KB Details
thinkpad-5.0-r3.ebuild thinkpad-5.0-r3.ebuild text/plain steveb 2004-04-12 12:52 0000 3.90 KB Details
bug-242989.patch bug-242989.patch patch steveb 2004-04-12 12:52 0000 937 bytes Details | Diff
thinkpad-5.5.ebuild thinkpad-5.5.ebuild text/plain steveb 2004-06-16 03:19 0000 3.30 KB Details
tpctl-4.14.ebuild tpctl-4.14.ebuild text/plain Colin Macdonald 2004-09-19 01:22 0000 1.75 KB Details
thinkpad-5.7.ebuild thinkpad-5.7.ebuild text/plain steveb 2004-09-20 02:22 0000 5.95 KB Details
thinkpad-5.8.ebuild thinkpad-5.8.ebuild text/plain steveb 2004-10-24 17:43 0000 5.96 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 39943 depends on: 69669 Show dependency tree
Bug 39943 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-01-31 00:43 0000
On a Thinkpad 600x using gentoo-dev-sources 2.6.1 I tried to install the
thinkpad utilities. All versions fail to compile. Here is the error from the
.50 version. I get the same error for the .48 version

mv: cannot stat `drivers': No such file or directory
mv: cannot stat `include': No such file or directory
>>> Source unpacked.
make -C 2.6/drivers
make[1]: Entering directory
`/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
make -C /lib/modules/2.6.1-gentoo/build 
SUBDIRS=/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.1-gentoo'
Makefile:405: /usr/src/linux-2.6.1-gentoo/arch/x86/Makefile: No such file or
directory
make[2]: *** No rule to make target
`/usr/src/linux-2.6.1-gentoo/arch/x86/Makefile'.  
Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.1-gentoo'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers'
make: *** [all] Error 2

!!! ERROR: sys-apps/thinkpad-5.0 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! Make failed

Also there is a new version of thinkpad avalible.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From TGL 2004-02-04 23:32:24 0000 -------
> Makefile:405: /usr/src/linux-2.6.1-gentoo/arch/x86/Makefile: No such file or directory

The "x86" in path should be "i386". The bug is because portage define ARCH=x86
in its environment. The fix is to "env -u" this variable in the ebuild.

Btw, do you have a 5.0 ebuild or was it just a blind bump? I've tried myself to
make one, but had troubles, so i would be interrested. (i think i gave up after
to much userpriv issues... /me really start hating this external modules that
build inside the linux sources trees.)

------- Comment #2 From Andrew 2004-02-07 13:55:09 0000 -------
Created an attachment (id=25149) [edit]
Modified ebuild for thinkpad 5.0

This is the thinkpad-4.8 ebuild with a line added to change the enviorment
varilbe.  The  method that I used bay not be correct but it compiled with the
following command.

FEATURES="-sandbox" emerge thinkpad-5.0.ebuild

This still does not fix my problem of not being able to put the computer into
standby. I need to do more research.

------- Comment #3 From Tim Freeman 2004-03-04 07:15:46 0000 -------
Thanks for writing the ebuild.

For those unaware, thinkpad problems discussed heavily on the Linux Thinkpad list,
http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/

I was not able to use this ebuild, had to manually compile and install the new versions (also there is a newer version 4.10 of  tpctl) which was very easy btw.  

The ebuild compile complained of a permissions error:



make -C 2.6/drivers
make[1]: Entering directory `/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C /lib/modules/2.6.1-gentoo/build SUBDIRS=/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.1-gentoo'
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CC [M]  /var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers/thinkpad.o
/bin/sh: line 1: .tmp_versions/thinkpad.mod: Permission denied
make[3]: *** [/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers/thinkpad.o] Error 1
make[2]: *** [/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.1-gentoo'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/tmp/portage/thinkpad-5.0/work/thinkpad-5.0/2.6/drivers'
make: *** [all] Error 2

!!! ERROR: sys-apps/thinkpad-5.0 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! Make failed




------- Comment #4 From Jesse Adelman 2004-04-05 13:36:52 0000 -------
Confirm I have this problem, too. This has evidently been an open bug for a
while. Any kind Thinkpad Gentoo Devs gonna help us out, please?

---
laptop thinkpad # uname -a
Linux laptop 2.6.4-gentoo-r1 #1 Wed Mar 17 15:20:29 PST 2004 i686 Pentium III
(Coppermine) GenuineIntel GNU/Linux

laptop thinkpad # emerge -U thinkpad-4.8.ebuild 
>>> --upgradeonly implies --update... adding --update to options.
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-4.8 to /
>>> md5 src_uri ;-) thinkpad_4.8.tar.gz
>>> Unpacking source...
>>> Unpacking thinkpad_4.8.tar.gz to /opt/tmp/portage/thinkpad-4.8/work
mv: cannot stat `drivers': No such file or directory
mv: cannot stat `include': No such file or directory
>>> Source unpacked.
make -C drivers
make[1]: Entering directory
`/opt/tmp/portage/thinkpad-4.8/work/thinkpad-4.8/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
gcc -Wall -Wcast-align -Wstrict-prototypes -O2
-I/lib/modules/2.6.4-gentoo-r1/build/include -I. -I../include -DLINUX -o
thinkpad.o -c thinkpad.c
distcc[5889] ERROR: compile on localhost failed
In file included from
/lib/modules/2.6.4-gentoo-r1/build/include/asm/processor.h:18,
                 from
/lib/modules/2.6.4-gentoo-r1/build/include/asm/thread_info.h:13,
                 from
/lib/modules/2.6.4-gentoo-r1/build/include/linux/thread_info.h:21,
                 from
/lib/modules/2.6.4-gentoo-r1/build/include/linux/spinlock.h:12,
                 from
/lib/modules/2.6.4-gentoo-r1/build/include/linux/capability.h:45,
                 from
/lib/modules/2.6.4-gentoo-r1/build/include/linux/sched.h:7,
                 from
/lib/modules/2.6.4-gentoo-r1/build/include/linux/module.h:10,
                 from thinkpad.c:42:
/lib/modules/2.6.4-gentoo-r1/build/include/asm/system.h: In function
`__set_64bit_var':
/lib/modules/2.6.4-gentoo-r1/build/include/asm/system.h:193: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.4-gentoo-r1/build/include/asm/system.h:193: warning:
dereferencing type-punned pointer will break strict-aliasing rules
thinkpad.c:105:41: missing binary operator before token "("
distcc[5888] ERROR: compile on localhost failed
make[1]: *** [thinkpad.o] Error 1
make[1]: Leaving directory
`/opt/tmp/portage/thinkpad-4.8/work/thinkpad-4.8/2.6/drivers'
make: *** [all] Error 2

!!! ERROR: app-laptop/thinkpad-4.8 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! Make failed

laptop thinkpad # 

------- Comment #5 From steveb 2004-04-10 20:13:41 0000 -------
Created an attachment (id=29061) [edit]
thinkpad-5.0-r1.ebuild

okay... i fixed the sandbox stuff. i only added write access to i386 and
x86_64, since the old ebuild had only them in the accept flags.

this is the output of an compile on my system (tp a22p):
thinkpad / # ebuild
/usr/local/portage/app-laptop/thinkpad/thinkpad-5.0-r1.ebuild digest
>>> Generating digest file...
<<< thinkpad_5.0.tar.gz
>>> Generating manifest file...
<<< thinkpad-5.0-r1.ebuild
<<< files/digest-thinkpad-5.0
<<< files/thinkpad
<<< files/digest-thinkpad-5.0-r1
>>> Computed message digests.

thinkpad / # emerge
/usr/local/portage/app-laptop/thinkpad/thinkpad-5.0-r1.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.0-r1 to /
>>> md5 src_uri ;-) thinkpad_5.0.tar.gz
>>> Unpacking source...
>>> Unpacking thinkpad_5.0.tar.gz to /var/tmp/portage/thinkpad-5.0-r1/work
>>> Source unpacked.
make -C 2.6/drivers
make[1]: Entering directory
`/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
make -C /lib/modules/2.6.5-mm3/build
SUBDIRS=/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.5-mm3'
*** Warning: Overriding SUBDIRS on the command line can cause
***	     inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK	  include/asm-i386/asm_offsets.h
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/thinkpad.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi_core.o
as   -o
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi_call.o
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi_call.s
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi_call.s:
Assembler messages:
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi_call.s:50:
Warning: indirect lcall without `*'
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/superio.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/rtcmosram.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/thinkpadpm.o
  Building modules, stage 2.
/usr/src/linux-2.6.5-mm3/scripts/Makefile.modpost:17: Trouble:
/tmp/vmware-config1/vmmon-only/vmmon.ko /tmp/vmware-config1/vmnet-only/vmnet.ko

/usr/src/linux-2.6.5-mm3/scripts/Makefile.modpost:18: *** Uh-oh, you have stale
module entries. You messed with SUBDIRS,
/usr/src/linux-2.6.5-mm3/scripts/Makefile.modpost:19: do not complain if
something goes wrong.
  MODPOST
  CC	 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/rtcmosram.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/rtcmosram.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/smapi.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/superio.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/superio.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/thinkpad.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/thinkpad.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/thinkpadpm.mod.o

  LD [M] 
/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers/thinkpadpm.ko
make[2]: Leaving directory `/usr/src/linux-2.6.5-mm3'
make[1]: Leaving directory
`/var/tmp/portage/thinkpad-5.0-r1/work/thinkpad-5.0/2.6/drivers'

>>> Install thinkpad-5.0-r1 into /var/tmp/portage/thinkpad-5.0-r1/image/
category app-laptop
man:
prepallstrip:
strip:
>>> Completed installing into /var/tmp/portage/thinkpad-5.0-r1/image/

./
./etc/
./etc/devfs.d/
./etc/devfs.d/thinkpad
./etc/modules.d/
./etc/modules.d/thinkpad
./lib/
./lib/modules/
./lib/modules/2.6.5-mm3/
./lib/modules/2.6.5-mm3/thinkpad/
./lib/modules/2.6.5-mm3/thinkpad/superio.ko
./lib/modules/2.6.5-mm3/thinkpad/rtcmosram.ko
./lib/modules/2.6.5-mm3/thinkpad/thinkpadpm.ko
./lib/modules/2.6.5-mm3/thinkpad/thinkpad.ko
./lib/modules/2.6.5-mm3/thinkpad/smapi.ko
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/thinkpad-5.0-r1/
./usr/share/doc/thinkpad-5.0-r1/TECHNOTES.gz
./usr/share/doc/thinkpad-5.0-r1/README.gz
./usr/share/doc/thinkpad-5.0-r1/COPYING.gz
./usr/share/doc/thinkpad-5.0-r1/AUTHORS.gz
./usr/share/doc/thinkpad-5.0-r1/SUPPORTED-MODELS.gz
./usr/share/doc/thinkpad-5.0-r1/ChangeLog.gz
./usr/share/man/
./usr/share/man/man4/
./usr/share/man/man4/thinkpad.4.gz
>>> Done.
>>> extracting info
>>> extracting thinkpad-5.0-r1
>>> Merging app-laptop/thinkpad-5.0-r1 to /
--- /etc/
--- /etc/devfs.d/
>>> /etc/devfs.d/thinkpad
--- /etc/modules.d/
>>> /etc/modules.d/thinkpad
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.5-mm3/
--- /lib/modules/2.6.5-mm3/thinkpad/
>>> /lib/modules/2.6.5-mm3/thinkpad/superio.ko
>>> /lib/modules/2.6.5-mm3/thinkpad/rtcmosram.ko
>>> /lib/modules/2.6.5-mm3/thinkpad/thinkpadpm.ko
>>> /lib/modules/2.6.5-mm3/thinkpad/thinkpad.ko
>>> /lib/modules/2.6.5-mm3/thinkpad/smapi.ko
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/thinkpad-5.0-r1/
>>> /usr/share/doc/thinkpad-5.0-r1/TECHNOTES.gz
>>> /usr/share/doc/thinkpad-5.0-r1/README.gz
>>> /usr/share/doc/thinkpad-5.0-r1/COPYING.gz
>>> /usr/share/doc/thinkpad-5.0-r1/AUTHORS.gz
>>> /usr/share/doc/thinkpad-5.0-r1/SUPPORTED-MODELS.gz
>>> /usr/share/doc/thinkpad-5.0-r1/ChangeLog.gz
--- /usr/share/man/
--- /usr/share/man/man4/
>>> /usr/share/man/man4/thinkpad.4.gz
 * Caching service dependencies...
>>> app-laptop/thinkpad-5.0-r1 merged.

 app-laptop/thinkpad
    selected: 5.0
   protected: 5.0-r1
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging app-laptop/thinkpad-5.0...
No package files given... Grabbing a set.
FATAL: Module smapi is not in kernel.
--- !mtime obj /usr/share/man/man4/thinkpad.4.gz
<<<	   obj /usr/share/doc/thinkpad-5.0/TECHNOTES.gz
<<<	   obj /usr/share/doc/thinkpad-5.0/SUPPORTED-MODELS.gz
<<<	   obj /usr/share/doc/thinkpad-5.0/README.gz
<<<	   obj /usr/share/doc/thinkpad-5.0/ChangeLog.gz
<<<	   obj /usr/share/doc/thinkpad-5.0/COPYING.gz
<<<	   obj /usr/share/doc/thinkpad-5.0/AUTHORS.gz
--- cfgpro obj /lib/modules/2.6.5-mm3/thinkpad/thinkpadpm.ko
--- cfgpro obj /lib/modules/2.6.5-mm3/thinkpad/thinkpad.ko
--- cfgpro obj /lib/modules/2.6.5-mm3/thinkpad/superio.ko
--- cfgpro obj /lib/modules/2.6.5-mm3/thinkpad/smapi.ko
--- cfgpro obj /lib/modules/2.6.5-mm3/thinkpad/rtcmosram.ko
--- cfgpro dir /lib/modules/2.6.5-mm3/thinkpad
--- cfgpro dir /lib/modules/2.6.5-mm3
--- cfgpro obj /etc/modules.d/thinkpad
--- cfgpro dir /etc/modules.d
--- cfgpro obj /etc/devfs.d/thinkpad
--- cfgpro dir /etc/devfs.d
<<<	   dir /usr/share/doc/thinkpad-5.0
--- !empty dir /usr/share/man/man4
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
 * Caching service dependencies...
 * Caching service dependencies...
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

thinkpad / #


the compile warnings i get are only because of the vmware modules ;)


the modules load without any problem (2.6.5-mm3 with udev):
thinkpad / # cat /proc/driver/thinkpad/*
rtcmosram version 5.0 accessing RT CMOS RAM at ioports 0x70, 0x71
superio version 5.0 controlling Super I/O chip at ioports 0x2e, 0x2f
thinkpad version 5.0 enabled to access modules: smapi superio rtcmosram
thinkpadpm.
thinkpadpm version 5.0 accessing APM BIOS at 0xb8:0x4483
thinkpad / #


happy compiling

cheers

SteveB

ps: thanks to chris.pickett for asking me very polite to go over the ebuild and
try to get the sandbox stuff sorted out.

------- Comment #6 From steveb 2004-04-11 10:57:23 0000 -------
Created an attachment (id=29087) [edit]
thinkpad-5.0-r2.ebuild

i had trouble to build the drivers with 2.6.5-mm4. now i changed the ebuild to
allow me to compile them.

this is the output of the emerge command:
thinkpad / # ebuild
/usr/local/portage/app-laptop/thinkpad/thinkpad-5.0-r2.ebuild digest
>>> Generating digest file...
<<< thinkpad_5.0.tar.gz
>>> Generating manifest file...
<<< thinkpad-5.0-r1.ebuild
<<< thinkpad-5.0-r2.ebuild
<<< files/digest-thinkpad-5.0
<<< files/thinkpad
<<< files/digest-thinkpad-5.0-r1
<<< files/digest-thinkpad-5.0-r2
>>> Computed message digests.

thinkpad / # emerge -v
/usr/local/portage/app-laptop/thinkpad/thinkpad-5.0-r2.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.0-r2 to /
>>> md5 src_uri ;-) thinkpad_5.0.tar.gz
>>> Unpacking source...
>>> Unpacking thinkpad_5.0.tar.gz to /var/tmp/portage/thinkpad-5.0-r2/work
>>> Source unpacked.
make -C 2.6/drivers
make[1]: Entering directory
`/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
make -C /lib/modules/2.6.5-mm4/build
SUBDIRS=/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.5-mm4'
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/thinkpad.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi_core.o
as   -o
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi_call.o
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi_call.s
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi_call.s:
Assembler messages:
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi_call.s:50:
Warning: indirect lcall without `*'
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/superio.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/rtcmosram.o
  CC [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/thinkpadpm.o
  Building modules, stage 2.
  MODPOST
  CC	 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/rtcmosram.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/rtcmosram.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/smapi.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/superio.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/superio.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/thinkpad.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/thinkpad.ko
  CC	 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/thinkpadpm.mod.o

  LD [M] 
/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers/thinkpadpm.ko
make[2]: Leaving directory `/usr/src/linux-2.6.5-mm4'
make[1]: Leaving directory
`/var/tmp/portage/thinkpad-5.0-r2/work/thinkpad-5.0/2.6/drivers'

>>> Install thinkpad-5.0-r2 into /var/tmp/portage/thinkpad-5.0-r2/image/
category app-laptop
man:
prepallstrip:
strip:
>>> Completed installing into /var/tmp/portage/thinkpad-5.0-r2/image/

./
./etc/
./etc/devfs.d/
./etc/devfs.d/thinkpad
./etc/modules.d/
./etc/modules.d/thinkpad
./lib/
./lib/modules/
./lib/modules/2.6.5-mm4/
./lib/modules/2.6.5-mm4/thinkpad/
./lib/modules/2.6.5-mm4/thinkpad/superio.ko
./lib/modules/2.6.5-mm4/thinkpad/rtcmosram.ko
./lib/modules/2.6.5-mm4/thinkpad/thinkpadpm.ko
./lib/modules/2.6.5-mm4/thinkpad/thinkpad.ko
./lib/modules/2.6.5-mm4/thinkpad/smapi.ko
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/thinkpad-5.0-r2/
./usr/share/doc/thinkpad-5.0-r2/TECHNOTES.gz
./usr/share/doc/thinkpad-5.0-r2/README.gz
./usr/share/doc/thinkpad-5.0-r2/COPYING.gz
./usr/share/doc/thinkpad-5.0-r2/AUTHORS.gz
./usr/share/doc/thinkpad-5.0-r2/SUPPORTED-MODELS.gz
./usr/share/doc/thinkpad-5.0-r2/ChangeLog.gz
./usr/share/man/
./usr/share/man/man4/
./usr/share/man/man4/thinkpad.4.gz
>>> Done.
>>> extracting info
>>> extracting thinkpad-5.0-r2
>>> Merging app-laptop/thinkpad-5.0-r2 to /
--- /etc/
--- /etc/devfs.d/
>>> /etc/devfs.d/thinkpad
--- /etc/modules.d/
>>> /etc/modules.d/thinkpad
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.5-mm4/
--- /lib/modules/2.6.5-mm4/thinkpad/
>>> /lib/modules/2.6.5-mm4/thinkpad/superio.ko
>>> /lib/modules/2.6.5-mm4/thinkpad/rtcmosram.ko
>>> /lib/modules/2.6.5-mm4/thinkpad/thinkpadpm.ko
>>> /lib/modules/2.6.5-mm4/thinkpad/thinkpad.ko
>>> /lib/modules/2.6.5-mm4/thinkpad/smapi.ko
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/thinkpad-5.0-r2/
>>> /usr/share/doc/thinkpad-5.0-r2/TECHNOTES.gz
>>> /usr/share/doc/thinkpad-5.0-r2/README.gz
>>> /usr/share/doc/thinkpad-5.0-r2/COPYING.gz
>>> /usr/share/doc/thinkpad-5.0-r2/AUTHORS.gz
>>> /usr/share/doc/thinkpad-5.0-r2/SUPPORTED-MODELS.gz
>>> /usr/share/doc/thinkpad-5.0-r2/ChangeLog.gz
--- /usr/share/man/
--- /usr/share/man/man4/
>>> /usr/share/man/man4/thinkpad.4.gz
 * Caching service dependencies...
>>> app-laptop/thinkpad-5.0-r2 merged.

 app-laptop/thinkpad
    selected: 5.0-r1
   protected: 5.0-r2
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging app-laptop/thinkpad-5.0-r1...
No package files given... Grabbing a set.
FATAL: Module smapi is not in kernel.
--- !mtime obj /usr/share/man/man4/thinkpad.4.gz
<<<	   obj /usr/share/doc/thinkpad-5.0-r1/TECHNOTES.gz
<<<	   obj /usr/share/doc/thinkpad-5.0-r1/SUPPORTED-MODELS.gz
<<<	   obj /usr/share/doc/thinkpad-5.0-r1/README.gz
<<<	   obj /usr/share/doc/thinkpad-5.0-r1/ChangeLog.gz
<<<	   obj /usr/share/doc/thinkpad-5.0-r1/COPYING.gz
<<<	   obj /usr/share/doc/thinkpad-5.0-r1/AUTHORS.gz
--- cfgpro obj /lib/modules/2.6.5-mm4/thinkpad/thinkpadpm.ko
--- cfgpro obj /lib/modules/2.6.5-mm4/thinkpad/thinkpad.ko
--- cfgpro obj /lib/modules/2.6.5-mm4/thinkpad/superio.ko
--- cfgpro obj /lib/modules/2.6.5-mm4/thinkpad/smapi.ko
--- cfgpro obj /lib/modules/2.6.5-mm4/thinkpad/rtcmosram.ko
--- cfgpro dir /lib/modules/2.6.5-mm4/thinkpad
--- cfgpro dir /lib/modules/2.6.5-mm4
--- cfgpro obj /etc/modules.d/thinkpad
--- cfgpro dir /etc/modules.d
--- cfgpro obj /etc/devfs.d/thinkpad
--- cfgpro dir /etc/devfs.d
<<<	   dir /usr/share/doc/thinkpad-5.0-r1
--- !empty dir /usr/share/man/man4
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
 * Caching service dependencies...
 * Caching service dependencies...
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

thinkpad / #


cheers

SteveB

------- Comment #7 From steveb 2004-04-12 12:52:04 0000 -------
Created an attachment (id=29154) [edit]
thinkpad-5.0-r3.ebuild

well... again me. this time the ebuild fixes an ugly UDEV problem with the
thinkpad tools.

for more info about the bug, please see http://bugs.debian.org/242989


cheers

SteveB

------- Comment #8 From steveb 2004-04-12 12:52:58 0000 -------
Created an attachment (id=29155) [edit]
bug-242989.patch

this patch is needed for the >=thinkpad-5.0-r3.ebuild

cheers

SteveB

------- Comment #9 From Magnus 2004-04-15 10:13:57 0000 -------
This may be stupid but as I don't get the trick:

After creating in /usr/portage/app-laptop/thinkpad thinkpad-5.0-r3,
creating in /usr/portage/app-laptop/thinkpad/files bug-242989.patch
launching # ebuild thinkpad-5.0-r3.ebuild digest
launching # USE="-sandbox" emerge thinkpad-5.0-r3.ebuild (in /usr/... dir)

Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.0-r3 to /
>>> md5 src_uri ;-) thinkpad_5.0.tar.gz
>>> Unpacking source...
>>> Unpacking thinkpad_5.0.tar.gz to /var/tmp/portage/thinkpad-5.0-r3/work
 * Applying bug-242989.patch...
 
 * Failed Patch: bug-242989.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/thinkpad-5.0-r3/temp/bug-242989.patch-32481.out
 
 
!!! ERROR: app-laptop/thinkpad-5.0-r3 failed.
!!! Function epatch, Line 322, Exitcode 0
!!! Failed Patch: bug-242989.patch!
#
 
Here is the file mentionned before
/var/tmp/portage/thinkpad-5.0-r3/temp/bug-242989.patch-32481.out start
***** bug-242989.patch *****
 
============================
 
PATCH COMMAND:  patch -g0 -p0 < /usr/portage/app-laptop/thinkpad/files/bug-24298 9.patch
 
============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c thinkpad-5.0.new/2.6/drivers/thin kpad.c
|--- thinkpad-5.0/2.6/drivers/thinkpad.c        2004-01-20 02:23:52.000000000 -0 500
|+++ thinkpad-5.0.new/2.6/drivers/thinkpad.c    2004-03-23 16:19:50.683645889 -0 500
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 11:                  };
 
============================
 
PATCH COMMAND:  patch -g0 -p1 < /usr/portage/app-laptop/thinkpad/files/bug-24298 9.patch
 
============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c thinkpad-5.0.new/2.6/drivers/thin kpad.c
|--- thinkpad-5.0/2.6/drivers/thinkpad.c        2004-01-20 02:23:52.000000000 -0 500
|+++ thinkpad-5.0.new/2.6/drivers/thinkpad.c    2004-03-23 16:19:50.683645889 -0 500
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 11:                  };
 
============================
 
PATCH COMMAND:  patch -g0 -p2 < /usr/portage/app-laptop/thinkpad/files/bug-24298 9.patch
 
============================
patching file drivers/thinkpad.c
patch: **** malformed patch at line 11:                  };
 
============================
 
PATCH COMMAND:  patch -g0 -p3 < /usr/portage/app-laptop/thinkpad/files/bug-24298 9.patch
 
============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c thinkpad-5.0.new/2.6/drivers/thin kpad.c
|--- thinkpad-5.0/2.6/drivers/thinkpad.c        2004-01-20 02:23:52.000000000 -0 500
|+++ thinkpad-5.0.new/2.6/drivers/thinkpad.c    2004-03-23 16:19:50.683645889 -0 500
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 11:                  };
 
============================
 
PATCH COMMAND:  patch -g0 -p4 < /usr/portage/app-laptop/thinkpad/files/bug-24298 9.patch
 
============================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c thinkpad-5.0.new/2.6/drivers/thin kpad.c
|--- thinkpad-5.0/2.6/drivers/thinkpad.c        2004-01-20 02:23:52.000000000 -0 500
|+++ thinkpad-5.0.new/2.6/drivers/thinkpad.c    2004-03-23 16:19:50.683645889 -0 500
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 11:                  };

/var/tmp/portage/thinkpad-5.0-r3/temp/bug-242989.patch-32481.out end

------- Comment #10 From steveb 2004-04-15 13:09:46 0000 -------
hmmm... probably the patch get's modified by the bugzilla upload script, when i
upload it as text?!?!

i can offer you to post the file in base64 encoded (you need net-mail/base64 to
decode it):
thinkpad / # base64 -e
/usr/local/portage/app-laptop/thinkpad/files/bug-242989.patch
ZGlmZiAtdXJOIHRoaW5rcGFkLTUuMC8yLjYvZHJpdmVycy90aGlua3BhZC5jIHRoaW5rcGFk
LTUuMC5uZXcvMi42L2RyaXZlcnMvdGhpbmtwYWQuYwotLS0gdGhpbmtwYWQtNS4wLzIuNi9k
cml2ZXJzL3RoaW5rcGFkLmMJMjAwNC0wMS0yMCAwMjoyMzo1Mi4wMDAwMDAwMDAgLTA1MDAK
KysrIHRoaW5rcGFkLTUuMC5uZXcvMi42L2RyaXZlcnMvdGhpbmtwYWQuYwkyMDA0LTAzLTIz
IDE2OjE5OjUwLjY4MzY0NTg4OSAtMDUwMApAQCAtMzAwLDcgKzMwMCw3IEBACgogc3RhdGlj
IHN0cnVjdCBtaXNjZGV2aWNlIF9zdHJ1Y3RtaXNjZGV2aWNlVGhpbmtwYWQgPSB7CiAJLm1p
bm9yID0gTUlOT1JfVEhJTktQQUQsCi0JLm5hbWUgID0gInRoaW5rcGFkL3RoaW5rcGFkIiwK
KwkubmFtZSAgPSAidGhpbmtwYWQiLAogCS5mb3BzICA9ICZfZmlsZW9wc1RoaW5rcGFkCiB9
OwogCmRpZmYgLXVyTiB0aGlua3BhZC01LjAvMi42L2luY2x1ZGUvc21hcGlfY2FsbC5oIHRo
aW5rcGFkLTUuMC5uZXcvMi42L2luY2x1ZGUvc21hcGlfY2FsbC5oCi0tLSB0aGlua3BhZC01
LjAvMi42L2luY2x1ZGUvc21hcGlfY2FsbC5oCTIwMDEtMDQtMjcgMTY6NDU6MzQuMDAwMDAw
MDAwIC0wNDAwCisrKyB0aGlua3BhZC01LjAubmV3LzIuNi9pbmNsdWRlL3NtYXBpX2NhbGwu
aAkyMDA0LTAzLTIzIDEyOjI5OjExLjAwMDAwMDAwMCAtMDUwMApAQCAtMzAsNyArMzAsNyBA
QAogI2RlZmluZSBfX1NNQVBJX0NBTExfSF9fCgogLyoqKioqKiBkZWNsYXJhdGlvbnMgKioq
KioqLwotaW50IFNNQVBJX0JJT1NfZG8oIHNtYXBpX2lucGFybV90ICogLCBzbWFwaV9vdXRw
YXJtX3QgKiApOworYXNtbGlua2FnZSBpbnQgU01BUElfQklPU19kbyggc21hcGlfaW5wYXJt
X3QgKiAsIHNtYXBpX291dHBhcm1fdCAqICk7CiBleHRlcm4gZHdvcmQgX2R3QWRkcmVzc1Nt
YXBpQmlvczsKCiAjZW5kaWYKCg==
thinkpad / #


or i can offer you an simple shell echo to produce the patch file:
echo -e "diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c
thinkpad-5.0.new/2.6/drivers/thinkpad.c\n---
thinkpad-5.0/2.6/drivers/thinkpad.c\t2004-01-20 02:23:52.000000000 -0500\n+++
thinkpad-5.0.new/2.6/drivers/thinkpad.c\t2004-03-23 16:19:50.683645889
-0500\n@@ -300,7 +300,7 @@\n\n static struct miscdevice
_structmiscdeviceThinkpad = {\n \t.minor = MINOR_THINKPAD,\n-\t.name  =
\"thinkpad/thinkpad\",\n+\t.name  = \"thinkpad\",\n \t.fops  =
&_fileopsThinkpad\n };\n\ndiff -urN thinkpad-5.0/2.6/include/smapi_call.h
thinkpad-5.0.new/2.6/include/smapi_call.h\n---
thinkpad-5.0/2.6/include/smapi_call.h\t2001-04-27 16:45:34.000000000 -0400\n+++
thinkpad-5.0.new/2.6/include/smapi_call.h\t2004-03-23 12:29:11.000000000
-0500\n@@ -30,7 +30,7 @@\n #define __SMAPI_CALL_H__\n\n /****** declarations
******/\n-int SMAPI_BIOS_do( smapi_inparm_t * , smapi_outparm_t *
);\n+asmlinkage int SMAPI_BIOS_do( smapi_inparm_t * , smapi_outparm_t * );\n
extern dword _dwAddressSmapiBios;\n\n
#endif\n\n">/usr/local/portage/app-laptop/thinkpad/files/bug-242989.patch


let me know if it is working or not?


cheers

SteveB

------- Comment #11 From steveb 2004-04-15 13:24:19 0000 -------
well.... reading the return mail i get from bugzill, i see the shell echo is
not okay (again stripped).

try this:
echo -en "diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c" ; \
echo -en " thinkpad-5.0.new/2.6/drivers/thinkpad.c\n---" ; \
echo -en " thinkpad-5.0/2.6/drivers/thinkpad.c\t2004-01-" ; \
echo -en "20 02:23:52.000000000 -0500\n+++ thinkpad-5.0." ; \
echo -en "new/2.6/drivers/thinkpad.c\t2004-03-23 16:19:5" ; \
echo -en "0.683645889 -0500\n@@ -300,7 +300,7 @@\n\n sta" ; \
echo -en "tic struct miscdevice _structmiscdeviceThinkpa" ; \
echo -en "d = {\n \t.minor = MINOR_THINKPAD,\n-\t.name  " ; \
echo -en "= \"thinkpad/thinkpad\",\n+\t.name  = \"thinkp" ; \
echo -en "ad\",\n \t.fops  = &_fileopsThinkpad\n };\n\nd" ; \
echo -en "iff -urN thinkpad-5.0/2.6/include/smapi_call.h" ; \
echo -en " thinkpad-5.0.new/2.6/include/smapi_call.h\n--" ; \
echo -en "- thinkpad-5.0/2.6/include/smapi_call.h\t2001-" ; \
echo -en "04-27 16:45:34.000000000 -0400\n+++ thinkpad-5" ; \
echo -en ".0.new/2.6/include/smapi_call.h\t2004-03-23 12" ; \
echo -en ":29:11.000000000 -0500\n@@ -30,7 +30,7 @@\n #d" ; \
echo -en "efine __SMAPI_CALL_H__\n\n /****** declaration" ; \
echo -en "s ******/\n-int SMAPI_BIOS_do( smapi_inparm_t " ; \
echo -en "* , smapi_outparm_t * );\n+asmlinkage int SMAP" ; \
echo -en "I_BIOS_do( smapi_inparm_t * , smapi_outparm_t " ; \
echo -en "* );\n extern dword _dwAddressSmapiBios;\n\n #" ; \
echo -en "endif\n\n" > \
/usr/local/portage/app-laptop/thinkpad/files/bug-242989.patch


cheers

SteveB

------- Comment #12 From Magnus 2004-04-16 00:01:41 0000 -------
comment #11 did not work (the file will only contain the last echo),
maybe an idea would be to zip the files, no?
BUT I managed to recreate the file.

Thinkpad-5.0-r3 compile without complaining.

I am now able to run tpctl (or ntpctl) without complete freeze or abort.

Some functionalities are still missing but it compiles.

Thanks a lot.

------- Comment #13 From steveb 2004-04-16 14:07:09 0000 -------
ahhhh... you are right! it was so late yesterday ;)

the right command would be:
( echo -en "diff -urN thinkpad-5.0/2.6/drivers/thinkpad.c" ; \
echo -en " thinkpad-5.0.new/2.6/drivers/thinkpad.c\n---" ; \
echo -en " thinkpad-5.0/2.6/drivers/thinkpad.c\t2004-01-" ; \
echo -en "20 02:23:52.000000000 -0500\n+++ thinkpad-5.0." ; \
echo -en "new/2.6/drivers/thinkpad.c\t2004-03-23 16:19:5" ; \
echo -en "0.683645889 -0500\n@@ -300,7 +300,7 @@\n\n sta" ; \
echo -en "tic struct miscdevice _structmiscdeviceThinkpa" ; \
echo -en "d = {\n \t.minor = MINOR_THINKPAD,\n-\t.name  " ; \
echo -en "= \"thinkpad/thinkpad\",\n+\t.name  = \"thinkp" ; \
echo -en "ad\",\n \t.fops  = &_fileopsThinkpad\n };\n\nd" ; \
echo -en "iff -urN thinkpad-5.0/2.6/include/smapi_call.h" ; \
echo -en " thinkpad-5.0.new/2.6/include/smapi_call.h\n--" ; \
echo -en "- thinkpad-5.0/2.6/include/smapi_call.h\t2001-" ; \
echo -en "04-27 16:45:34.000000000 -0400\n+++ thinkpad-5" ; \
echo -en ".0.new/2.6/include/smapi_call.h\t2004-03-23 12" ; \
echo -en ":29:11.000000000 -0500\n@@ -30,7 +30,7 @@\n #d" ; \
echo -en "efine __SMAPI_CALL_H__\n\n /****** declaration" ; \
echo -en "s ******/\n-int SMAPI_BIOS_do( smapi_inparm_t " ; \
echo -en "* , smapi_outparm_t * );\n+asmlinkage int SMAP" ; \
echo -en "I_BIOS_do( smapi_inparm_t * , smapi_outparm_t " ; \
echo -en "* );\n extern dword _dwAddressSmapiBios;\n\n #" ; \
echo -en "endif\n\n" ) > \
/usr/local/portage/app-laptop/thinkpad/files/bug-242989.patch

------- Comment #14 From steveb 2004-04-16 14:14:40 0000 -------
btw: about tpctl.... i have used the 4.10 version of tpctl (ebuild is not in
portage). the 4.10 release has an problem with 2.6 and apm (see
http://bugs.debian.org/242980), but in my ebuild i fixed that problem. this is
the ebuild i used:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: app-laptop/tpctl-4.10.ebuild Exp $

inherit eutils

IUSE="ncurses tpctlir perl"

#transform P to match tarball versioning
MYPV=${PV/_beta/beta}
MYP="${PN}_${MYPV}"

DESCRIPTION="Thinkpad system control user space programs"
SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
KEYWORDS="-* ~x86"
SLOT="0"
LICENSE="GPL-2"

DEPEND=">=app-laptop/thinkpad-5.0 ncurses? ( sys-libs/ncurses )"
RDEPEND=">=app-laptop/thinkpad-5.0 ncurses? ( sys-libs/ncurses )
        perl? ( dev-lang/perl )"

src_unpack() {
        unpack ${A}
        cd ${S}
        patch -p1 < ${FILESDIR}/tpctlir-cli-4.4-r1.diff || die "patch failed"
}

src_compile() {

        emake -C lib || die "lib make failed"
        emake -C tpctl || die "tpctl make failed"
        if use ncurses; then
                emake -C ntpctl || die "ntpctl make failed"
        fi

        # Only for thinkpad models 760 and 765
        # build with:
        # $ USE=tpctlir emerge tpctl
        if use tpctlir; then
                emake -C tpctlir || die "tpctlir make failed"
        fi
}

src_install() {
        dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING
\
                VGA-MODES
        dolib lib/libsmapidev.so.2.0
        dobin tpctl/tpctl
        [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
        if use tpctlir && [ -e tpctlir/tpctlir ]; then
                mv tpctlir/README README.tpctlir
                dodoc README.tpctlir
                dobin tpctlir/tpctlir || die
        fi
        if use perl; then
                check_KV
                mv apmiser/README README.apmiser
                dodoc README.apmiser
                if [ "${KV:0:3}" == "2.6" ]
                then
                        # http://bugs.debian.org/242980
                        sed -i "s/^\(.*(\$user,\$nice,\$sys,\$idle) =
\/\^cpu\(\\\\s+(\\\\d+)\)\{4\}\)\$\/;/\1\/;/g" \
                                apmiser/apmiser
                fi
                dosbin apmiser/apmiser || die
                exeinto /etc/init.d
                newexe ${FILESDIR}/apmiser.rc apmiser || die
        fi
        doman man/{ntpctl,tpctl}.1 man/apmiser.8
}




for the ebuild to work, you need to copy serval files from the current tpctl
into the portage overlay directory:
cp /usr/portage/app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff
/usr/local/portage/app-laptop/tpctl/files/.

cp /usr/portage/app-laptop/tpctl/files/apmiser.rc
/usr/local/portage/app-laptop/tpctl/files/.


cheers

SteveB

------- Comment #15 From Robert Peter 2004-06-13 11:36:40 0000 -------
Theres thinkpad module 5.5 and tpctl 4.14 out - any ebuilds for them?

------- Comment #16 From steveb 2004-06-16 02:09:50 0000 -------
Hi Robert,

there you go:

thinkpad / # FEATURES="-distcc" MAKEOPTS="-j2" emerge -v thinkpad
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.5 to /
>>> md5 src_uri ;-) thinkpad_5.5.tar.gz
>>> Unpacking source...
>>> Unpacking thinkpad_5.5.tar.gz to /var/tmp/portage/thinkpad-5.5/work
>>> Source unpacked.
make -C 2.6/drivers
make[1]: Entering directory `/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C /lib/modules/2.6.7-rc3-mm2/build SUBDIRS=/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.7-rc3-mm2'
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpad.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_core.o
as   -o /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.o /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.s
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.s: Assembler messages:
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.s:50: Warning: indirect lcall without `*'
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/superio.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/rtcmosram.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.o
  Building modules, stage 2.
  MODPOST
*** Warning: "thinkpad_ppde" [/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.ko] has no CRC!
*** Warning: "thinkpad_ppde" [/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/superio.ko] has no CRC!
*** Warning: "thinkpad_ppde" [/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi.ko] has no CRC!
*** Warning: "thinkpad_ppde" [/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/rtcmosram.ko] has no CRC!
  CC      /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/rtcmosram.mod.o
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/rtcmosram.ko
  CC      /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi.mod.o
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi.ko
  CC      /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/superio.mod.o
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/superio.ko
  CC      /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpad.mod.o
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpad.ko
  CC      /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.mod.o
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.ko
make[2]: Leaving directory `/usr/src/linux-2.6.7-rc3-mm2'
make[1]: Leaving directory `/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers'

>>> Install thinkpad-5.5 into /var/tmp/portage/thinkpad-5.5/image/ category app-laptop
grep: /etc/udev/udev.permissions: No such file or directory
cat: /etc/udev/udev.permissions: No such file or directory
man:
prepallstrip:
strip:
>>> Completed installing into /var/tmp/portage/thinkpad-5.5/image/

./
./etc/
./etc/devfs.d/
./etc/devfs.d/thinkpad
./etc/modules.d/
./etc/modules.d/thinkpad
./etc/udev/
./etc/udev/udev.permissions
./lib/
./lib/modules/
./lib/modules/2.6.7-rc3-mm2/
./lib/modules/2.6.7-rc3-mm2/thinkpad/
./lib/modules/2.6.7-rc3-mm2/thinkpad/rtcmosram.ko
./lib/modules/2.6.7-rc3-mm2/thinkpad/smapi.ko
./lib/modules/2.6.7-rc3-mm2/thinkpad/superio.ko
./lib/modules/2.6.7-rc3-mm2/thinkpad/thinkpad.ko
./lib/modules/2.6.7-rc3-mm2/thinkpad/thinkpadpm.ko
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/thinkpad-5.5/
./usr/share/doc/thinkpad-5.5/AUTHORS.gz
./usr/share/doc/thinkpad-5.5/COPYING.gz
./usr/share/doc/thinkpad-5.5/ChangeLog.gz
./usr/share/doc/thinkpad-5.5/README.gz
./usr/share/doc/thinkpad-5.5/SUPPORTED-MODELS.gz
./usr/share/doc/thinkpad-5.5/TECHNOTES.gz
./usr/share/man/
./usr/share/man/man4/
./usr/share/man/man4/thinkpad.4.gz
>>> Done.
>>> extracting info
>>> extracting thinkpad-5.5
>>> Merging app-laptop/thinkpad-5.5 to /
--- /etc/
--- /etc/devfs.d/
>>> /etc/devfs.d/thinkpad
--- /etc/modules.d/
>>> /etc/modules.d/thinkpad
--- /etc/udev/
>>> /etc/udev/udev.permissions
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.7-rc3-mm2/
>>> /lib/modules/2.6.7-rc3-mm2/thinkpad/
>>> /lib/modules/2.6.7-rc3-mm2/thinkpad/rtcmosram.ko
>>> /lib/modules/2.6.7-rc3-mm2/thinkpad/smapi.ko
>>> /lib/modules/2.6.7-rc3-mm2/thinkpad/superio.ko
>>> /lib/modules/2.6.7-rc3-mm2/thinkpad/thinkpad.ko
>>> /lib/modules/2.6.7-rc3-mm2/thinkpad/thinkpadpm.ko
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/thinkpad-5.5/
>>> /usr/share/doc/thinkpad-5.5/AUTHORS.gz
>>> /usr/share/doc/thinkpad-5.5/COPYING.gz
>>> /usr/share/doc/thinkpad-5.5/ChangeLog.gz
>>> /usr/share/doc/thinkpad-5.5/README.gz
>>> /usr/share/doc/thinkpad-5.5/SUPPORTED-MODELS.gz
>>> /usr/share/doc/thinkpad-5.5/TECHNOTES.gz
--- /usr/share/man/
--- /usr/share/man/man4/
>>> /usr/share/man/man4/thinkpad.4.gz
 * Caching service dependencies...
>>> app-laptop/thinkpad-5.5 merged.
>>> Recording app-laptop/thinkpad in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 1 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.

thinkpad / #

------- Comment #17 From steveb 2004-06-16 02:18:23 0000 -------
Strange! I am getting "500 Internal Server Error", when I try to upload the
ebuild.

Anyway... this is the content of the ebuild:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $

inherit eutils

#transform P to match tarball versioning
MYPV=${PV/_beta/beta}
MYP="${PN}_${MYPV}"
DESCRIPTION="Thinkpad system control kernel modules"
HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* x86 amd64"
ARCH="i386"
DEPEND="virtual/glibc"

pkg_setup() {
        enewgroup thinkpad
        check_KV
        if [ ! -f "${ROOT}/usr/src/linux/include/linux/version.h" ]
        then
                eerror "Please verify that your /usr/src/linux symlink is
pointing"
                eerror "to your current kernel sources, and that you did run:"
                eerror
                eerror "  # make dep"
                die "/usr/src/linux symlink not setup!"
        fi
        [ ! -f ${FILESDIR}/thinkpad ] && die "Missing ${FILESDIR}/thinkpad"
}

src_unpack() {
        check_KV
        unpack ${A} || die "unpack failed"
        cd ${S}

        # Use your kernel version to build.
        local ver=${KV:0:3} # first 3 chars of $KV, thank you bash :)
        if [ ! -d ${ver} ]
        then
                die "The used kernel version ${ver}.x is not supported"
        else
                ln -s ${ver}/drivers drivers
                ln -s ${ver}/include include
                mkdir -p ${ver}/drivers/.tmp_versions
        fi
}

src_compile() {
        check_KV
        # Hack to prevent from getting sandbox errors
        addwrite "${ROOT}usr/src/linux-${KV}/include/asm-i386"
        addwrite "${ROOT}usr/src/linux-${KV}/include/asm-x86_64"
        addwrite "${ROOT}usr/src/linux-${KV}/.tmp_versions"
        addwrite "${ROOT}usr/src/linux-${KV}"
        emake DIR_MOD="${ROOT}lib/modules" \
        DIR_MOD_VER="${ROOT}lib/modules/${KV}" \
        DIR_MODUTILS="${ROOT}sbin" \
        KVERS="${KV}" \
        KTYPE="${KV:0:3}" \
        MODSUF="$([[ "${KV:0:3}" == "2.6" ]] && echo "ko" || echo "o")" \
        || die "make failed"
}

src_install() {
        check_KV
        dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TECHNOTES
        dodir /lib/modules/${KV}/thinkpad
        for foo in ${S}/drivers/*.$([[ "${KV:0:3}" == "2.6" ]] && echo "ko" ||
echo "o")
        do
                cp ${foo} ${D}/lib/modules/${KV}/thinkpad || die "Failed to
copy kernel module"
        done

        # Stuff for DevFS
        if [ -d "${ROOT}etc/devfs.d" ]
        then
                dodir /etc/devfs.d
                echo 'REGISTER ^thinkpad/.*$    PERMISSIONS root.thinkpad 
0664' \
                > ${D}/etc/devfs.d/thinkpad || \
                die "Creating ${D}/etc/devfs.d/thinkpad failed"
        fi

        # Stuff for UDEV
        if [ -d "${ROOT}etc/udev" ]
        then
                if ! grep -q "^thinkpad:root:thinkpad:[0-9]\{4\}[\t ]*$"
${ROOT}etc/udev/udev.permissions
                then
                        dodir /etc/udev
                        cat ${ROOT}etc/udev/udev.permissions \
                        > ${D}/etc/udev/udev.permissions
                        echo "thinkpad:root:thinkpad:0664" \
                        >> ${D}/etc/udev/udev.permissions || die
                fi
        fi

        dodir /etc/modules.d
        sed 's/%KV%/'${KV}'/g' ${FILESDIR}/thinkpad >
${D}/etc/modules.d/thinkpad
        doman man/*.4
}

pkg_postinst() {
        /usr/sbin/update-modules || return 0
        if ! grep -q '^ *INCLUDE.*devfs\.d' /etc/devfsd.conf
        then
                ewarn 'Your /etc/devfsd.conf is missing the include for'
                ewarn '/etc/devfs.d/! Please fix this by adding'
                ewarn 'INCLUDE /etc/devfs.d'
                ewarn 'to your /etc/devfs.conf'
        fi
        if grep -q thinkpad /etc/devfsd.conf
        then
                ewarn 'The thinkpad devfsd entry has moved to'
                ewarn '/etc/devfs.d/thinkpad, so you can remove it from'
                ewarn '/etc/devfsd.conf if you like.'
        fi
}

pkg_prerm() {
        for foo in smapi superion rtcmosram thinkpadpm thinkpad
        do
                /sbin/modprobe -r ${foo} 2>/dev/null
        done
}

------- Comment #18 From steveb 2004-06-16 03:19:27 0000 -------
Created an attachment (id=33366) [edit]
thinkpad-5.5.ebuild

------- Comment #19 From Quantumstate 2004-07-06 10:01:19 0000 -------
>>> thinkpad-5.5.ebuild

Thank you Steve.

Wish this would make it into sync.

------- Comment #20 From Lalo Martins 2004-07-12 11:14:57 0000 -------
Bug 51611 seems to be a duplicate of this one.

------- Comment #21 From Lalo Martins 2004-07-12 11:31:03 0000 -------
also, I don't know if a new bug should be opened or it's better to keep all in
this one - but there are new releases of tpctl (4.14) and configure-thinkpad
(0.3) too, that supposedly are meant to work with thinkpad 5.5 and kernel 2.6.

------- Comment #22 From Seemant Kulleen (RETIRED) 2004-07-12 11:35:06 0000 -------

*** This bug has been marked as a duplicate of 51611 ***

------- Comment #23 From Seemant Kulleen (RETIRED) 2004-07-12 11:35:49 0000 -------
oops wrong way

------- Comment #24 From Seemant Kulleen (RETIRED) 2004-07-12 11:36:14 0000 -------
*** Bug 51611 has been marked as a duplicate of this bug. ***

------- Comment #25 From Quantumstate 2004-07-15 14:46:38 0000 -------
Oh no...

# emerge thinkpad
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.5 to /
/usr/sbin/ebuild.sh: line 1: y6#: command not found
>>> md5 src_uri ;-) thinkpad_5.5.tar.gz
/usr/sbin/ebuild.sh: line 1: y6#: command not found

!!! ERROR: app-laptop/thinkpad-5.5 failed.
!!! Function pkg_setup, Line 31, Exitcode 0
!!! Missing /usr/local/portage/app-laptop/thinkpad/files/thinkpad


------- Comment #26 From steveb 2004-07-15 16:08:37 0000 -------
you need to copy some files first!

cp /usr/portage/app-laptop/thinkpad/files/thinkpad /usr/local/portage/app-laptop/thinkpad/files/thinkpad
ebuild /usr/local/portage/app-laptop/thinkpad/thinkpad-5.5.ebuild digest
emerge thinkpad

------- Comment #27 From Quantumstate 2004-07-16 06:32:57 0000 -------
Ah, thanks Steve.

Can you re-open this bug?  It's not a duplicate, and it's certainly not resolved.

Now, on to the failed compile of tpb...

------- Comment #28 From Seemant Kulleen (RETIRED) 2004-07-16 09:04:21 0000 -------
not a dupe

------- Comment #29 From Quantumstate 2004-07-16 10:59:39 0000 -------
Steve, you should know that your aid here caused me to give info on another
issue:
http://forums.gentoo.org/viewtopic.php?p=1350309#1350309

One gives up after a while, when no one helps.

------- Comment #30 From vjacob 2004-07-31 06:41:54 0000 -------
SteveB: Thanks. One thing I'll say is: If your work was available in (emerge)
sync, your work will be more accessable for people.

At the moment there are so many details, for many users it might make more
sense to just install without use of ebuild. Thanks (in advance).

------- Comment #31 From Quantumstate 2004-08-22 09:57:10 0000 -------
thinkpad-5.6 merged successfully with no modification to the above ebuild,
except rename.

------- Comment #32 From Anton Birkel 2004-09-13 15:39:19 0000 -------
Does this not emerge on 2.6.9 rc1 / mm kernels?

I get the following:

emerge thinkpad
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.5 to /
>>> md5 src_uri ;-) thinkpad_5.5.tar.gz
>>> Unpacking source...
>>> Unpacking thinkpad_5.5.tar.gz to /var/tmp/portage/thinkpad-5.5/work
>>> Source unpacked.
make -C 2.6/drivers
make[1]: Entering directory `/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C /lib/modules/2.6.9-rc1-mm4/build SUBDIRS=/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.9-rc1-mm4'
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpad.o  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_core.o
as   -o /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.o /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.s
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.s: Assembler messages:
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi_call.s:50: Warning: indirect lcall without `*'
  LD [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/smapi.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/superio.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/rtcmosram.o
  CC [M]  /var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.o
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c: In function `apm_save_cpus':
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:106: error: incompatible types in initialization
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:108: error: incompatible type for argument 2 of `set_cpus_allowed'
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c: In function `apm_restore_cpus':
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:116: error: incompatible type for argument 2 of `set_cpus_allowed'
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c: In function `apm_bios_call':
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:210: error: subscripted value is neither array nor pointer
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:211: error: subscripted value is neither array nor pointer
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:234: error: subscripted value is neither array nor pointer
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c: In function `apm_bios_call_simple':
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:268: error: subscripted value is neither array nor pointer
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:269: error: subscripted value is neither array nor pointer
/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.c:296: error: subscripted value is neither array nor pointer
make[3]: *** [/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers/thinkpadpm.o] Error 1
make[2]: *** [_module_/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-rc1-mm4'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/tmp/portage/thinkpad-5.5/work/thinkpad-5.5/2.6/drivers'
make: *** [all] Error 2

!!! ERROR: app-laptop/thinkpad-5.5 failed.
!!! Function src_compile, Line 64, Exitcode 2
!!! make failed

------- Comment #33 From Colin Macdonald 2004-09-19 01:20:53 0000 -------
thinkpad 5.7 emerged using above ebuild, seems to work on my A21e.  I also used
the ebuild in Comment #14 to tpctl 4.14 with a few cosmetic changes.  I will
attach it as it was a little annoying to fix all the tabs and whatnot.

Whats holding this stuff back?  Is it the addwrite hacks?

------- Comment #34 From Colin Macdonald 2004-09-19 01:22:00 0000 -------
Created an attachment (id=39891) [edit]
based on comment #14

------- Comment #35 From Colin Macdonald 2004-09-19 01:23:34 0000 -------
The thinkpad-5.5.ebuild should be mime type "text/plain" but I can't change it.

------- Comment #36 From steveb 2004-09-20 02:22:54 0000 -------
Created an attachment (id=40001) [edit]
thinkpad-5.7.ebuild

------- Comment #37 From Peter Fein 2004-09-30 14:17:13 0000 -------
5.7 and 5.5 ebuilds both fail for me with gentoo-dev-2.6.8-r3.  Here's the
output from the 5.7 ebuild (5.5 died similarly):

setup
unpack
>>> Unpacking source...
>>> Unpacking thinkpad_5.7.tar.gz to /var/tmp/portage/thinkpad-5.7/work
>>> Source unpacked.
compile
make -C 2.6/drivers
make[1]: Entering directory
`/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
make -C /lib/modules/2.6.8-gentoo-r3/build
SUBDIRS=/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.8-gentoo-r3'
  CC [M] 
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpad.o
  CC [M] 
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/smapi_core.o
as   -o
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/smapi_call.o
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/smapi_call.s
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/smapi_call.s:
Assembler messages:
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/smapi_call.s:50:
Warning: indirect lcall without `*'
  LD [M]  /var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/smapi.o
  CC [M]  /var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/superio.o
  CC [M] 
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/rtcmosram.o
  CC [M] 
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.o
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.c: In
function `apm_save_cpus':
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.c:106:
error: incompatible types in initialization
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.c:108:
error: incompatible type for argument 2 of `set_cpus_allowed'
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.c: In
function `apm_restore_cpus':
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.c:116:
error: incompatible type for argument 2 of `set_cpus_allowed'
distcc[5137] ERROR: compile
/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.c on
localhost failed
make[3]: ***
[/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers/thinkpadpm.o]
Error 1
make[2]: ***
[_module_/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r3'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/var/tmp/portage/thinkpad-5.7/work/thinkpad-5.7/2.6/drivers'
make: *** [all] Error 2

!!! ERROR: app-laptop/thinkpad-5.7 failed.
!!! Function src_compile, Line 96, Exitcode 2
!!! make failed

------- Comment #38 From Colin Macdonald 2004-09-30 15:44:35 0000 -------
ebuild in Comment #36 works for me with developement-sources 2.6.8.1.

------- Comment #39 From Peter Fein 2004-09-30 22:07:44 0000 -------
I had CONIFG_SMP=y for some unknown reason... not too many multiprocessor
laptops. ;) Builds ok now.

------- Comment #40 From steveb 2004-10-24 17:43:18 0000 -------
Created an attachment (id=42525) [edit]
thinkpad-5.8.ebuild

Version bump to 5.8 (I did not test the ebuild in every possible aspect. Use it
at your own risk.):

thinkpad / # FEATURES="-distcc" MAKEOPTS="-j2" emerge -v thinkpad
--- Invalid atom in /etc/portage/package.keywords: pearpc-cvs
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/thinkpad-5.8 to /
>>> md5 src_uri ;-) thinkpad_5.8.tar.gz
QA Notice: USE Flag 'macos' not in IUSE for app-laptop/thinkpad-5.8
>>> Unpacking source...
>>> Unpacking thinkpad_5.8.tar.gz to /var/tmp/portage/thinkpad-5.8/work
>>> Source unpacked.
make -C 2.6/drivers
make[1]: Entering directory
`/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
make -C /lib/modules/2.6.9-rc4-nitro1/build
SUBDIRS=/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.9-rc4-nitro1'
  CC [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpad.o
In file included from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,

		 from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpad.c:49:
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171:
warning: `packed' attribute ignored
  CC [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi_core.o
In file included from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,

		 from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi_core.c:39:
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171:
warning: `packed' attribute ignored
as   -o
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi_call.o
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi_call.s
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi_call.s:
Assembler messages:
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi_call.s:50:
Warning: indirect lcall without `*'
  LD [M]  /var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi.o
  CC [M]  /var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/superio.o

In file included from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,

		 from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/superio.c:41:
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171:
warning: `packed' attribute ignored
  CC [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/rtcmosram.o
In file included from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,

		 from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/rtcmosram.c:41:
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171:
warning: `packed' attribute ignored
  CC [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.o
In file included from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,

		 from
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c:42:
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171:
warning: `packed' attribute ignored
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c: In
function `apm_bios_call':
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c:208:
warning: implicit declaration of function `get_cpu_ptr'
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c:208:
warning: assignment makes pointer from integerwithout a cast
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c:234:
warning: implicit declaration of function `put_cpu_ptr'
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c: In
function `apm_bios_call_simple':
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.c:264:
warning: assignment makes pointer from integerwithout a cast
  Building modules, stage 2.
  MODPOST
*** Warning: "put_cpu_ptr"
[/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.ko]
undefined!
*** Warning: "get_cpu_ptr"
[/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.ko]
undefined!
  CC	 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/rtcmosram.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/rtcmosram.ko
  CC	 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi.mod.o
  LD [M]  /var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/smapi.ko
  CC	 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/superio.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/superio.ko
  CC	 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpad.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpad.ko
  CC	 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.mod.o
  LD [M] 
/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers/thinkpadpm.ko
make[2]: Leaving directory `/usr/src/linux-2.6.9-rc4-nitro1'
make[1]: Leaving directory
`/var/tmp/portage/thinkpad-5.8/work/thinkpad-5.8/2.6/drivers'
>>> Test phase [not enabled]: app-laptop/thinkpad-5.8

>>> Install thinkpad-5.8 into /var/tmp/portage/thinkpad-5.8/image/ category
app-laptop
man:
prepallstrip:
strip:
>>> Completed installing into /var/tmp/portage/thinkpad-5.8/image/

./
./etc/
./etc/devfs.d/
./etc/devfs.d/thinkpad
./etc/modules.d/
./etc/modules.d/thinkpad
./etc/udev/
./etc/udev/permissions.d/
./etc/udev/permissions.d/.keep
./etc/udev/permissions.d/60thinkpad
./etc/udev/rules.d/
./etc/udev/rules.d/.keep
./etc/udev/rules.d/60thinkpad
./lib/
./lib/modules/
./lib/modules/2.6.9-rc4-nitro1/
./lib/modules/2.6.9-rc4-nitro1/thinkpad/
./lib/modules/2.6.9-rc4-nitro1/thinkpad/rtcmosram.ko
./lib/modules/2.6.9-rc4-nitro1/thinkpad/smapi.ko
./lib/modules/2.6.9-rc4-nitro1/thinkpad/superio.ko
./lib/modules/2.6.9-rc4-nitro1/thinkpad/thinkpad.ko
./lib/modules/2.6.9-rc4-nitro1/thinkpad/thinkpadpm.ko
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/thinkpad-5.8/
./usr/share/doc/thinkpad-5.8/AUTHORS.gz
./usr/share/doc/thinkpad-5.8/COPYING.gz
./usr/share/doc/thinkpad-5.8/ChangeLog.gz
./usr/share/doc/thinkpad-5.8/README.gz
./usr/share/doc/thinkpad-5.8/SUPPORTED-MODELS.gz
./usr/share/doc/thinkpad-5.8/TECHNOTES.gz
./usr/share/man/
./usr/share/man/man4/
./usr/share/man/man4/thinkpad.4.gz
>>> Done.
>>> extracting info
QA Notice: USE Flag 'macos' not in IUSE for app-laptop/thinkpad-5.8
>>> extracting thinkpad-5.8
>>> Merging app-laptop/thinkpad-5.8 to /
--- /etc/
--- /etc/devfs.d/
>>> /etc/devfs.d/thinkpad
--- /etc/modules.d/
>>> /etc/modules.d/._cfg0000_thinkpad
--- /etc/udev/
--- /etc/udev/permissions.d/
>>> /etc/udev/permissions.d/.keep
>>> /etc/udev/permissions.d/60thinkpad
--- /etc/udev/rules.d/
>>> /etc/udev/rules.d/.keep
>>> /etc/udev/rules.d/60thinkpad
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.9-rc4-nitro1/
--- /lib/modules/2.6.9-rc4-nitro1/thinkpad/
>>> /lib/modules/2.6.9-rc4-nitro1/thinkpad/rtcmosram.ko
>>> /lib/modules/2.6.9-rc4-nitro1/thinkpad/smapi.ko
>>> /lib/modules/2.6.9-rc4-nitro1/thinkpad/superio.ko
>>> /lib/modules/2.6.9-rc4-nitro1/thinkpad/thinkpad.ko
>>> /lib/modules/2.6.9-rc4-nitro1/thinkpad/thinkpadpm.ko
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/thinkpad-5.8/
>>> /usr/share/doc/thinkpad-5.8/AUTHORS.gz
>>> /usr/share/doc/thinkpad-5.8/COPYING.gz
>>> /usr/share/doc/thinkpad-5.8/ChangeLog.gz
>>> /usr/share/doc/thinkpad-5.8/README.gz
>>> /usr/share/doc/thinkpad-5.8/SUPPORTED-MODELS.gz
>>> /usr/share/doc/thinkpad-5.8/TECHNOTES.gz
--- /usr/share/man/
--- /usr/share/man/man4/
>>> /usr/share/man/man4/thinkpad.4.gz
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> app-laptop/thinkpad-5.8 merged.

 app-laptop/thinkpad
    selected: 5.7
   protected: 5.8
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging app-laptop/thinkpad-5.7...
No package files given... Grabbing a set.

QA Notice: ECLASS 'eutils' inherited illegally in app-laptop/thinkpad-5.7

--- !mtime obj /usr/share/man/man4/thinkpad.4.gz
<<<	   obj /usr/share/doc/thinkpad-5.7/TECHNOTES.gz
<<<	   obj /usr/share/doc/thinkpad-5.7/SUPPORTED-MODELS.gz
<<<	   obj /usr/share/doc/thinkpad-5.7/README.gz
<<<	   obj /usr/share/doc/thinkpad-5.7/ChangeLog.gz
<<<	   obj /usr/share/doc/thinkpad-5.7/COPYING.gz
<<<	   obj /usr/share/doc/thinkpad-5.7/AUTHORS.gz
--- cfgpro obj /lib/modules/2.6.9-rc4-nitro1/thinkpad/thinkpadpm.ko
--- cfgpro obj /lib/modules/2.6.9-rc4-nitro1/thinkpad/thinkpad.ko
--- cfgpro obj /lib/modules/2.6.9-rc4-nitro1/thinkpad/superio.ko
--- cfgpro obj /lib/modules/2.6.9-rc4-nitro1/thinkpad/smapi.ko
--- cfgpro obj /lib/modules/2.6.9-rc4-nitro1/thinkpad/rtcmosram.ko
--- cfgpro dir /lib/modules/2.6.9-rc4-nitro1/thinkpad
--- cfgpro dir /lib/modules/2.6.9-rc4-nitro1
--- cfgpro obj /etc/udev/rules.d/60thinkpad
--- cfgpro obj /etc/udev/rules.d/.keep
--- cfgpro dir /etc/udev/rules.d
--- cfgpro obj /etc/udev/permissions.d/60thinkpad
--- cfgpro obj /etc/udev/permissions.d/.keep
--- cfgpro dir /etc/udev/permissions.d
--- cfgpro dir /etc/udev
--- cfgpro obj /etc/modules.d/thinkpad
--- cfgpro dir /etc/modules.d
--- cfgpro obj /etc/devfs.d/thinkpad
--- cfgpro dir /etc/devfs.d
<<<	   dir /usr/share/doc/thinkpad-5.7
--- !empty dir /usr/share/man/man4
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 14 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.

thinkpad / # 

------- Comment #41 From Malte S. Stretz 2004-12-01 06:38:14 0000 -------
*** Bug 65088 has been marked as a duplicate of this bug. ***

------- Comment #42 From Henrik Brix Andersen 2005-01-08 13:42:30 0000 -------
Fixed InCVS.

------- Comment #43 From Daniel Brandt 2005-01-27 12:15:38 0000 -------
5.8 will not build without installing gentoo-sources-2.4.28-r5. I can't track
down where this dependancy is coming from though, it's not mentioned in
thinkpad-5.8.ebuild at least.

I don't have a kernel installed from portage, which is brobably the root of
this problem, but putting one in /etc/portage/package.provided didn't help..

Temporary solution for me was to use emerge -O.

------- Comment #44 From Daniel Brandt 2005-01-27 12:17:46 0000 -------
I should probably mention I'm using a 2.6 kernel.
% uname -a
Linux locust 2.6.9-cko2 #1 Fri Oct 29 10:51:23 CEST 2004 i686 Mobile Pentium II GenuineIntel GNU/Linux

First Last Prev Next    No search results available      Search page      Enter new bug