You are not logged in.

#1 2011-07-11 14:23:41

dir2cas
Member
From: Sofia, Bulgaria
Registered: 2010-11-21
Posts: 13

[SOLVED] tp_smapi fails after system update (to 2.6.39)

I am currently running Arch Linux on my ThinkPad X41.

I am having troubles trying to get tp_smapi work on my system after the full system update that I did yesterday. I jumped from (12.2010) 2.6.36 to kernel 2.6.39. Since yesterday, tp_smapi was working perfectly, but after the update, it seems that the new kernel cannot recognize the tp_smapi module. I tried to remove and insert it again with modprobe tp_smapi, but I am getting: "FATAL: Module tp_smapi not found" every time.

As I have build tp_smapi from AUR, I removed it with pacman -Rd tp_smapi and installed my package again. Even removed hdapsd and reinstalled it again after tp_smapi and I am getting the same - the module could not be found.

I saw that there is a slightly newer tp_smapi in AUR, but currently I am not able to build the package, as I am getting some build() errors like: "gcc: error -pg and -fomit-frame-pointer are incompatible."
This PKGBUILD seems a patch for 2.6.37 kernel and probably could not build directly under the new kernel. Anyway, I am still not able to bring the good old tp_smapi to working condition.

Anyone with a working solution about this?

edit: I have posted this in another thread, but hope this should be useful in a separate topic.

Last edited by dir2cas (2011-07-14 08:35:18)

Offline

#2 2011-07-11 16:31:46

HoboJ
Member
Registered: 2010-04-04
Posts: 28

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

Everytime I have done a kernel update I have always had to recompile tp_smapi for the newer kernel. Without this it doesn't work for me. So try downloading the newer aur package (if there is one) and rebuilding and installing it.

Offline

#3 2011-07-12 07:05:06

dir2cas
Member
From: Sofia, Bulgaria
Registered: 2010-11-21
Posts: 13

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

HoboJ wrote:

Everytime I have done a kernel update I have always had to recompile tp_smapi for the newer kernel. Without this it doesn't work for me. So try downloading the newer aur package (if there is one) and rebuilding and installing it.

Well, I agree that the module shuld be rebuit. However, as I said in the first post, I cannot build the latest tp_smapi PKGBUILD from AUR.
Here is the log:

