Versionpkg: a makepkg wrapper for building CVS/SVN pkgs
I thought I had posted about this before! But I guess not...
I had the idea for versionpkg while creating the Arch CVS/SVN PKGBUILD guidelines on the wiki.
versionpkg is a very simple script that allows you to easily update your CVS and SVN packages without having to edit the PKGBUILDS manually to enter the date or revision number.
Simply run this script rather than makepkg in the build dir. This script completely removes the need for backtick execution in PKGBUILDS.
You do need some special variables in your PKGBUILD but if everyone follows the guidelines when submitting to the AUR everyone can use versionpkg to stay up to date.
You can get versionpkg from [community] simply by running pacman -S versionpkg
OK - but if I do that, the recommended checkout command i.e.
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
equates to
svn co svn://svn.shaftnet.org/linux-wlan-ng/ --config-dir ./ -r 1756 trunk
which checks out not only trunk, but also branches and tags - in other words, multiple versions of the source code, instead of just one. I'm running it at the moment and it's gone back as far v0.1.16 - current is v0.2.2.
So I think I'll leave it as it is........
Similar Messages
-
How would I do nightly, automated builds using cvs, svn and XCode
Here's what I'm trying to do.
We have source code repositories. Some are svn, the rest are cvs.
What I'd like to do is, each night, do cvs/svn updates, and then open those projects in XCode, and build the projects. Secondarily, I'd like to have build errors written to a file (or e-mailed, or something).
The build-error part isn't as important. But knowing that new changes have been submitted to cvs / svn, so we'd only build when something changed, would be useful.
I am not an Automator expert, but it seems like this might serve that purpose. If there is another way to do that, I'd be happy to find out.
Thanks for any help you could provide.
-Dan.Change to the project directory and run xcodebuild to build the project. It should be fairly easy to create a shell script that does the updates from revision control and build.
-
Revision: 12087
Revision: 12087
Author: [email protected]
Date: 2009-11-21 20:56:09 -0800 (Sat, 21 Nov 2009)
Log Message:
Dev only. Checking in Flash Builder 4 "Library Projects" for building Flex SDK SWCs in trunk. These projects are easier to import and do not require linked resource variables to be specified.
Note: although the trunk does not build textLayout.swc, there appears to be a legitimate compiler error in FlowGroupElement.as as a cast is missing. I'll follow up with TLF.
QE notes: N/A
Doc notes: N/A
Bugs: N/A
Reviewer: N/A
Tests run: N/A
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/build.xml
Added Paths:
flex/sdk/trunk/frameworks/projects/airframework/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/airframework/.flexLibProperties
flex/sdk/trunk/frameworks/projects/airframework/.project
flex/sdk/trunk/frameworks/projects/airframework/.settings/
flex/sdk/trunk/frameworks/projects/airframework/.settings/org.eclipse.core.resources.pref s
flex/sdk/trunk/frameworks/projects/airspark/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/airspark/.flexLibProperties
flex/sdk/trunk/frameworks/projects/airspark/.project
flex/sdk/trunk/frameworks/projects/airspark/.settings/
flex/sdk/trunk/frameworks/projects/airspark/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/flex/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/flex/.flexLibProperties
flex/sdk/trunk/frameworks/projects/flex/.project
flex/sdk/trunk/frameworks/projects/flex/.settings/
flex/sdk/trunk/frameworks/projects/flex/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/framework/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/framework/.flexLibProperties
flex/sdk/trunk/frameworks/projects/framework/.project
flex/sdk/trunk/frameworks/projects/framework/.settings/
flex/sdk/trunk/frameworks/projects/framework/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/halo/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/halo/.flexLibProperties
flex/sdk/trunk/frameworks/projects/halo/.project
flex/sdk/trunk/frameworks/projects/halo/.settings/
flex/sdk/trunk/frameworks/projects/halo/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/osmf/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/osmf/.flexLibProperties
flex/sdk/trunk/frameworks/projects/osmf/.project
flex/sdk/trunk/frameworks/projects/osmf/.settings/
flex/sdk/trunk/frameworks/projects/osmf/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/rpc/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/rpc/.flexLibProperties
flex/sdk/trunk/frameworks/projects/rpc/.project
flex/sdk/trunk/frameworks/projects/rpc/.settings/
flex/sdk/trunk/frameworks/projects/rpc/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/spark/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/spark/.flexLibProperties
flex/sdk/trunk/frameworks/projects/spark/.project
flex/sdk/trunk/frameworks/projects/spark/.settings/
flex/sdk/trunk/frameworks/projects/spark/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/sparkskins/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/sparkskins/.flexLibProperties
flex/sdk/trunk/frameworks/projects/sparkskins/.project
flex/sdk/trunk/frameworks/projects/sparkskins/.settings/
flex/sdk/trunk/frameworks/projects/sparkskins/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/textLayout/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/textLayout/.flexLibProperties
flex/sdk/trunk/frameworks/projects/textLayout/.project
flex/sdk/trunk/frameworks/projects/textLayout/.settings/
flex/sdk/trunk/frameworks/projects/textLayout/.settings/org.eclipse.core.resources.prefs
flex/sdk/trunk/frameworks/projects/wireframe/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/wireframe/.flexLibProperties
flex/sdk/trunk/frameworks/projects/wireframe/.project
flex/sdk/trunk/frameworks/projects/wireframe/.settings/
flex/sdk/trunk/frameworks/projects/wireframe/.settings/org.eclipse.core.resources.prefsStatus Update - don't know if this is a bug, design flaw, install problem or my misunderstanding.
I got it to work by first changing my Flex library to 4.5.0 - still didn't work with current
app and update mxml files using "2.6" for their namespace versions. But I did at least
get the popup error number 16815 - indicating an error in the update version namespace.
By leaving my application namespace version at "2.6" and changing the update version to "2.5" ... bingo!
I got my new update installed autiomatically.
Is this how it's supposed to work - or are my runtimes mixed up?
Will this work the same using the Flex 4.5.1 SDK? I'll find out shortly
Hope this helps others. -
Revision: 2788
Author: [email protected]
Date: 2008-08-08 10:47:32 -0700 (Fri, 08 Aug 2008)
Log Message:
fix asc commandline tests, use wildcards for build number is usage baselines
Modified Paths:
flex/sdk/trunk/modules/asc/test/compiler/cmdline/avmtarget.err
flex/sdk/trunk/modules/asc/test/compiler/cmdline/avmtargetn.err
flex/sdk/trunk/modules/asc/test/compiler/cmdline/config.err
flex/sdk/trunk/modules/asc/test/compiler/cmdline/help1.err
flex/sdk/trunk/modules/asc/test/compiler/cmdline/help2.err[mi] EQ overflowing. The server is probably stuck in an infinite loop.
Seems a little suspicious, though its kind of a generic error message. Lots and lots of google hits on that one.
Are you sure none of the libs or executables for xorg-* got damaged before the system called for an fsck? The power went out on me once and my hard drive "forgot" about 75% of my kernel modules, although it was a conventional hard drive and not an SSD.
try re-installing some packages:
pacman -S xorg xf86-video-ati ati-dri libgl
(any more anyone can think of?)
[edit]
Is your copy of that bootchart that blurry or is flicker messing with it? It looks like its been resized even at largest setting. I can hardly read it.
Last edited by wriggary (2010-01-29 04:43:02) -
Hello. Please, help me to build sim-svn package from aur. I'm a bit confused
Checked out revision 2975.
make: admin/Makefile.common: No such file or directory
make: *** No rule to make target `admin/Makefile.common'. Stop.
==> SVN checkout done or server timeout
==> Starting make...
/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/./PKGBUILD: line 38: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build sim-svn package.It is ok! I go into sim-0.9.5-svn20080806-dfsg.tar.bz2\admin\cvs.sh and comment all lines than checks package version:
#check_autotool_versions()
#required_autoconf_version="2.53 or newer"
#AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
#case $AUTOCONF_VERSION in
# Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
# echo "*** AUTOCONF NOT FOUND!."
# echo "*** SIM requires autoconf $required_autoconf_version"
# exit 1
# echo "*** YOU'RE USING $AUTOCONF_VERSION."
# echo "*** SIM requires autoconf $required_autoconf_version"
# exit 1
#esac
#AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1`
#case $AUTOHEADER_VERSION in
# Autoconf*2.5* | autoheader*2.5* | autoheader*2.6* ) : ;;
# echo "*** AUTOHEADER NOT FOUND!."
# echo "*** SIM requires autoheader $required_autoconf_version"
# exit 1
# echo "*** YOU'RE USING $AUTOHEADER_VERSION."
# echo "*** SIM requires autoheader $required_autoconf_version"
# exit 1
#esac
#AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
#required_automake_version="1.6.1 or newer"
#case $AUTOMAKE_STRING in
# automake*1.5d* | automake*1.5* | automake*1.5-* )
# echo "*** YOU'RE USING $AUTOMAKE_STRING."
# echo "*** SIM requires automake $required_automake_version"
# exit 1
# automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10*)
# echo "*** $AUTOMAKE_STRING found."
# UNSERMAKE=no
# echo "*** AUTOMAKE NOT FOUND!."
# echo "*** SIM requires automake $required_automake_version"
# exit 1
# *unsermake* ) :
# echo "*** YOU'RE USING UNSERMAKE."
# echo "*** GOOD LUCK!! "
# UNSERMAKE=unsermake
# echo "*** YOU'RE USING $AUTOMAKE_STRING."
# echo "*** SIM requires automake $required_automake_version"
# exit 1
#esac
#unset required_automake_version
#check_autotool_versions
Now my PKGBUILD seems like this (I changed only md5sums):
# Contributer: noMaster <[email protected]>
pkgname=sim
pkgver=0.9.5
pkgrel=1
pkgdesc="sim instant messanger"
url="http://sim-im.berlios.de"
license="gpl"
depends=(libxml2 openssl kdelibs zip qt libxslt glibc)
source=(http://download.berlios.de/sim-im/sim-0.9.5-svn20080806-dfsg.tar.bz2)
md5sums=(f03ff5c148c334382789e11041c46dc8)
build() {
cd $startdir/src/$pkgname-$pkgver-svn20080806-dfsg
make -f admin/Makefile.common
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
And there is other error!!!:
==> Install or build missing dependencies for sim-svn:
==> Building and installing package
==> WARNING: the arch variable is missing !
yaourt will add arch=(i686) automatically.
==> sim-svn dependencies:
- libxml2 (already installed)
- openssl (already installed)
- kdelibs (already installed)
- zip (already installed)
- qt (already installed)
- libxslt (already installed)
- glibc (already installed)
==> Making package: sim 0.9.5-1 i686 (Sun Mar 14 18:40:30 NOVT 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found sim-0.9.5-svn20080806-dfsg.tar.bz2 in build dir
==> Validating source files with md5sums...
sim-0.9.5-svn20080806-dfsg.tar.bz2 ... Passed
==> Extracting Sources...
-> Extracting sim-0.9.5-svn20080806-dfsg.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
*** Creating acinclude.m4
make[1]: Entering directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
make[1]: Leaving directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
*** Creating list of subdirectories
make[1]: Entering directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
cd . && make -f admin/Makefile.common subdirs
make[2]: Entering directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
make[2]: Leaving directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
make[1]: Leaving directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
*** Creating configure.files
*** Creating configure.in
make[1]: Entering directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
cd . && make -f admin/Makefile.common configure.in ;
make[2]: Entering directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
make[2]: Leaving directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
make[1]: Leaving directory `/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/src/sim-0.9.5-svn20080806-dfsg'
*** Creating aclocal.m4
*** Creating configure
Can't open configure: No such file or directory.
*** Creating config.h template
*** Creating Makefile templates
*** Creating date/time stamp
*** Finished
Don't forget to run ./configure
If you haven't done so in a while, run ./configure --help
/tmp/yaourt-tmp-ku/aur-sim-svn/sim-svn/./PKGBUILD: line 18: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build sim-svn package. -
[Solved] Unable to build lensfun-svn
Hi there! I'm trying to build lensfun-svn from the AUR, but it fails.
Error:
Checking for GNU Make >= 3.81 ...4.0 < 3.81, FAILED
GNU Make version 3.81 and above is required to build this project
This is the PKGBUILD I'm using:
pkgname=lensfun-svn
_svnmod=lensfun
pkgver=326
pkgrel=1
pkgdesc="Database of photographic lenses and a library that allows advanced access to the database"
arch=('i686' 'x86_64')
url="http://lensfun.berlios.de/"
license=('LGPL3')
depends=('glibc' 'glib2')
makedepends=('python2' 'libpng' 'svn')
provides=('lensfun')
conflicts=('lensfun')
source=(${_svnmod}::svn://svn.berlios.de/lensfun/trunk)
md5sums=(SKIP)
pkgver() {
cd $SRCDEST/$_svnmod
svnversion | tr -d [A-z]
build() {
cd $_svnmod
./configure --prefix=/usr --libdir=/usr/lib
make all
package() {
cd $_svnmod
make INSTALL_PREFIX="$pkgdir/" install
What's wrong here? Make is installed.
Last edited by Thorsten Reinbold (2013-11-23 21:22:43)karol wrote:
I can't it to work at all:
$ makepkg -si
==> Making package: lensfun-svn 326-1 (Sat Nov 23 21:52:27 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating lensfun svn repo...
Skipped '.'
Summary of conflicts:
Skipped paths: 1
==> Validating source files with md5sums...
lensfun ... Skipped
==> Extracting sources...
-> Creating working copy of trunk svn repo...
==> Starting pkgver()...
==> Updated version: lensfun-svn -1
==> ERROR: pkgver is not allowed to be empty.
Have you tried updating the lensfun PKGBUILD from the repos?
Sorry, you've done something wrong there. I guesss you have used the PKGBUILD from the AUR? You have to fill out the Versionnumber by hand before you can build it. Or take my PKGBUILD from above.
Last edited by Thorsten Reinbold (2013-11-23 21:00:13) -
Makepkg refuses to build due to depends array [solved]
Makepkg refuses to build a package based on the contents of the depends array. My understanding is that the contents of the makedepends array are needed to build, but the contents of the depends array are needed to run the software.
Example, I want to build nvidia drivers for a kernel which I do not have installed. I do have that specific kernel headers extracted (via a wrapper script) to $startdir/tar/lib/modules/${_kernver}/build
I get the following error when I try to build:
$ makepkg -s
==> Making package: nvidia-lts-ck 260.19.36-2 (Sun Jan 30 15:41:20 EST 2011)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
error: 'kernel26-lts-ck>=2.6.32': could not find or read package
==> ERROR: 'pacman' failed to install missing dependencies.
But if I comment out the depends array, it builds just fine. What am I missed?
PKGBUILD:
# Maintainer: graysky <graysky AT archlinux DOT us>
# Contributer: Eric Belanger <[email protected]>
pkgname=nvidia-lts-ck
pkgver=260.19.36
_kernver='2.6.32-lts-ck'
pkgrel=2
pkgdesc="NVIDIA drivers for kernel26-lts-ck"
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
makedepends=('kernel26-lts-ck-headers>=2.6.32' 'kernel26-lts-ck-headers<2.6.33')
depends=('kernel26-lts-ck>=2.6.32' 'kernel26-lts-ck<2.6.33' "nvidia-utils=$pkgver")
provides=('nvidia')
license=('custom')
install=nvidia-lts-ck.install
if [ "$CARCH" = "i686" ]; then
_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('2826484d87827351774449382e45c4a9')
elif [ "$CARCH" = "x86_64" ]; then
_arch='x86_64'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('6ebc5db9066e920b0b0e48377ce5eeb5')
fi
build() {
cd "${srcdir}"
sh ${_pkg}.run --extract-only
cd ${_pkg}/kernel
make SYSSRC=$startdir/tar/lib/modules/${_kernver}/build module
package() {
install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
"${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"
install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist-lts_ck.conf"
install -D -m644 "${srcdir}/${_pkg}/LICENSE" "${pkgdir}/usr/share/licenses/nvidia-lts-ck/LICENSE"
EDIT: My bad... so accustomed to using the -s switch! I now realize I need to makepkg -d to get this to work properly.
Last edited by graysky (2011-01-30 20:59:19)Lone_Wolf wrote:tghe-retford, latest version of readline is 6.3.008-1 , is the mirror you selected up to date ?
https://www.archlinux.org/mirrors/status/
Finally managed to update it to 6.3.008-1, still gives the same error:
root@archiso ~ # pacman -Q readline
readline 6.3.008-1
root@archiso ~ #arch-chroot /mnt /bin/bash
/bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory :(
127 root@archiso ~ # -
Hi.
When i try to build the driver for the integrated webcam, I get the following error:
[kumo@KNS-02 ~]$ yaourt -S stk11xx-svn
==> Downloading stk11xx-svn PKGBUILD from AUR...
tar: Tamaño del registro = 9 bloques
==> Last 5 comments ordered by date (asc):
Comment by: jose1711 on Tue, 08 Dec 2009 19:25:42 +0000
thank you. this is helpful when you want to turn off a webcam led diod without rebooting. see http://ubuntuforums.org/showthread.php?p=6091095#post6091095
Comment by: berot3 on Fri, 11 Dec 2009 19:48:23 +0000
so does it work today? why is it version 80??? maybe make it 9999 like in gentoo?
Comment by: berot3 on Fri, 11 Dec 2009 19:53:42 +0000
jose1711 i understood i can turn the led off while my camera is on... silly me :p never had the problem, my led always turned off like my cam
Comment by: texoft on Wed, 30 Dec 2009 09:51:48 +0000
won't build in 2.6.32, something has changed in modules directory.
Comment by: sirmacik on Sat, 09 Jan 2010 00:17:34 +0000
Now everything should be alright. The problem was split of kernel26 package into kernel26 and kernel26-headers.
First Submitted: Tue, 14 Oct 2008 18:01:27 +0000
stk11xx-svn 99-2 : Syntek DC-1125 Camera Driver (integrated camera in Asus laptops) - SVN
( Unsupported package: Potentally dangerous ! )
==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
==> ----------------------------------------------
==>n
==> stk11xx-svn dependencies:
- kernel26-headers (already installed)
- ctags (already installed)
==> WARNING: This PKGBUILD contains install file that can be dangerous.
stk11xx-svn.install
==> Edit stk11xx-svn.install (highly recommended for security reasons) ? [Y/n] ("A" to abort)
==> ----------------------------------------------
==>n
==> Continue the building of stk11xx-svn ? [Y/n]
==> ----------------------------------------------
==>y
==> Install or build missing dependencies for stk11xx-svn:
==> Building and installing package
==> Yaourt has detected previous stk11xx-svn build. Do you want to use it (faster) ? [Y/n]
==> ----------------------------------------------
==>n
==> stk11xx-svn dependencies:
- kernel26-headers (already installed)
- ctags (already installed)
==> Creando el paquete: stk11xx-svn 99-2 x86_64 (mié feb 10 19:27:20 CET 2010)
==> Comprobando Dependencias en tiempo de Ejecución...
==> Comprobando Dependencias en tiempo de Compilación...
==> Obteniendo Fuentes...
==> Descomprimiendo fuentes...
==> Entrando a un ambiente fakeroot...
==> Comenzando build()...
/tmp/yaourt-tmp-kumo/aur-stk11xx-svn/stk11xx-svn/./PKGBUILD: línea 30: svn: no se encontró la orden
==> SVN checkout done or server timeout
==> Starting make...
cp: no se puede efectuar `stat' sobre «driver»: No existe el fichero o el directorio
/tmp/yaourt-tmp-kumo/aur-stk11xx-svn/stk11xx-svn/./PKGBUILD: línea 37: cd: driver-build: No existe el fichero o el directorio
==> ERROR: Falló la compilación.
Abortando...
Error: Makepkg was unable to build stk11xx-svn package.
I tried also with sudo, with the same end result: file or directory no exists.
Any idea? Do I need something else?
ThanksAs stk11xx-svn or stk11xx are both out of date (And never worked), I've installed stk11xx-git from AUR. But the webcam still doesn't work.
I can't find /dev/video0 so it could be the problem.
Bus 002 Device 003: ID 174f:6a33 Syntek Web Cam - Asus F3SA, F9J, F9S
Do I need to install something else? I also tried to add stk11xx to modules line in rc.conf, but it failed. -
Cannot build ewebkit-svn from AUR due to harfbuzz issue
HI,
I am unable to build ewebkit-svn due to harfbuzz been split into harfbuzz and harfbuzz-icu. This seems to a known problem in webkit, there has been a patch to fix this but I think it is not working for EFL port.
Please let me know if anyone else has faced issue and has any idea how to fix it.
Thanks and regards,
SaurabhI reported it on their bug tracker a while ago, but no response (which is not a surprise). The GTK port fixed it a few days after the harfbuzz update, and the EFL port still hasn't after more than 2 months.
Edit, I hadn't looked around for a while. This patch looks promising, I'm testing a version now: http://www.mail-archive.com/pld-cvs-com … 16358.html
Last edited by Scimmia (2013-08-18 06:45:05) -
Error building kdebase4-svn from AUR
Anytime I try to build kdebase4-svn from AUR, I get the following error:
[ 88%] Building CXX object kcontrol/access/CMakeFiles/kdeinit_kaccess.dir/kaccess.o
In Datei, eingefügt von /tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace-build/kcontrol/access/kaccess.moc:10,
von /tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:33:
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace-build/kcontrol/access/../../../kdebase-workspace/kcontrol/access/kaccess.h:15:30: Fehler: Phonon/MediaObject: Datei oder Verzeichnis nicht gefunden
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:441:2: Warnung: #warning is this the best way to invert a pixmap?
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:590:2: Warnung: #warning "kde4 fixme"
In file included from /tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace-build/kcontrol/access/kaccess.moc:10,
from /tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:33:
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace-build/kcontrol/access/../../../kdebase-workspace/kcontrol/access/kaccess.h:76: Fehler: »Phonon« wurde nicht deklariert
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace-build/kcontrol/access/../../../kdebase-workspace/kcontrol/access/kaccess.h:76: Fehler: ISO-C++ verbietet Deklaration von »MediaObject« ohne Typ
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace-build/kcontrol/access/../../../kdebase-workspace/kcontrol/access/kaccess.h:76: Fehler: expected »;« before »*« token
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp: In constructor »KAccessApp::KAccessApp(bool, bool)«:
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:100: Fehler: Klasse »KAccessApp« hat keinen Feldnamen »_player«
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp: In member function »void KAccessApp::initMasks()«:
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:318: Warnung: es wird empfohlen, explizite geschweifte Klammern zu setzen, um mehrdeutiges »else« zu vermeiden
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp: In member function »void KAccessApp::xkbBellNotify(XkbBellNotifyEvent*)«:
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:471: Fehler: »_player« wurde in diesem Gültigkeitsbereich nicht definiert
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:472: Fehler: »Phonon« wurde nicht deklariert
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:472: Fehler: »Phonon« wurde nicht deklariert
/tmp/yaourt-tmp-arch/aur-kdebase4-workspace-svn/kdebase4-workspace-svn/src/kdebase-workspace/kcontrol/access/kaccess.cpp:476: Fehler: »_player« wurde in diesem Gültigkeitsbereich nicht definiert
make[2]: *** [kcontrol/access/CMakeFiles/kdeinit_kaccess.dir/kaccess.o] Fehler 1
make[1]: *** [kcontrol/access/CMakeFiles/kdeinit_kaccess.dir/all] Fehler 2
make: *** [all] Fehler 2
==> FEHLER: Build fehlgeschlagen.
Breche ab ...
Error: Makepkg was unable to build kdebase4-workspace-svn package.
Can anyone help me?
Thanks
HenneI tried to build it with yaourt... When doing it the normal way, it works fine...
Thanks -
Ffmpeg support for stepmania-cvs
I have been looking into adding ffmpeg support for the stepmania-cvs package. The main problem is that StepMania will continue to depend on the old 0.4.9-pre1 version of ffmpeg in order for video support to work properly. Following the directions on the StepMania website were not that helpful but I have found a slightly easier way to build StepMania with ffmpeg built into the application; a lot of the time was spent trying to find a decent configuration. The 0.4.9-pre1 version of ffmpeg would only be required to build StepMania but, since the required ffmpeg libraries will be built into StepMania, it is not required to run the application so the older version of ffmpeg can then be uninstalled or be replaced with the current ffmpeg package in extra.
I was wondering whether the people who are using stepmania-cvs would want ffmpeg support included and would be willing to put up with the hassle of installing a custom ffmpeg package during every install and upgrade. The stepmania-cvs package will only be updated when a new Windows CVS snapshot is released if people want this change. I want stepmania-cvs to closely resemble what is included with the Windows snapshots and the current CVS snapshot does include video support in the application.
The video support isn't that great with either the version that I have built or with the Windows CVS snapshot. Playing video seems to bog down StepMania a bit; it isn't really noticable most of the time. I have messed around with the StepMania 3.9 source code and video playback is a lot better with that version.
In case anyone is wondering, I have thought about making a PKGBUILD that would build StepMania 3.9 from source instead of using the pre-built binary package like the current one does. The main reason for continuing the use of the binary package was because of the ffmpeg issue, including conflicting with any current ffmpeg installation, and because there is no option to build StepMania 3.9 without ffmpeg support. Now, it is because StepMania 3.9 will not build with the current version of sdl in the Arch repository; it will build with the 1.2.9 package. So, I am still going with my stance of not worrying about making a PKGBUILD that makes StepMania 3.9 from the source code.
This has been a long winded post but I would really appreciate any feedback on this issue. I would personally like to have ffmpeg support in the stepmania-cvs package but I don't want to inconvenience others if other people don't want to deal with the hassle of getting ffmpeg support working.
Random: Something that is a lot better with the Linux version of StepMania 4.0 CVS are the load times. With the current Windows CVS snapshot, it takes like 5 seconds to go to the song selection screen, no matter if it is after loading StepMania for the first time or after playing a song, while the Linux version takes around 1 second.I guess that nobody will have a problem with video support being added to the stepmania-cvs package. I just updated stepmania-cvs with the necessary changes for video support to work. Just like when the stepmania package was uploaded to the AUR, I posted a little howto for installing stepmania-cvs with the most recent changes. The howto is the last comment posted on the AUR page for stepmania-cvs. I am also messing around with making a custom repository. So far, I have put up some of my packages from the AUR. The repository will include pre-built packages of stepmania and stepmania-cvs. In order to access my repository, add the following two lines to /etc/pacman.conf:
[ryochan7]
Server = http://bored.homelinux.net/arch/ryochan7
Then run pacman -Sy. My upload connection isn't that great (peaks around 45 KB/s) so it might take a while to download any package from my repository. -
Building mplayer-svn using internal ffmpeg-svn libraries [SOLVED]
Yeah,
I know that a bunch of us are having errors building mplayer-svn against ffmpeg-svn internal libraries.
The error:
libvo/vo_yuv4mpeg.o: In function `flip_page':
vo_yuv4mpeg.c:(.text+0x694): undefined reference to `rgb24toyv12'
vo_yuv4mpeg.c:(.text+0x6f0): undefined reference to `rgb24toyv12'
vo_yuv4mpeg.c:(.text+0x848): undefined reference to `rgb24toyv12'
libmpcodecs/vf_palette.o: In function `put_image':
vf_palette.c:(.text+0x3ee): undefined reference to `palette8topacked32'
vf_palette.c:(.text+0x431): undefined reference to `palette8topacked24'
vf_palette.c:(.text+0x453): undefined reference to `palette8torgb16'
vf_palette.c:(.text+0x473): undefined reference to `palette8torgb15'
vf_palette.c:(.text+0x489): undefined reference to `palette8tobgr16'
vf_palette.c:(.text+0x4a1): undefined reference to `palette8tobgr15'
vf_palette.c:(.text+0x50a): undefined reference to `palette8topacked32'
vf_palette.c:(.text+0x55e): undefined reference to `palette8torgb15'
vf_palette.c:(.text+0x5b3): undefined reference to `palette8torgb16'
vf_palette.c:(.text+0x5d0): undefined reference to `palette8topacked24'
vf_palette.c:(.text+0x5ed): undefined reference to `palette8tobgr15'
vf_palette.c:(.text+0x60a): undefined reference to `palette8tobgr16'
libmpcodecs/vf_rgb2bgr.o: In function `put_image':
vf_rgb2bgr.c:(.text+0x1d7): undefined reference to `rgb24tobgr24'
vf_rgb2bgr.c:(.text+0x20a): undefined reference to `rgb32tobgr32'
vf_rgb2bgr.c:(.text+0x274): undefined reference to `rgb24tobgr24'
vf_rgb2bgr.c:(.text+0x290): undefined reference to `rgb32tobgr32'
libmpcodecs/vf_yuy2.o: In function `put_image':
vf_yuy2.c:(.text+0xf7): undefined reference to `yv12toyuy2'
vf_yuy2.c:(.text+0x154): undefined reference to `yuv422ptoyuy2'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
All of this is coming from swscale. Enabling Mplayer's internal swscale fixes the build for me, but it's hardly a solution seeing that there is no difference at all in between the code bases.
The question:
Why are Archers seeing this and yet there's no traces that I can find anywhere on the web? I ask because I don't know if it's a Mplayer bug, a FFmpeg bug, or one of the core libraries in Arch? In short, I don't know who to file a bug report with.
What I know:
1) The build fails in different places on different architectures.
2) Mplayer seems to not be able to find yasm even though x264 and FFmpeg find it fine, even with the configure flag --yasm=YASM.
3) FFmpeg is not installing any swscale header file other than libswscale/swscale.h and force installing it does not help.
a) There is no difference at all in the Makefile between the two code bases.wonder wrote:to be fair i don't think you can build mplayer-svn against ffmpeg-svn. you can only with mplayer-mt-git against ffmpeg-mt-git or something like that.
I've been doing it daily for well over a year. Maybe even two.
-- Edit--
If anyone cares, it's because of how Mplayer deals with FFmpeg's header files. For instance, Mplayer is looking for yuv2rgb.h, but FFmpeg now produces yuv2rgb_mmx.h at runtime on my system. It looks as if libswscale's build files are being generated per architecture for usage of ASM code. Mplayer isn't looking at things quite right anymore. -
I'm trying to build Murrine-SVN (directly downloaded from svn repositories) and I get this build error:
[vg@vg-arch murrine]$ make
Making all in schema
make[1]: Entering directory `/home/vg/build/murrine/schema'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vg/build/murrine/schema'
make[1]: Entering directory `/home/vg/build/murrine'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -g -O2 -MT animation.lo -MD -MP -MF .deps/animation.Tpo -c -o animation.lo `test -f './src/animation.c' || echo './'`./src/animation.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -g -O2 -MT animation.lo -MD -MP -MF .deps/animation.Tpo -c ./src/animation.c -fPIC -DPIC -o .libs/animation.o
In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33,
from /usr/include/gtk-2.0/gtk/gtkbin.h:32,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from ./src/animation.h:24,
from ./src/animation.c:21:
/usr/include/gtk-2.0/gtk/gtkwidget.h:36:27: error: atk/atkobject.h: No such file or directory
In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33,
from /usr/include/gtk-2.0/gtk/gtkbin.h:32,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from ./src/animation.h:24,
from ./src/animation.c:21:
/usr/include/gtk-2.0/gtk/gtkwidget.h:401: error: expected specifier-qualifier-list before 'AtkObject'
/usr/include/gtk-2.0/gtk/gtkwidget.h:622: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from /usr/include/gtk-2.0/gtk/gtk.h:36,
from ./src/animation.h:24,
from ./src/animation.c:21:
/usr/include/gtk-2.0/gtk/gtkaccessible.h:23:21: error: atk/atk.h: No such file or directory
In file included from /usr/include/gtk-2.0/gtk/gtk.h:36,
from ./src/animation.h:24,
from ./src/animation.c:21:
/usr/include/gtk-2.0/gtk/gtkaccessible.h:44: error: expected specifier-qualifier-list before 'AtkObject'
/usr/include/gtk-2.0/gtk/gtkaccessible.h:55: error: expected specifier-qualifier-list before 'AtkObjectClass'
In file included from /usr/include/gtk-2.0/gtk/gtk.h:70,
from ./src/animation.h:24,
from ./src/animation.c:21:
/usr/include/gtk-2.0/gtk/gtkcombobox.h:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make[1]: *** [animation.lo] Error 1
make[1]: Leaving directory `/home/vg/build/murrine'
make: *** [all-recursive] Error 1
Can anyone tell me what's wrong?Stefan Husmann wrote:Try installing atk.
Figured that out just after posting this. Thanks! It works. -
[SOLVED] Unable to build libgig-svn
Hello,
I just tried building libgig-svn from the AUR, but it didn’t work (neither on my desktop nor my laptop).
Here is the console output: http://pastebin.com/MwcvtnTr
Does anybody know what’s wrong there?
Thanks in advance,
Peter
Last edited by Nothgirc (2014-05-28 22:37:28)Thanks for the suggestion, but I fail to get it (libakai) installed. If I’m not mistaken, it requires libngl:
make[1]: Entering directory '/home/peter/tmp/libakai/src'
../libakai.mk:4: ../../ngl/libngl.mk: No such file or directory
make[1]: *** No rule to make target '../../ngl/libngl.mk'. Stop.
make[1]: Leaving directory '/home/peter/tmp/libakai/src'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
Now, if my research is correct, NGL has been merged into NUI3. I tried to build that, but with the following error message I don’t know what to do:
CMake Warning at CMakeLists.txt:24 (FIND_PACKAGE):
By not providing "FindLibTidy.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibTidy", but
CMake did not find one.
Could not find a package configuration file provided by "LibTidy" with any
of the following names:
LibTidyConfig.cmake
libtidy-config.cmake
Add the installation prefix of "LibTidy" to CMAKE_PREFIX_PATH or set
"LibTidy_DIR" to a directory containing one of the above files. If
"LibTidy" provides a separate development package or SDK, be sure it has
been installed.
CMake Error at CMakeLists.txt:32 (MESSAGE):
The LibTidy library was not found.
-- Configuring incomplete, errors occurred!
See also "/home/peter/tmp/nui3-master/build/CMakeFiles/CMakeOutput.log".
I have installed tidyhtml, which should provide libtidy. But there is no LibTidyConfig.cmake nor libtidy-config.cmake on my system.
UPDATE: The libgig-svn package got updated, and all works now.
Last edited by Nothgirc (2014-05-28 22:36:40) -
SOLVED /usr/bin/makepkg: line 552: build: command not found
I'm trying to build a custom kernel, but am receiving this error:
/usr/bin/makepkg: line 552: build: command not found
I've searched all over for a fix, but haven't had any luck, it doesn't seem to be a common error, or it's so incredibly easy to fix that noone has bothered
Thanks for any help.
/crobotThanks for your response, it has failed on two builds, i'll post both.
Here's the first:
# $Id: PKGBUILD,v 1.26 2004/10/06 18:21:54 judd Exp $
# Maintainer: judd <[email protected]>
pkgname=kernel26
pkgver=2.6.8.1
pkgrel=3
pkgdesc="The Linux Kernel and modules (IDE support)"
url="http://www.kernel.org"
backup=('boot/kconfig26')
depends=('module-init-tools')
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
config cdburning.patch logo_linux_clut224.ppm
bio_uncopy_user-mem-leak.patch bio_uncopy_user-mem-leak-fix.patch
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/26-stable-release/acpi-20040715-2.6.8.diff.bz2)
md5sums=('9517ca999e822b898fbdc7e72796b1aa' '20ad5bea85099dfcced9a6b91064b04e'
'66b87662e6dd54b6324f874739fa1b99' '5a62bcc7e96601052c7405459b483826'
'd2329bc663089cd99b8dbfd25b6a7ebc' '15a9165ae02c4a3a3875fb7924a68cbf'
'e00d08709581f215b15e321d162f782c')
build() {
cd $startdir/src/linux-$pkgver
patch -Np1 -i ../bio_uncopy_user-mem-leak.patch || return 1
patch -Np1 -i ../bio_uncopy_user-mem-leak-fix.patch || return 1
patch -Np1 -i ../cdburning.patch || return 1
#patch -Np1 -i ../acpi-20040715-2.6.8.diff || return 1
# Arch logo!
cp ../logo_linux_clut224.ppm drivers/video/logo/
# get rid of the 'i' in i686
carch=`echo $CARCH | sed 's|i||'`
cat ../config | sed "s|#CARCH#|$carch|g" >./.config
yes "" | make config
make clean bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
cp System.map $startdir/pkg/boot/System.map26
cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26
install -D -m644 Makefile $startdir/pkg/usr/src/linux-$pkgver/Makefile
install -D -m644 .config $startdir/pkg/usr/src/linux-$pkgver/.config
install -D -m644 .config $startdir/pkg/boot/kconfig26
mkdir -p $startdir/pkg/usr/src/linux-$pkgver/include
mkdir -p $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel
for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
cp -a include/$i $startdir/pkg/usr/src/linux-$pkgver/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp -a scripts $startdir/pkg/usr/src/linux-$pkgver/
mkdir -p $startdir/pkg/usr/src/linux-$pkgver/.tmp_versions
cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$pkgver/arch/i386/
cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-$pkgver/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-$pkgver/$i
done
cd $startdir/pkg/usr/src/linux-$pkgver/include && ln -s asm-i386 asm
chown -R root.root $startdir/pkg/usr/src/linux-$pkgver
cd $startdir/pkg/lib/modules/$pkgver &&
(rm -f source build; ln -sf /usr/src/linux-$pkgver build)
Here's the second:
###### Give the kernel a unique name (for multiple builds - can be empty)
_kerrev=crobot
###### Choose generic name, version, and release. updated later for $_kerrev
pkgname=kernel26
pkgver=2.6.8.1
pkgrel=1
pkgdesc="Custom Linux Kernel and modules"
url="http://www.kernel.org"
depends=('module-init-tools')
###### Add a default config file and any patches to be applied to source array
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2)
###### Add md5 checksums here:
#md5sum=()
getvar() {
old=$(cat Makefile | grep "^$1")
echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
return 0
build() {
cd $startdir/src/linux-$pkgver
###### apply patches here
# patch -p1 < ../patch1 #model
#get rid of i in i686 in default config
carch=`echo $CARCH | sed 's|i||'`
cat ../config | sed "s|#CARCH#|$carch|g" >./.config
###### Choose one of the following configuration types
###### Use first option for config in source array
#yes "" | make config
#make oldconfig || return 1
make menuconfig
#make xconfig
#make gconfig
##### No user changes below here
# save the configuration with today's date
cp ./.config ../../NEWCONFIG-$(date +%b%d)
# set EXTRAVERSION to create unique /lib/modules/ subdirectories
_ker_extraversion=$(getvar "EXTRAVERSION")
# update EXTRAVERSION in the Makefile by adding our _kerrev
_oldline=$(cat Makefile | grep "^EXTRAVERSION")
if [ $_kerrev != "" ]; then
_ker_extraversion="$_ker_extraversion-$_kerrev"
cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
mv tmpMake Makefile
fi
_kerrev=$_ker_extraversion
kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
# update the package information from the kernel Makefile
# (just in case the Makefile changed during a patch)
pkgver=$kerver$(echo $_kerrev | sed -e 's/-/./g')
pkgdesc="Custom Linux Kernel and modules version: $kerver revision: $_kerrev /
package ver: $pkgver build: $pkgrel"
# changing the package name
# removing patches versions from the revision string
_t=$(echo $_kerrev | sed -e "s/^..[0-9]*//g")
# _t=$(echo $_t | sed -e "s/^-rc[0-9]?*//g")
# _suf contains the suffix identifying the kernel (it has the versions removed from
it)
_suf=$(echo $_t | sed -e "s/[0-9]*-/-/g")
pkgname=kernel26$_suf
echo "Package name: $pkgname"
echo "Package ver: $pkgver"
echo "Package desc: $pkgdesc"
sleep 5
make clean bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
# create unique names in /boot/
cp System.map $startdir/pkg/boot/System.map26$_suf
cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$_suf
install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
install -D -m644 .config $startdir/pkg/boot/kconfig26$_suf
mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
cp arch/i386/kernel/asm-offsets.s
$startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-$kerver/$i
done
cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
chown -R root.root $startdir/pkg/usr/src/linux-$kerver
# create a unique subdirectory under /usr/src/
cd $startdir/pkg/usr/src
mv linux-$kerver linux-$kerver$_kerrev
cd $startdir/pkg/lib/modules/$kerver$_kerrev &&
(rm -f build; ln -sf /usr/src/linux-$kerver$_kerrev build)
Thanks,
/crobot
Maybe you are looking for
-
How to see error message for a failed crystal report in CMC BO XI 3.1
Hi, I do not have much knowledge on CMC. Currently there is a crystal report failing on server. I can see the error message on CMC as "Object failed to run due to an error while processing on the Job Server". Is there any way i could see the actual e
-
Airport Extreme will not connect to Internet
Just purchased an Airport Extreme Base Station (AEBS) to upgrade old Netgear router. Netgear was working perfect with both wired and wireless internet. My ISP is a rural internet high-speed wireless company. It is not DSL/Cable or Satellite, requi
-
How to limit number of logins per day?
We have a custom web application (WebAS 6.20) used by people and automated systems. Each user has his own login, and some of these automated systems sometimes produce heavy load because they log into system too often. Is there an easy way to: 1) limi
-
Hi All, I've successfully installed NW04s sneak preview on my PC. I'm trying to install the TREX70SP07P1, for TREX installation after launching sapinst: I select <b>"SAP NetWeaver 2004s TREX Search and Classification" -> "Installation services for TR
-
IDOC-EDI Conversion usinf File content cpnversion
Hi all, I need to convert an IDOC to EDI. I went through a few threads where I underrstood We dont need seeburger adapter for the same. It can also be done using File COntent Conversion. Can someone guide me with the steps. Is it necessary to use see