[solved] new abs PKGBUILD for package kernel26...old kernel?

I was looking into the new PKGBUILD in the /var/abs/core/kernel26 folder, as I wanted to update my custom kernel. I was editing the new PKGBUILD when I saw something weird...references to kernel.org files and archlinux.org patch seems to be same as the 2.6.37 version. Is _basekernel value not updated? Am I wrong?
Take a look:
new PKGBUILD (I copied only relevant lines):
_basekernel=2.6.37
pkgver=${_basekernel}
pkgrel=6
_patchname="patch-${pkgver}-4-ARCH"
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
now...these is exactly the same as PKGBUILD for 2.6.37. But the new files are:
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.1.tar.bz2
ftp://ftp.archlinux.org/other/kernel26/patch-2.6.37.1-1-ARCH.bz2
If I am right, someone has to update variable values...
TIA
Gemon
Last edited by gemon (2011-02-21 22:17:23)

well...I had time to check so...this is the content for the PKGBUILD after I run abs yesterday (pasted only relevant lines):
# $Id: PKGBUILD 109724 2011-02-12 08:01:06Z tpowa $
pkgbase="kernel26"
pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
_kernelname=${pkgname#kernel26}
_basekernel=2.6.37
pkgver=${_basekernel}
pkgrel=6
_patchname="patch-${pkgver}-4-ARCH"
this is the one I run tonight...looks updated now
# $Id: PKGBUILD 110322 2011-02-18 20:13:49Z tpowa $
pkgbase="kernel26"
pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
_kernelname=${pkgname#kernel26}
_basekernel=2.6.37
pkgver=${_basekernel}.1
pkgrel=1
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
now patch filename and kernel sources correctly resolve to the latest ones.
but believe me, right after I had the 2.6.37.1-arch kernel, the abs PKGBUILD was outdated...probably it is updated after kernel package is released. doesn't matter
all in all...now it's ok
Gemon

Similar Messages

  • [SOLVED] Error with PKGBUILD for package hash-identifier

    Hi,
    I tried to install the package hash-identifier.
    While running makepkg -s, there is an error:
    ==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced.
    I guess this is due to the New Line character at line 17 of the PKGBUILD:
    sed -e 's|
    ||g' -i Hash_ID_v${pkgver}.py
    So I remove it, but then I get this other error and I don't know what to do with it:
    ==> Extracting sources...
    ==> Starting prepare()...
    sed: -e expression #1, char 0: no previous regular expression
    ==> ERROR: A failure occurred in prepare().
    Aborting...
    Last edited by PâtéDeCerf (2015-03-11 08:18:34)

    Thanks for your reply. I'm not familiar with package build syntax nor python, so I don't understand everything you wrote.
    It would be good if you could explain more clearly though.
    By applying the change you propose, I was able to build the package and install it.
    NB: To run the program, type from the command-line :
    $ hash-id
    ...and not simply "hash-identifier"
    Last edited by PâtéDeCerf (2015-03-11 08:21:10)

  • ABS PKGBUILD for openoffice-base fails

    The PKGBUILD for openoffice-base from the ABS tree is failing on my x86_64 system.  The compilation finishes successfully, but I start getting errors beginning at the "# install binaries" stage.  Here's the first part of the errors that I get.  ((NOTE:  I've replaced my username in the paths with 'userdir', for paranoia's sake ))
    cp: cannot stat `instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/buildroot/*': No such file or directory
    PKGBUILD: line 240: cd: /home/userdir/abs/local/openoffice-base/pkg/opt: No such file or directory
    mv: cannot stat `openoffice.org2.4': No such file or directory
    cp: cannot stat `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/share/xdg/*.desktop': No such file or directory
    sed: can't read *.desktop: No such file or directory
    sed: can't read printeradmin.desktop: No such file or directory
    sed: can't read base.desktop: No such file or directory
    sed: can't read calc.desktop: No such file or directory
    sed: can't read draw.desktop: No such file or directory
    sed: can't read impress.desktop: No such file or directory
    sed: can't read math.desktop: No such file or directory
    sed: can't read writer.desktop: No such file or directory
    sed: can't read *.desktop: No such file or directory
    The PKGBUILD then moves through the "# install icons" step without problems.  After that, the next round of errors begin:
    sed: can't read /home/userdir/abs/local/openoffice-base/pkg/usr/share/applications/calc.desktop: No such file or directory
    touch: cannot touch `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/share/dict/ooo/.directory': No such file or directory
    touch: cannot touch `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/presets/template/.directory': No such file or directory
    touch: cannot touch `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/share/extension/install/.directory': No such file or directory
    `./libnpsoplugin.so' -> `/opt/openoffice/program/libnpsoplugin.so'
    PKGBUILD: line 308: cd: /home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/program/: No such file or directory
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |*** soffice.orig 2007-10-27 16:40:34.000000000 +0200
    |--- soffice 2007-10-27 16:41:14.000000000 +0200
    File to patch:
    The PKGBUILD stops at this point.  I have to Ctrl^C out of it.
    When I look in the directories, I see that instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/buildroot/ does not exist.  Instead, that path ends at instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/ , where I find a set of 25 openoffice.org-*.deb files.  Removing the 'buildroot' part of the path might fix part of the problem, but I'm guessing something else may be going on here besides that.
    Any ideas?

    the mirrors with old packages are listed here:
    http://wiki.archlinux.org/index.php/Downgrade_packages
    for example on http://ftp.parrswood.manchester.sch.uk/ … linux.org/ there is OO 2.2

  • [SOLVED by xyne] Search for packages I have but are NOT installed?

    Hi all,
    I run a couple of computers on Arch (both 64-bit), was just wondering if I could copy the /var/cache/pacman/pkg from one computer to the other, and then run some command to install from the cache all packages that are not currently installed. Basically it would be something like "go through all the packages in /var/cache/pacman/pkg, if any are installed ignore them, if a newer version is installed ignore them, but if no version of this package is installed then install it.
    Last edited by ngoonee (2009-06-26 05:17:35)

    Try this:
    #!/usr/bin/perl
    use strict;
    use warnings;
    exit(1) if not @ARGV;
    my $cachedir = $ARGV[0];
    $cachedir = substr($cachedir,0,-1) if substr($cachedir,-1) eq '/';
    opendir(my $dh, $ARGV[0]) or die $!;
    my @cache_pkgs = map { s/-[^-]+-[^-]+(?:-i686|-x86_64|-any)?\.pkg\.tar\.gz$//; $_ }
    grep {/\.pkg\.tar\.gz$/}
    readdir($dh);
    closedir($dh);
    my @installed_pkgs = split(/\s*\n\s*/, `pacman -Qq`);
    my %cache_pkgs;
    $cache_pkgs{$_} = 1 foreach @cache_pkgs;
    my %installed_pkgs;
    $installed_pkgs{$_} = 1 foreach @installed_pkgs;
    foreach (keys(%cache_pkgs))
    delete($cache_pkgs{$_}) if exists($installed_pkgs{$_});
    # uncomment these lines if you just want a list of uninstalled packages
    # without filtering dependencies
    # @cache_pkgs = keys(%cache_pkgs);
    # print "$_\n" foreach @cache_pkgs;
    # exit();
    my $pkg_files;
    foreach my $pkg (keys(%cache_pkgs))
    opendir(my $dh, $cachedir) or die $!;
    my @pkg_files = grep {/^\Q$pkg\E/} readdir($dh);
    closedir($dh);
    foreach my $pkg_file (@pkg_files)
    if ( $pkg_file =~ m/^(.+)-([^-]+-[^-]+)(?:-i686|-x86_64|-any)?\.pkg\.tar\.gz$/ )
    $pkg_file = $cachedir . '/' . $pkg_file;
    if (not exists($pkg_files->{$1}))
    $pkg_files->{$1}->{'ver'} = $2;
    $pkg_files->{$1}->{'file'} = $pkg_file;
    else
    my $ver = $pkg_files->{$1}->{'ver'};
    if (&compare_versions($2,$ver))
    $pkg_files->{$1}->{'ver'} = $2;
    $pkg_files->{$1}->{'file'} = $pkg_file;
    foreach my $pkg (keys(%{$pkg_files}))
    my $pkg_file = $pkg_files->{$pkg}->{'file'};
    my $pkginfo = `tar -O -zxf $pkg_file .PKGINFO`;
    foreach my $line (split(/\s*\n\s*/, $pkginfo))
    if ($line =~ /^depend\s+=\s+([^>=\s]+)/)
    delete($cache_pkgs{$1}) if exists($installed_pkgs{$1});
    @cache_pkgs = keys(%cache_pkgs);
    print "$_\n" foreach @cache_pkgs;
    sub compare_versions
    my ($a,$b) = @_;
    return -1 if not defined($a) and defined($b);
    return 1 if defined($a) and not defined($b);
    return 0 if not defined($a) and not defined($b);
    my ($rel_a,$rel_b) = (0,0);
    if ($a =~ m/(.*)-(.+)$/) {($a,$rel_a)=($1,$2);}
    if ($b =~ m/(.*)-(.+)$/) {($b,$rel_b)=($1,$2);}
    my @a = split(/\./,$a);
    my @b = split(/\./,$b);
    my $len_a = scalar @a;
    my $len_b = scalar @b;
    my $n = ($len_a < $len_b) ? $len_a : $len_b;
    for (my $i=0; $i<$n; $i++)
    my ($int_a,$alph_a,$dash_a) = ($a[$i] =~ m/^(\d*)(.*?)(_.*)?$/);
    my ($int_b,$alph_b,$dash_b) = ($b[$i] =~ m/^(\d*)(.*?)(_.*)?$/);
    $int_a = 0 if $int_a eq '';
    $int_b = 0 if $int_b eq '';
    if ($int_a != $int_b)
    return $int_a <=> $int_b;
    if (length($alph_a) and not length($alph_b))
    return -1;
    if (not length($alph_a) and length($alph_b))
    return 1;
    if ($alph_a ne $alph_b)
    return $alph_a cmp $alph_b;
    return 1 if defined($dash_a) and not defined($dash_b);
    return -1 if not defined($dash_a) and defined($dash_b);
    if (defined($dash_a) and defined($dash_b))
    my $dash_cmp = $dash_a cmp $dash_b;
    return $dash_cmp if $dash_cmp != 0;
    return $len_a <=> $len_b if not $len_a == $len_b;
    return $rel_a <=> $rel_b;
    Save it as "list_pkgs", make it executable and then run it with
    ./list_pkgs /var/cache/pacman/pkg
    It should spit back a list which contains all packages in the cache which are currently uninstalled, minus any packages which are dependencies of others. To install those packages, combine it with pacman:
    pacman -S $(./list_pkgs /var/cache/pacman/pkg)
    This doesn't completely solve the issue of explicit versus implicit installation, but I expect that this would be more manageable than installing everything explicitly. I've commented on lines which can be uncommented to get a simple list which ignores dependency relationships.
    Btw, the script isn't really as long as it might look. The compare_versions function, which I copied over from another module, nearly doubles the size of the script.
    *edited for typos*
    Last edited by Xyne (2009-06-26 04:30:12)

  • I have a new iTunes acct for my 10year old . she was playing one of the games and did not know it was charging my Cc and grandmas CC for her game. Is there a way to have these amt adj off the cards. I have made sure my CC info is not in the system now

    My 10 year old daughter downloaded a free game on her i Pod touch. When playing the game she did not know she was ordering apps
    is there a way to have my cc and her grandma cc refunded these charges. I thought my acct was set up to not keep our CC # on file.
    Please help.

    There are no refunds.
    You can set restirctions so that it does not allow in app purchases.
    You can try asking itunes support for an exception and see how it goes.
    Click "Support" at the top of this page, then click the link under "Contact Us"

  • Updater says no new F/W for 6630 with old F/W (2.3...

    Hello ppl,
    First of all - a big thank you to Nokia for providing this phone firmware update service!
    I'm having problems updating my old 6630 firmware with the following details:
    V 2.39.151
    19-11-04
    RM-1
    UK English
    Nokia Software Updater correctly identifies the phone (Nokia 6630 RM-1), and starts searching for updates, but after a good few minutes searching, returns back with the message 'No updates for selected phone'. If I recall correctly, the latest 6630 update is at least V 5.xx, so quite honestly I'm baffled.
    Any ideas as to what may be the cause?
    Thanks and keep up the good work!!
    jkbuha

    HI! I too have the same problem the Nokia6630 which I have has F/W 2.39.15 of 11-11-04 with RM-1, I am in Pakistan and it is in Middle East Region. Now the same message of Software not supported it being dispalyed.
    I wld be thankfull to all if any help in this regard be done.
    Thanks.

  • Micro New Warrenty apply for us with old warren

    well, as u all know, the Zen Micro comes with a year warrenty and 3 months labor. Now, it has changed, due to the fact of many problems. It is a year warrenty and a 2 months labor. You can even see for urself on this Circuitcity link http://www.circuitcity.com/rpsm/oid/...essory.do#tabs
    right under where it says "What's in the box" under the pink zen micro.
    So well, if i bought my zen micro about 3 months ago, in the period where labor was still 3 months, does this new 2 month labor apply for me as well?

    Umbrella_SWAT,
    The warranty that you are covered under will be the one that is printed in or on the box the product came in. Currently the website for the US lists the warranty period for the Zen Micro at 2 Months Parts/ 3 Months Labor, however with the addition of the Creative Care Protection Plan it can be extended to a full two years for both. I will look into the Circuit City link to see if perhaps there is a misprint there.
    Jeremy

  • [SOLVED] Satisfying a dependency for package X with my package Y

    Hi,
    let's assume there are packages which depend on package X. Now I created a package Y in aur which is a slightly modified version of package X (some other configure options) but will also work with every package which depends on package X.
    Now I used
    conflicts=('X')
    so my package can't be installed together with X because they have the same binaries, libs,... in the same places. But how can I make sure that the packages depending on X will be satisfied with package Y and don't want X to be installed? Is
    provides=('X')
    the correct thing?
    greetings
    Last edited by Rorschach (2009-05-25 10:24:09)

    Yes, provides=('X') is what you want.  You might want  provides=("X=version") to satisfy versioned dependencies.

  • [SOLVED]new mounting routine for cdrom?

    I don't seem to be able to mount my cdrom devices any longer (not machine specific). The error message is:
    [thea@habicht ~]$ sudo mount /dev/cdrom /media/cd
    mount: /dev/sr0 is write-protected, mounting read-only
    mount: /dev/sr0: can't read superblock
    My fstab file is:
    <script src="http://pastebin.com/embed_js.php?i=4aZR7H80"></script>
    Device sr0 is apparently not write-protected:
    brw-rw----+ 1 root optical 11, 0 Dec 25 11:50 sr0
    I do not use my cd devices often, so it is possible I missed something in recent updates. In any event have not made any cd-related changes since the last time I used them, when they worked fine.
    Thanks and merry Christmas!
    thea
    Last edited by thea (2012-12-25 18:00:05)

    You cannot write to an optical disk as you can to a flashdrive (use 'cp', 'mv' etc.), you have to use a CD/DVD burner (like cdrecord), right? Your fstab clearly says 'ro' - read only.
    Use '-o ro' to get rid of the first warning:
    $ sudo mount -o ro /dev/cdrom /media/cd
    I don't know why are you getting
    mount: /dev/sr0: can't read superblock

  • Help with PKGBUILD for nvidia driver cards

    Hello, I'm trying to make a PKGBUILD for the new geforce beta driver for the kernel26-mm kernel, geforce-utils went just fine, but the the geforce package was more tricky, here's the PKGBUILD:
    pkgname=geforce-mm
    pkgver=173.08
    _kernver='2.6.25-mm'
    pkgrel=1
    pkgdesc="NVIDIA drivers for kernel26mm."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=('kernel26mm' 'geforce-utils')
    install=geforce.install
    source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg1.run)
    md5sums=()
    [ "$CARCH" = "x86_64" ] && md5sums=()
    build()
    # Extract
    cd $startdir/src/
    sh NVIDIA-Linux-$ARCH-${pkgver}-pkg1.run --extract-only
    cd NVIDIA-Linux-$ARCH-${pkgver}-pkg1
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/${_kernver}/build module || return 1
    # install kernel module
    mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
    Output when running it:
    [roberth@Magda geforce-mm]$ makepkg
    ==> Making package: geforce-mm 173.08-1 (Mon Apr 14 22:44:41 CEST 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading NVIDIA-Linux-x86-173.08-pkg1.run...
    --2008-04-14 22:44:41-- http://us.download.nvidia.com/XFree86/Linux-x86/173.08/NVIDIA-Linux-x86-173.08-pkg1.run
    Resolving us.download.nvidia.com... 193.213.121.82, 193.213.121.74
    Connecting to us.download.nvidia.com|193.213.121.82|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 18958181 (18M) [application/octet-stream]
    Saving to: `NVIDIA-Linux-x86-173.08-pkg1.run'
    100%[===========================================================================================================================================================================================>] 18,958,181 710K/s in 26s
    2008-04-14 22:45:07 (720 KB/s) - `NVIDIA-Linux-x86-173.08-pkg1.run' saved [18958181/18958181]
    ==> WARNING: Integrity checks (md5) are missing or incomplete.
    ==> Extracting Sources...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    Creating directory NVIDIA-Linux-x86-173.08-pkg1
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.08...............................................................................................................................................................................................................................................................................................
    NVIDIA: calling KBUILD...
    make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.25-mm/build SUBDIRS=/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
    echo; \
    /bin/false)
    mkdir -p /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/.tmp_versions ; rm -f /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv
    cc -Wp,-MD,/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -I/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.08\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.o /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c
    In file included from include/linux/list.h:8,
    from include/linux/preempt.h:11,
    from include/linux/spinlock.h:49,
    from include/linux/seqlock.h:29,
    from include/linux/time.h:8,
    from include/linux/timex.h:57,
    from include/linux/sched.h:54,
    from include/linux/utsname.h:35,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:19,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/prefetch.h: In function 'prefetch_range':
    include/linux/prefetch.h:57: warning: pointer of type 'void *' used in arithmetic
    In file included from include/linux/gfp.h:4,
    from include/linux/slab.h:14,
    from include/linux/percpu.h:5,
    from include/linux/rcupdate.h:41,
    from include/linux/pid.h:4,
    from include/linux/sched.h:74,
    from include/linux/utsname.h:35,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:19,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/mmzone.h: In function 'first_zones_zonelist':
    include/linux/mmzone.h:778: warning: comparison between signed and unsigned
    include/linux/mmzone.h:781: warning: comparison between signed and unsigned
    include/linux/mmzone.h: In function 'next_zones_zonelist':
    include/linux/mmzone.h:798: warning: comparison between signed and unsigned
    include/linux/mmzone.h:801: warning: comparison between signed and unsigned
    In file included from include/asm/dma-mapping_32.h:5,
    from include/asm/dma-mapping.h:2,
    from include/linux/dma-mapping.h:52,
    from include/asm-generic/pci-dma-compat.h:7,
    from include/asm/pci.h:90,
    from include/linux/pci.h:937,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:86,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/scatterlist.h: In function 'sg_virt':
    include/linux/scatterlist.h:199: warning: pointer of type 'void *' used in arithmetic
    In file included from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:109,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/highmem.h: In function 'zero_user_segments':
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c: In function 'nv_kern_vma_nopage':
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1846: error: 'NOPAGE_SIGBUS' undeclared (first use in this function)
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1846: error: (Each undeclared identifier is reported only once
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1846: error: for each function it appears in.)
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c: At top level:
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1853: error: unknown field 'nopage' specified in initializer
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1853: warning: initialization from incompatible pointer type
    make[3]: *** [/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.o] Error 1
    make[2]: *** [_module_/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv] Error 2
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [module] Error 1
    make: *** [module] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Anybody have a clue?

    It seems I was wrong! I found a patch on the nvidia forums which actually makes it works
    I don't know if it will work for you, or how safe it is, but I guess it is worth a shot.
    The patch:
    --- os-agp.c.25 2008-04-02 01:34:49.000000000 -0400
    +++ os-agp.c 2008-04-02 01:39:00.000000000 -0400
    @@ -293,7 +293,7 @@
    nv_pte_t *page_ptr = at->page_table[i];
    - page_ptr->phys_addr = (ptr->memory[i] & PAGE_MASK);
    + page_ptr->phys_addr = (ptr->memory[i]);
    page_ptr->virt_addr = (unsigned long) __va(page_ptr->phys_addr);
    page_ptr->dma_addr = page_ptr->phys_addr;
    --- nv.c.25 2008-03-15 22:00:46.000000000 -0400
    +++ nv.c 2008-04-02 01:31:46.000000000 -0400
    @@ -613,7 +613,7 @@
    nv_state_t *nv;
    nv_linux_state_t *nvl;
    - proc_nvidia = create_proc_entry("nvidia", d_flags, proc_root_driver);
    + proc_nvidia = create_proc_entry("driver/nvidia", d_flags, NULL);
    if (!proc_nvidia)
    goto failed;
    @@ -1811,6 +1811,19 @@
    +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24))
    +int nv_kern_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
    +{
    +struct page *page;
    +
    + page = pfn_to_page(vma->vm_pgoff);
    + if (!page)
    + return VM_FAULT_SIGBUS;
    + get_page(page);
    + vmf->page = page;
    + return 0;
    +}
    +#else
    struct page *nv_kern_vma_nopage(
    struct vm_area_struct *vma,
    unsigned long address,
    @@ -1832,11 +1845,16 @@
    return NOPAGE_SIGBUS;
    #endif
    +#endif /* 2.6.24 */
    struct vm_operations_struct nv_vm_ops = {
    .open = nv_kern_vma_open,
    .close = nv_kern_vma_release, /* "close" */
    +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24))
    + .fault = nv_kern_vma_fault,
    +#else
    .nopage = nv_kern_vma_nopage,
    +#endif
    static nv_file_private_t *

  • Re-contracted- new package or old?

    Hi I have recontracted to the new 'totally unlimited usage' package and just wanna confirm that I have been recontracted to the new package and not the old, which I am already on. Pics to illustrate why I have doubts
    Should it not be 'Unlimited BT Infinity 2'
    and 50GB, not 5GB (as in the old package)
    Simple yes or no answer will be helpful as I can then swap it for the right one and not waste time.
    thank you!

    Hi
    If you are unsure about your package 
    I suggest you contact the forum mods they should be able to get this problem sorted for you this is a link to them http://bt.custhelp.com/app/contact_email/c/4951
    They normally reply by email or phone directly to you within 3 working days they will take personal ownership of your problem until resolved and will keep you informed of progress
    They are a UK based BT specialist team who have a good record at getting problems solved
    This is a customer to customer self help forum the only BT presence here are the forum moderators
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • [solved] Small changes to abs PKGBUILDs and maintenance/updating

    Hi!
    Somehow I manage to hoard packages that require intervention on updates. Small things, like p.e. adding a flag to have cups build without the need for avahi or midori (if I rememer tight that one was libsoup) without gconf... or just an own mozconfig for firefox. Nothing that really requires too much thinking/knowing/decision-making - at least to apply the changes to updated PKGBUILDs.
    Now what's the best way to maintain that and is there already a good script or something to do it?
    Something like p.e.:
    - Have a folder with PKGBUILD patches (like "insert additional build flag")
    - If folder for package exists, build from ABS as soon as new abs version exists, apply patch to PKBUILD before that & notify if it fails with the updated PKBUILD (something like just adding the -disable_whatever flag shouldn't require much intervention, should it?)
    - If no folder, take pacman package as soon as soon as ABS is updated (are there lots problems with them not being in sync?)
    Well, but that's just an example... how do you do it? How do you let yourself get informed about repo updates of package you have installed as local slightly modified version? How do you reapply small / medium / big changes to the updated original PKGBUILDs? And slightly related: Do you think it makes sense to provide & request AUR packages that are only slightly different from the original ABS ones (like one line / one configure flag...) or would that just lead to way to many AUR entries that are only used by 1-2 people?
    thx...
    Last edited by whoops (2009-07-24 16:53:08)

    Thanks!
    That doesn't really do everything I had in mind, but as it's bash and I can spend hours screaming at single lines of bash that don't work after I changed/typed them,  it should keep me occupied until I either give up, break something or get it to do what I want...
    Still: If anyone knows something like it that maybe has support for AUR and/or makes it easier to keep patches / custom files (like mozconfig) in the "private ABS tree" for automatic updating / building, just point me into the direction!

  • PKGBUILD for transmission-remote-gtk new since move to git - help?

    Transmission-remote-gtk just moved to git from svn and I made a new PKGBUILD for it;
    # Maintainer: Aleksey Frolov <[email protected]> [ru]
    # Contributor: PitBall
    _pname=transmission-remote-gtk
    pkgname=${_pname}-git
    pkgver=20120203
    pkgrel=1
    pkgdesc="GTK client for remote management of the Transmission BitTorrent client, using its HTTP RPC protocol"
    arch=(i686 x86_64)
    license=('GPL2')
    depends=('git' 'hicolor-icon-theme' 'geoip' 'libproxy' 'libunique' 'json-glib' 'libnotify' 'gconf' 'desktop-file-utils' 'curl')
    makedepends=('intltool')
    conflicts=('transmission-remote-gtk')
    install=${pkgname}.install
    options=('!libtool')
    url="http://code.google.com/p/transmission-remote-gtk"
    _gittrunk="https://code.google.com/p/transmission-remote-gtk/"
    _gitmod=${pkgname}
    build() {
    cd ${srcdir}
    # GIT checkout
    if [[ -d ${_gitmod} ]]; then
    (cd ${_gitmod} && git pull )
    else
    git clone ${_gittrunk} ${_gitmod}
    fi
    rm -rf ${srcdir}/${_gitmod}-build
    cp -r ${srcdir}/${_gitmod} ${srcdir}/${_gitmod}-build
    cd ${srcdir}/${_gitmod}-build
    # Configure
    ./autogen.sh
    ./configure \
    --prefix=/usr
    # --prefix=/usr \
    # --disable-schemas-install \
    # --with-gconf-schema-file-dir=/usr/share/gconf/schemas
    # Compile
    make
    # Install
    make DESTDIR=${pkgdir} install
    # License & Authors
    install -dm755 ${pkgdir}/usr/share/licenses/${_pname}
    ln -sf /usr/share/licenses/common/GPL2/license.txt ${pkgdir}/usr/share/licenses/${_pname}/LICENSE
    install -Dm644 AUTHORS ${pkgdir}/usr/share/doc/${_pname}/AUTHORS
    When doing a pacman -U 'pkgname' I get about 20 file "exists in filesystem". With my limited knolwedge I don't know how to fix this. pacman -Uf does it but is an ugly solution. What can I do with the PKGBUILD or maybe recommend users to uninstall the svn version first?
    Furthermore; there was a bit of code looking for the .svn directory
    # SVN checkout
    if [[ -d ${_svnmod}/.svn ]]; then
    (cd ${_svnmod} && svn up -r $pkgver)
    else
    svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
    fi
    which I changed to this;
    # GIT checkout
    if [[ -d ${_gitmod} ]]; then
    (cd ${_gitmod} && git pull )
    else
    git clone ${_gittrunk} ${_gitmod}
    fi
    The prupose is to look for previous source and not download it all again, just get the changes. svn up -r is quite straight forward but git pull, I find is not. I'd really appreciate some pointers on this.
    By the way, it compiles just fine and with pacman -Uf it works, I'd just like to make a proper PKGBUILD.
    Last edited by swanson (2012-02-03 22:35:17)

    Yes, that's the seems to be the easiest and cleanest way to go. Here's the new transmission-remote-gtk git version in AUR;
    https://aur.archlinux.org/packages.php?ID=56377

  • New PKGBUILDs for calpp and cpyrit-calpp

    Hello
    I wanted to try the calpp backend for pyrit (a WPA cracking utility), but couldn't find them in either the official repositiories or in AUR. There for I have created new PKGBUILDs for these, they work on my system (x86_64 3.1.0-4-ARCH), but as these are my first ones I wanted to post them here for review before I upload them to AUR.
    The main thing I have doubts about are the dependencies. I think I have listed them all but I'm not sure.
    Here is the PKGBUILD for calpp:
    # Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
    pkgname=calpp
    pkgver=0.90
    pkgrel=2
    pkgdesc="Library to allow writing ATI CAL kernels in C++"
    arch=('i686' 'x86_64')
    url="http://sourceforge.net/projects/calpp/"
    license=('GPL3')
    depends=('amdstream' 'boost')
    makedepends=('cmake')
    source=("http://sourceforge.net/projects/calpp/files/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
    md5sums=('efc3f519492ac8d3178fe42115ce3637')
    _streamdir='/opt/amdstream'
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    sed -i "s|\$ENV{ATISTREAMSDKROOT}/lib|${_streamdir}/lib|g" CMakeLists.txt
    sed -i "s|\$ENV{ATISTREAMSDKROOT}/include|/${_streamdir}/include/CAL|" CMakeLists.txt
    cmake -DCMAKE_INSTALL_PREFIX=/usr .
    make
    package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
    And here is the PKGBUILD for cpyrit-calpp:
    # Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
    pkgname=cpyrit-calpp-svn
    pkgver=308
    pkgrel=3
    pkgdesc="CAL++ backend for accelerated attack against WPA-PSK authentication, development version"
    url="http://code.google.com/p/pyrit/"
    license=('GPL3')
    arch=('i686' 'x86_64')
    depends=('python2' 'catalyst-utils' 'pyrit-svn')
    makedepends=('calpp')
    conflicts=('cpyrit-opencl-svn')
    _svntrunk='http://pyrit.googlecode.com/svn/trunk'
    _svnmod='cpyrit_calpp'
    _caldir='/usr/include/CAL/'
    build() {
    svn co "${_svntrunk}/${_svnmod}"
    cd "${_svnmod}"
    sed -i "s|VERSION = '0.4.0-dev'|VERSION = '0.4.1-dev'|" setup.py
    sed -i "s|CALPP_INC_DIRS = \[\]|CALPP_INC_DIRS = \[\'${_caldir}\'\]|" setup.py
    LDFLAGS="" python2 setup.py build
    package() {
    cd "${srcdir}/${_svnmod}"
    python2 setup.py install --root="${pkgdir}" --optimize=1
    Thanks in advance
    EDIT = Updated the PKGBUILDs
    Last edited by ozon-eatar (2011-11-30 22:15:56)

    Thanks for the respones Stebalien! I have changed the things you pointed out and updated my first post.
    I have also run namcap on both packages and their PKGBUILDs. The only thing namcap complains about on the PKGBUILDs are the lack of contributer tag, which I think is unnecessary as I'm listed as the maintainer.
    On the cpyrit-calpp package namcap complains about unnecessary dependencies:
    cpyrit-calpp-svn I: Depends as namcap sees them: depends=(catalyst-utils python2)
    I tried this dep array with all packages listed before uninstalled (well, catalyst and libpcap I couldn't uninstall) and it didn't work. When I added 'calpp' to makedepends it worked, and it ran after I uninstalled calpp again.
    As cpyrit-calpp-svn is a backend to the pyrit-svn package and pointless to install without pyrit-svn I added it back to the array. Might add that this is how the dep array looked before:
    depends=('python2' 'openssl' 'zlib' 'libpcap' 'amdstream' 'catalyst' 'calpp' 'pyrit-svn')
    This is what namcap is telling me about calpp:
    calpp I: Depends as namcap sees them: depends=()
    BUT it will neither build nor will it compile one of the examples without both amdstream and boost (not just boost-libs). Therefore I have not changed the dep array for calpp.

  • Git - maintain two branches for separate kernel26 packages?

    Hi, I'm maintaining two kernel26 packages on the AUR (kernel26-ice and kernel26-rt-ice). I'm wondering whether git would be suitable for maintaining a repo for both packages.
    kernel26-rt-ice is just derivative from kernel26-ice, but is currently very very left behind since the -rt patch devs haven't released since 2.6.33. This may or may not change in future, but the resulting difference between the PKGBUILDs increases my maintainance time.
    Previously I just had a small script which copied the kernel26-ice files to another folder, some sed hackery to change names/configs etc. Now I'm wondering if I could set up git branches to do the same. My idea is as follows:-
    1. Two branches named kernel26-ice and kernel26-rt-ice
    2. Changes made in kernel26-ice (the more active one) can be cherry-picked into kernel26-rt-ice. This includes general cleaning up of PKGBUILD etc. but not the commits which involve updating variables etc.
    Is this task suitable for git? Or should I just maintain separate trees and diff them every once in a while?

    ngoonee wrote:
    Dieter@be wrote:
    yes we can!
    git >> manual trees and patches
    What is the benefit over manual trees/patches in this specific case? I understand primarily the source control benefit (using it myself for my thesis software development), but am unfamiliar on whether it would actually make my life easier maintaining both packages.
    err there are so many things I could go into..
    with git you will basically have no issues.
    if you currently have no issues, don't switch. if you currently have one or more issues with your workflow, switch to git and those issues will be gone.

Maybe you are looking for