[dir2cas@X41 abs]> tar xvzf tp_smapi.tar.gz 
tp_smapi/
tp_smapi/fix_hdaps_orientation.patch
tp_smapi/PKGBUILD
tp_smapi/tp_smapi.install
tp_smapi/fix_for_2.6.37.patch
tp_smapi/tp_smapi.patch
[dir2cas@X41 abs]> cd tp_smapi/
[dir2cas@X41 tp_smapi]> ll
total 32K
drwxr-xr-x 2 dir2cas users   40 Apr 10 14:34 ./
drwxr-xr-x 3 dir2cas users 4.0K Jul 12 09:58 ../
-rw-r--r-- 1 dir2cas users 2.0K Apr 10 14:16 PKGBUILD
-rw-r--r-- 1 dir2cas users 1.1K Jan  7  2011 fix_for_2.6.37.patch
-rw-r--r-- 1 dir2cas users  535 Apr 10 14:16 fix_hdaps_orientation.patch
-rw-r--r-- 1 dir2cas users  124 Apr 10 14:17 tp_smapi.install
-rw-r--r-- 1 dir2cas users  678 Jan  1  1970 tp_smapi.patch
[dir2cas@X41 tp_smapi]> 
[dir2cas@X41 tp_smapi]> 
[dir2cas@X41 tp_smapi]> pwd
/home/dir2cas/devel/abs/tp_smapi
[dir2cas@X41 tp_smapi]> makepkg -s
==> Making package: tp_smapi 0.40-5 (Tue Jul 12 09:58:43 EEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading tp_smapi-0.40.tgz...
--2011-07-12 09:58:43--  http://downloads.sourceforge.net/sourceforge/tpctl/tp_smapi-0.40.tgz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
--2011-07-12 09:58:43--  http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://ovh.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
--2011-07-12 09:58:43--  http://ovh.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
Resolving ovh.dl.sourceforge.net... 91.121.124.23, 91.121.125.23
Connecting to ovh.dl.sourceforge.net|91.121.124.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39002 (38K) [application/x-gzip]
Saving to: `tp_smapi-0.40.tgz.part'

100%[=====================================================>] 39,002      --.-K/s   in 0.1s    

2011-07-12 09:58:44 (296 KB/s) - `tp_smapi-0.40.tgz.part' saved [39002/39002]

  -> Found fix_for_2.6.37.patch
  -> Found fix_hdaps_orientation.patch
  -> Found tp_smapi.patch
==> Validating source files with md5sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
==> Validating source files with sha256sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
==> Extracting Sources...
  -> Extracting tp_smapi-0.40.tgz with bsdtar
==> Starting build()...
patching file Makefile
patching file thinkpad_ec.c
patching file tp_smapi.c
patching file hdaps.c
make -C /lib/modules/2.6.39-ARCH/build M=/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40 O=/lib/modules/2.6.39-ARCH/build modules
make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
  CC [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.o
gcc: error: -pg and -fomit-frame-pointer are incompatible
make[3]: *** [/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.o] Error 1
make[2]: *** [_module_/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
make: *** [modules] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
[dir2cas@X41 tp_smapi]> 

Generaly, it seems that this pkgbuild applies to kernel 2.6.37, I do not know how to adapt it to the latest.
Any ideas?

Offline

#4 2011-07-12 16:45:44

whompus
Member
From: Durham. UK
Registered: 2005-08-09
Posts: 256

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

I've just tried making this package with no problems, is your tp_smapi.install file correct?

kernver=2.6.39-ARCH

post_install() {
    depmod $kernver
}

post_upgrade() {
    post_install
}

post_remove() {
    post_install
}

Offline

#5 2011-07-12 17:03:32

dir2cas
Member
From: Sofia, Bulgaria
Registered: 2010-11-21
Posts: 13

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

Hi, thanks for the remark. In fact, tp_smapi.install was not fixed for kernver=2.6.39-ARCH, but was  set to: kernver=2.6.38-ARCH (I am a kind if idiot, probably). Well, I did change the file to correspond to the current kernel.

Anyway, I am still getting the same error, Here is the output:

[dir2cas@X41 tp_smapi]> cat tp_smapi.install 
kernver=2.6.39-ARCH

post_install() {
    depmod $kernver
}

post_upgrade() {
    post_install
}

post_remove() {
    post_install
}
[dir2cas@X41 tp_smapi]> makepkg -s
==> Making package: tp_smapi 0.40-5 (Tue Jul 12 19:57:59 EEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading tp_smapi-0.40.tgz...
--2011-07-12 19:57:59--  http://downloads.sourceforge.net/sourceforge/tpctl/tp_smapi-0.40.tgz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
--2011-07-12 19:58:00--  http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://heanet.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
--2011-07-12 19:58:00--  http://heanet.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
Resolving heanet.dl.sourceforge.net... 193.1.193.66, 2001:770:18:aa40::c101:c142
Connecting to heanet.dl.sourceforge.net|193.1.193.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39002 (38K) [application/x-tar]
Saving to: `tp_smapi-0.40.tgz.part'

100%[=======================================================>] 39,002       205K/s   in 0.2s    

2011-07-12 19:58:01 (205 KB/s) - `tp_smapi-0.40.tgz.part' saved [39002/39002]

  -> Found fix_for_2.6.37.patch
  -> Found fix_hdaps_orientation.patch
  -> Found tp_smapi.patch
==> Validating source files with md5sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
==> Validating source files with sha256sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
==> Extracting Sources...
  -> Extracting tp_smapi-0.40.tgz with bsdtar
==> Starting build()...
patching file Makefile
patching file thinkpad_ec.c
patching file tp_smapi.c
patching file hdaps.c
make -C /lib/modules/2.6.39-ARCH/build M=/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40 O=/lib/modules/2.6.39-ARCH/build modules
make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
  CC [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.o
gcc: error: -pg and -fomit-frame-pointer are incompatible
make[3]: *** [/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.o] Error 1
make[2]: *** [_module_/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
make: *** [modules] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Strange... Probably we should remove the 2.6.37 patch, as it may not be needed anymore.
Just to add that hdaps was stopped and the module removed, before running the makepkg process.

Last edited by dir2cas (2011-07-12 17:09:28)

Offline

#6 2011-07-12 17:27:53

whompus
Member
From: Durham. UK
Registered: 2005-08-09
Posts: 256

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

I have no programming experience but that appears to be a gcc problem "gcc: error: -pg and -fomit-frame-pointer are incompatible"

What settings do you have in /etc/makepkg.conf and are they correct for your computer

Offline

#7 2011-07-13 20:16:02

dir2cas
Member
From: Sofia, Bulgaria
Registered: 2010-11-21
Posts: 13

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

whompus wrote:

I have no programming experience but that appears to be a gcc problem "gcc: error: -pg and -fomit-frame-pointer are incompatible"

What settings do you have in /etc/makepkg.conf and are they correct for your computer

Hi,
My /etc/makepkg.conf is altered to to include my CPU architecture - according to the information in the Wiki. Since I am running on ThinkPad X41, it is using Pentuim M (Dotham 758) 1.5GHz CPU.
Here is the configuration, I've not changed any of the other parameters.

[dir2cas@X41 ~]> cat /etc/makepkg.conf 
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
#-- Exclusive: will only run on i686
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
#
# Default i686 architecture flags
# CARCH="i686"
# CHOST="i686-pc-linux-gnu"
# CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
# CXXFLAGS="${CFLAGS}"
#
# Athlon XP/Thunderbird XP/Duron Palomino/Duron architecture flags 
# CARCH="i686"
# CHOST="i686-pc-linux-gnu"
# CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
# CXXFLAGS="${CFLAGS}"
#
# Pentium M Dothan/Celeron M architecture flags
CARCH="i686"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
#
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs:      Save doc directories specified by DOC_DIRS
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:     Remove files specified by PURGE_TARGETS
#
OPTIONS=(strip docs libtool emptydirs zipman purge)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:
[dir2cas@X41 ~]> 

Hmm, I think that if this was wrong I should not be able to build any other packages, but this is the only one that currently fails.

Offline

#8 2011-07-13 20:42:33

whompus
Member
From: Durham. UK
Registered: 2005-08-09
Posts: 256

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

Have you tried setting the ARCHITECTURE, COMPILE FLAGS to default just to see what happens? Like I said this is getting beyond my limited knowledge, the good problem of archlinux for me is once it's setup I tend to forget how to repair things as I gave up breaking things years ago.

Offline

#9 2011-07-13 22:06:11

dir2cas
Member
From: Sofia, Bulgaria
Registered: 2010-11-21
Posts: 13

Re: [SOLVED] tp_smapi fails after system update (to 2.6.39)

Hey, SUCCESS out here...
@whompus, thanks so much for the precious advices and clues.

First, I looked into this thread (very useful as well): https://bbs.archlinux.org/viewtopic.php?id=80138
Following it, I found out a new gcc CFLAG argument, primary used in newer gcc versions (after gcc v4.2)

-march=native

According to the information, given it should automatically detects the features your CPU supports and sets the options appropriately.
Setting my /etc/makepkg.conf accordingly, and adding some other useful options, my tp_smapi package build succeded. smile

My new /etc/makepkg.conf

[dir2cas@X41 ~]> cat /etc/makepkg.conf 
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
#-- Exclusive: will only run on i686
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
#
# Default i686 architecture flags
# CARCH="i686"
# CHOST="i686-pc-linux-gnu"
# CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
# CXXFLAGS="${CFLAGS}"
#
# Athlon XP/Thunderbird XP/Duron Palomino/Duron architecture flags 
# CARCH="i686"
# CHOST="i686-pc-linux-gnu"
# CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
# CXXFLAGS="${CFLAGS}"
#
# Pentium M Dothan/Celeron M architecture flags
CARCH="i686"
CHOST="i686-pc-linux-gnu"
#CFLAGS="-march=pentium-m -O2 -pipe -msse2 -fomit-frame-pointer"
CFLAGS="-march=native -O2 -pipe -msse2 -mtune=native"
CXXFLAGS="${CFLAGS}"
#
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs:      Save doc directories specified by DOC_DIRS
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:     Remove files specified by PURGE_TARGETS
#
OPTIONS=(strip docs libtool emptydirs zipman purge)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:

tp_smapi package build

[dir2cas@X41 abs]> tar xzvf tp_smapi.tar.gz 
tp_smapi/
tp_smapi/fix_hdaps_orientation.patch
tp_smapi/PKGBUILD
tp_smapi/tp_smapi.install
tp_smapi/fix_for_2.6.37.patch
tp_smapi/tp_smapi.patch
[dir2cas@X41 abs]> 
[dir2cas@X41 abs]> 
[dir2cas@X41 abs]> 
[dir2cas@X41 abs]> cd tp_smapi/
[dir2cas@X41 tp_smapi]> ll
total 32K
drwxr-xr-x 2 dir2cas users   40 Apr 10 14:34 ./
drwxr-xr-x 3 dir2cas users 4.0K Jul 14 00:52 ../
-rw-r--r-- 1 dir2cas users 2.0K Apr 10 14:16 PKGBUILD
-rw-r--r-- 1 dir2cas users 1.1K Jan  7  2011 fix_for_2.6.37.patch
-rw-r--r-- 1 dir2cas users  535 Apr 10 14:16 fix_hdaps_orientation.patch
-rw-r--r-- 1 dir2cas users  124 Apr 10 14:17 tp_smapi.install
-rw-r--r-- 1 dir2cas users  678 Jan  1  1970 tp_smapi.patch
[dir2cas@X41 tp_smapi]> 
[dir2cas@X41 tp_smapi]> 
[dir2cas@X41 tp_smapi]> 
[dir2cas@X41 tp_smapi]> makepkg -s
==> Making package: tp_smapi 0.40-5 (Thu Jul 14 00:52:29 EEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading tp_smapi-0.40.tgz...
--2011-07-14 00:52:30--  http://downloads.sourceforge.net/sourceforge/tpctl/tp_smapi-0.40.tgz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
--2011-07-14 00:52:31--  http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://sunet.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
--2011-07-14 00:52:31--  http://sunet.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
Resolving sunet.dl.sourceforge.net... 194.71.11.73
Connecting to sunet.dl.sourceforge.net|194.71.11.73|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39002 (38K) [application/x-gzip]
Saving to: `tp_smapi-0.40.tgz.part'

100%[===================================================================>] 39,002       201K/s   in 0.2s    

2011-07-14 00:52:32 (201 KB/s) - `tp_smapi-0.40.tgz.part' saved [39002/39002]

  -> Found fix_for_2.6.37.patch
  -> Found fix_hdaps_orientation.patch
  -> Found tp_smapi.patch
==> Validating source files with md5sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
==> Validating source files with sha256sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
==> Extracting Sources...
  -> Extracting tp_smapi-0.40.tgz with bsdtar
==> Starting build()...
patching file Makefile
patching file thinkpad_ec.c
patching file tp_smapi.c
patching file hdaps.c
make -C /lib/modules/2.6.39-ARCH/build M=/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40 O=/lib/modules/2.6.39-ARCH/build modules
make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
  CC [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.o
/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.c: In function 'check_dmi_for_ec':
/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.c:468:1: warning: the frame size of 1328 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  CC [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.o
  CC [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.o
  Building modules, stage 2.
  MODPOST 3 modules
  CC      /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.mod.o
  LD [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.ko
  CC      /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.mod.o
  LD [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.ko
  CC      /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.mod.o
  LD [M]  /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.ko
make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
==> Entering fakeroot environment...
==> Starting package()...
make: Entering directory `/usr/src/linux-2.6.39-ARCH'
  INSTALL /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.ko
  INSTALL /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.ko
  INSTALL /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.ko
  DEPMOD  2.6.39-ARCH
make: Leaving directory `/usr/src/linux-2.6.39-ARCH'
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: tp_smapi 0.40-5 (Thu Jul 14 00:52:37 EEST 2011)
[dir2cas@X41 tp_smapi]> ll
total 100K
drwxr-xr-x 4 dir2cas users   88 Jul 14 00:52 ./
drwxr-xr-x 3 dir2cas users 4.0K Jul 14 00:52 ../
-rw-r--r-- 1 dir2cas users 2.0K Apr 10 14:16 PKGBUILD
-rw-r--r-- 1 dir2cas users 1.1K Jan  7  2011 fix_for_2.6.37.patch
-rw-r--r-- 1 dir2cas users  535 Apr 10 14:16 fix_hdaps_orientation.patch
drwxr-xr-x 3 dir2cas users   24 Jul 14 00:52 pkg/
drwxr-xr-x 3 dir2cas users   40 Jul 14 00:52 src/
-rw-r--r-- 1 dir2cas users  22K Jul 14 00:52 tp_smapi-0.40-5-i686.pkg.tar.gz
-rw-r--r-- 1 dir2cas users  39K Dec 16  2008 tp_smapi-0.40.tgz
-rw-r--r-- 1 dir2cas users  124 Jul 14 00:52 tp_smapi.install
-rw-r--r-- 1 dir2cas users  678 Jan  1  1970 tp_smapi.patch

Thanks alot!

Last edited by dir2cas (2011-07-13 22:06:58)

Offline

Board footer

Powered by FluxBB