[SOLVED]PKGBUILD change to install to /usr/bin

I have this package installed and it needs to be changed to install to /usr/bin, now it installs to usr/sbin. I really dont know much about this so if someone could point out what i need to change i would appreciate it.
https://aur.archlinux.org/packages/?O=0 … fsarchiver
# qt4-fsarchiver by Francois Dupoux, Hihin Ruslan and Dieter Baum
# PKGBUILD by hasufell, updated by DaarkWel
pkgname=qt4-fsarchiver
pkgver=0.6.17_3
pkgrel=1
pkgdesc='GUI for fsarchiver'
arch=('i686' 'x86_64')
url='http://sourceforge.net/projects/qt4-fsarchiver/'
license=('GPL')
depends=('fsarchiver' 'gksu')
makedepends=('qt4')
source=("http://sourceforge.net/projects/${pkgname}/files/source/${pkgname}-${pkgver//_/-}.tar.gz")
sha1sums=('8b474af6fd81d604f357348567608f450dbe83e7')
build() {
cd "${srcdir}/${pkgname}"
qmake-qt4
package() {
cd "${srcdir}/${pkgname}"
make
make INSTALL_ROOT="${pkgdir}" install
mkdir -p ${pkgdir}/usr/share/qt/translations
rm -R ${pkgdir}/usr/share/qt4
install -D -m644 ${srcdir}/${pkgname}/translations/*.qm ${pkgdir}/usr/share/qt/translations
sed s/Terminal=true/Terminal=false/ -i ${pkgdir}/usr/share/applications/qt4-fsarchiver.desktop
sed s/sudo/gksu/ -i ${pkgdir}/usr/share/applications/qt4-fsarchiver.desktop
Last edited by cecar (2013-06-04 13:22:28)

There is a problem in that PKGBUILD. The make shouldn't be in the package function. It should be in the build function, just after qmake-qt4.
And the qmake project hard codes the destination to /usr/sbin. In that case, the correct PKGBUILD should be:
# qt4-fsarchiver by Francois Dupoux, Hihin Ruslan and Dieter Baum
# PKGBUILD by hasufell, updated by DaarkWel
pkgname=qt4-fsarchiver
pkgver=0.6.17_3
pkgrel=1
pkgdesc='GUI for fsarchiver'
arch=('i686' 'x86_64')
url='http://sourceforge.net/projects/qt4-fsarchiver/'
license=('GPL')
depends=('fsarchiver' 'gksu')
makedepends=('qt4')
source=("http://sourceforge.net/projects/${pkgname}/files/source/${pkgname}-${pkgver//_/-}.tar.gz")
sha1sums=('8b474af6fd81d604f357348567608f450dbe83e7')
build() {
cd "${srcdir}/${pkgname}"
qmake-qt4
make
package() {
cd "${srcdir}/${pkgname}"
make INSTALL_ROOT="${pkgdir}" install
mkdir -p ${pkgdir}/usr/share/qt/translations
rm -R ${pkgdir}/usr/share/qt4
install -D -m644 ${srcdir}/${pkgname}/translations/*.qm ${pkgdir}/usr/share/qt/translations
# workaround for fixed destination path in qmake project
mkdir -p ${pkgdir}/usr/bin
mv ${pkgdir}/usr/sbin/qt4-fsarchiver ${pkgdir}/usr/bin/
rmdir ${pkgdir}/usr/sbin
sed s/Terminal=true/Terminal=false/ -i ${pkgdir}/usr/share/applications/qt4-fsarchiver.desktop
sed s/sudo/gksu/ -i ${pkgdir}/usr/share/applications/qt4-fsarchiver.desktop

Similar Messages

  • SeLinux Checkpolicy install error ( /usr/bin/ld: cannot find -lfl)

    I am trying to setup selinux per the arch wiki, but I ran into an error when trying to install the checkpolicy package from the AUR. I keep getting the following error:
    ==> Starting build()...
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o checkpolicy.o -c checkpolicy.c
      bison -y -d policy_parse.y
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o y.tab.o -c y.tab.c
      lex policy_scan.l
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o lex.yy.o -c lex.yy.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o queue.o -c queue.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o module_compiler.o -c module_compiler.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o parse_util.o -c parse_util.c
      cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o policy_define.o -c policy_define.c
      cc -Wl,-O1,--sort-common,--as-needed,-z,relro  checkpolicy.o y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o  /usr/lib/libsepol.a -lfl -o checkpolicy
      /usr/bin/ld: cannot find -lfl
      collect2: error: ld returned 1 exit status
      <builtin>: recipe for target 'checkpolicy' failed
      make: *** [checkpolicy] Error 1
    any ideas? I have been googling for a few hours trying to find out about the -lfl and to see if i am missing it , but cannot figure this out. I downloaded the tar for checkpolicy and have the same issue.
    Should I be altering the makefile in anyway so that /usr/bin/ld can find -lfl ?
    Last edited by johnnyboy (2014-11-12 06:43:49)

    @Allan: The selinux-flex package is needed as part of the installation process.
    Something tells me that this AUR package needs to be updated.
    But yes, a solution appears to be to remove selinux-flex and install flex and then compile checkpolicy.
    Last edited by clfarron4 (2014-11-12 12:36:42)

  • [SOLVED] Zsh and the move to /usr/bin

    I've done everything in the article, and I have no unofficial packages.
    However, I do use zsh as my shell, so I thought I might as well ask before doing anything:
    Blog wrote:# pacman -Syu --ignore filesystem,bash
    # pacman -S bash
    # pacman -Su
    Should I replace bash with zsh here? I do have both bash and zsh installed.
    EDIT: I did indeed forget to mount /boot. After doing that the update worked perfectly.
    Last edited by graph (2013-06-03 19:23:37)

    Alright, I have one working shell. I have no Ignores but I do have
    HoldPkg = pacman glibc
    in /etc/pacman.conf - Could this be the culprit?
    Also, here are the (missing) output of the commands from the article. I'm quite interested in knowing whether all my autofs-partitions are mounted, which I believe they are.
    # pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
    # find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
    # mount
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    dev on /dev type devtmpfs (rw,nosuid,relatime,size=1538736k,nr_inodes=216743,mode=755)
    run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    /dev/sda5 on / type ext4 (rw,relatime,data=ordered)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    systemd-1 on /boot type autofs (rw,relatime,fd=36,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    systemd-1 on /home type autofs (rw,relatime,fd=37,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    configfs on /sys/kernel/config type configfs (rw,relatime)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    tmpfs on /tmp type tmpfs (rw)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    /dev/sda6 on /home type ext4 (rw,noatime,data=ordered)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    Last edited by graph (2013-06-03 18:00:47)

  • /usr/bin/install is missing!

    Well, I don't know how this one happened.  I was trying to "make install" a program I had just finished compiling, and then I get a message saying that /usr/bin/install is missing.  I checked /usr/bin for "install", and it isn't there, even though it was before.  How do I fix this problem?
    Last edited by Falcata (2008-01-25 22:02:46)

    Problem solved.  I made a link to /bin/install under /usr/bin, and it worked fine.
    Now then, another question: why did Nodoka get installed under /usr/local/lib, rather than /usr/lib?
    EDIT: Should have waited a moment before posting, I guess.  How do you install packages from AUR?  Or packages that you downloaded onto your system?
    Last edited by Falcata (2008-01-25 23:41:26)

  • [Solved] Yaourt doesn't install dependencies?

    I'm trying to get yaourt to install netflix-desktop and after asking if i want to edit PKGBUILD it states the dependencies.  The first few are already installed, but then it hits the ones that are not on the system. Problem is that it states that it is "building from AUR" for all of them, but when I get to installing netflix-desktop, it says they are not found.  Do i seriously have to manually go through all dependencies and install them?
    There must be a way to get yaourt to install them by itself.
    Last edited by Xerict (2013-11-22 20:55:53)

    Here is the output:
    [xxxx@arch ~]$ yaourt -S netflix-desktop
    ==> Downloading netflix-desktop PKGBUILD from AUR...
    x NetflixIcon.png
    x netflix-desktop.install
    x netflix-desktop.desktop
    x PKGBUILD
    x netflix-desktop.launcher
    Comment by anish (2013-11-05 08:22)
    You can ignore the fixme: errors, they're just informative and do not affect netflix. What is the wine-silverlight version you are running ?
    Comment by kjslag (2013-11-16 23:06)
    I was using wine-silverlight 1.7.5-2. I just upgraded to 1.7.6-1 and now it works. thanks!
    Comment by kjell (2013-11-18 22:28)
    Is there any way to stop it from starting @compholio.com. Changing the homepage isn't working.
    Comment by anish (2013-11-18 22:36)
    @kjell Yes. Change line 29 in /usr/bin/netflix-desktop to whatever you like, or launch netflix-desktop as :
    netflix-desktop URL="www.foo.com"
    Comment by kjell (2013-11-22 07:32)
    @anish Thanks, I have it changed to netflix.com now.
    netflix-desktop 0.8.5-6 (Mon Nov 19 20:13:54 CST 2012)
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> netflix-desktop dependencies:
    - ttf-ms-fonts (already installed)
    - zenity (already installed)
    - wget (already installed)
    - python2-pyxattr (already installed)
    - wine-silverlight>=1.7.6-1 (building from AUR)
    - wine-browser-installer (building from AUR)
    - lib32-libsm (building from AUR)
    - lib32-alsa-lib (building from AUR)
    - lib32-openal (building from AUR)
    - lib32-mpg123 (building from AUR)
    - lib32-libpng12 (building from AUR)
    - lib32-libpng (building from AUR)
    - lib32-libxcomposite (building from AUR)
    ==> Edit netflix-desktop.install ? [Y/n] ("A" to abort)
    ==> ---------------------------------------------------
    ==> n
    ==> Continue building netflix-desktop ? [Y/n]
    ==> -----------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for netflix-desktop:
    error: target not found: lib32-libpng12
    error: target not found: lib32-mpg123
    error: target not found: lib32-alsa-lib
    error: target not found: lib32-libxcomposite
    error: target not found: lib32-libpng
    error: target not found: lib32-openal
    error: target not found: lib32-libsm
    ==> Restart building netflix-desktop ? [y/N]
    ==> ----------------------------------------
    ==>
    It just looks like it SAID it was installing dependencies, but was totally lying...

  • /usr/local/bin vs /usr/bin and Kazehakase vs Firefox

    When you install an application to /usr/bin  will it be more faster than installed on /usr/local/bin?
    I have Firefox installed in /usr/bin and Kazehakase installed to /usr/local/bin. And it seems that Firefox is faster than Kazehakase. Why?
    Last edited by Paingiver (2008-03-15 11:11:48)

    dyscoria wrote:
    Endperform wrote:The notion that an application can be sped up by linking it in your home directory, or even renaming it to one letter is also crazy.  Your install will search for an executable in the path specified in $PATH and then execute the first instance it finds, but this does NOT speed the application itself up.
    No seriously, if you rename all your executables to one letter then your system runs like lightning!
    * am i really that bad at sarcasm? *
    Yes, since there was no indication of sarcasm in your post.  A or would have worked

  • HT5730 Lost content on /usr/bin/ and .bash_profile

    I've installed the update and it seems to have reset my .bash_profile.
    It also seems to have removed some programs I had installed under /usr/bin like Git and Macports among others.
    This is a big let down for me, coming from Apple.

    Posix standards have nothing to do with Apple. /usr/bin/ is reserved for binary files delivered from the distribution. /usr/local/bin is available for administrators to add binary files which will not be touched by an update. If you wish to install in /usr/bin then it is YOUR responsibility to maintain the added binaries. MacPorts normally installs in the opt/local/ directory did you customize your installation?
    For some reason /opt/local/bin was removed from my PATH. But yes, MacPorts was actually still installed in that folder.
    I installed Git through the Command Line Tools installation from Xcode, so I didn't choose anything.
    Nevertheless, I did not expect any update to remove anything I've installed on my system nor mess with my home folder without first warning me about it .

  • [Solved] Permissions problem /usr/bin/install: cannot create

    I've been looking at this for quite a while now and am running out of ideas/inspiration. Google isn't helping and after reading the docs on the wiki, I'm still none the wiser.
    So, I've compiled the source code properly but my PKGFILE is having a problem at the make install stage:
    make[2]: Entering directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
    /bin/sh ../mkinstalldirs /usr/bin
    /usr/bin/install -c foobillard /usr/bin/foobillard
    /usr/bin/install: cannot create regular file ‘/usr/bin/foobillard’: Permission denied
    make[2]: *** [install-binPROGRAMS] Error 1
    make[2]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
    make: *** [install-recursive] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    My PKGFILE can be seen at: http://pastebin.com/wrbZ6niq.
    TIA
    Last edited by kabads (2013-05-14 20:50:54)

    kabads wrote: and after reading the docs on the wiki, I'm still none the wiser.
    What exactly have you been reading? Because if you take /usr/share/pacman/PKGBUILD.proto or read https://wiki.archlinux.org/index.php/Creating_Packages, you can't get to what you have without some serious changes. It seems like you took some bad and old PKGBUILD (not PKGFILE) as a starting point instead of more official/up-to-date docs.
    At the very least you should read the section about the package() function.
    Edit: now you can copy/paste from the above reply, but try to understand how makepkg works. And since you passed the prefix to ./configure, it's unlikely that you'll need it again for the install step.
    Last edited by Raynman (2013-05-14 20:25:51)

  • [SOLVED] .. error: coreutils: /usr/bin/install exists in filesystem

    Hi All,
    Getting the following error:
    (85/85) checking for file conflicts [###########################] 100%
    error: failed to commit transaction (conflicting files)
    coreutils: /usr/bin/install exists in filesystem
    I am reluctant to delete/move /usr/bin/install for fear of breaking the system ..
    Anyone help here?
    Last edited by bmentink (2012-04-05 02:26:42)

    I just ran into this same issue today while performing a full system upgrade. After some investigation, I came to agree with the OP that manually removing "/usr/bin/install" is the correct action to take.
    Prior to successfully executing the full system upgrade, I found that /usr/bin/install was a symlink to /bin/install. Using "pacman -Qo /bin/install", I found that the file /bin/install was owned by the coreutils 8.15-1 package. The symlink /usr/bin/install, however, was not owned by any package. The conflict arises because coreutils 8.16-2 wants to put the new install program in /usr/bin instead of its previous location under /bin.
    My memory is a bit fuzzy, but I seem to recall running into a problem installing some third party library that had /usr/bin/install hard-coded into its build script and claimed the file didn't exist. I may have manually created the symlink /usr/bin/install to /bin/install as a quick-fix, then forgot to remove it. In retrospect, I could have confirmed/refuted this hypothesis by comparing the time stamp on the symlink /usr/bin/install to /bin/install. If the symlink was created well after /bin/install, then I'm probably to blaim; on the other hand, if the symlink was created essentially at the time /bin/install was created, then most likely the creators of the coreutils package forgot to claim ownership of the symlink.

  • Make: execvp: /usr/bin: Permission denied[SOLVED]

    hey, I'm trying to install an app called jconv.
    I get this error:
    make: execvp: /usr/bin: Permission denied
    here is the make file..(don't have the first clue on making a PKGBUILD)
    #  Copyright (C) 2005-2007 Fons Adriaensen <[email protected]>
    #  This program is free software; you can redistribute it and/or modify
    #  it under the terms of the GNU General Public License as published by
    #  the Free Software Foundation; either version 2 of the License, or
    #  (at your option) any later version.
    #  This program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #  GNU General Public License for more details.
    #  You should have received a copy of the GNU General Public License
    #  along with this program; if not, write to the Free Software
    #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    PREFIX = /usr
    SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
    LIBDIR = lib$(SUFFIX)
    DISTDIR = jconv-$(VERSION)
    VERSION = 0.2.0
    LDFLAGS += -L$(PREFIX)/$(LIBDIR)
    CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\"
    #CPPFLAGS += -march=i686 -mtune=pentium4 -msse -msse2 -m3dnow -O3 -ffast-math
    # Uncomment if you use a libsndfile version without support for setting/getting the Ambisonic flags.
    CPPFLAGS += -DNOAMBIS=1
    all:    jconv fconv mkwavex
    JCONV_O =    jconv.o config.o jconfig.o jclient.o
    jconv:    LDLIBS += -lzita-convolver -lfftw3f -lsndfile -lclthreads -ljack -lpthread -lrt
    jconv:    $(JCONV_O)
        g++ $(LDFLAGS) -o $@ $(JCONV_O) $(LDLIBS)
    $(JCONV_O):
    -include $(JCONV_O:%.o=%.d)
    FCONV_O =    fconv.o config.o fconfig.o
    fconv:    LDLIBS += -lzita-convolver -lfftw3f -lsndfile -lpthread -lrt
    fconv:    $(FCONV_O)
        g++ $(LDFLAGS) -o $@ $(FCONV_O) $(LDLIBS)
    $(FCONV_O):
    -include $(FCONV_O:%.o=%.d)
    MKWAVEX_O =    mkwavex.o impdata.o
    mkwavex : LDLIBS += -lsndfile -lrt
    mkwavex:    $(MKWAVEX_O)
        g++ $(LDFLAGS) -o $@ $(MKWAVEX_O) $(LDLIBS)
    install:    jconv fconv mkwavex
        /usr/bin/install -m 755 jconv $(PREFIX)/bin
        /usr/bin/install -m 755 fconv $(PREFIX)/bin
        /usr/bin/install -m 755 mkwavex $(PREFIX)/bin
    clean:
        /bin/rm -f *~ *.o *.a *.d *.so jconv fconv
    Last edited by funkmuscle (2008-10-23 21:51:15)

    Thanx Chok. I know that. That's why I'm posting this. This app was make for debian so it's something to do with:
    install:    jconv fconv mkwavex
        /usr/bin/install -m 755 jconv $(PREFIX)/bin
        /usr/bin/install -m 755 fconv $(PREFIX)/bin
        /usr/bin/install -m 755 mkwavex $(PREFIX)/bin
    solved...I removed [/usr/bin/install -m 755] and replaced with [install]
    so it looked like this:
    install $(PREFIX)/bin
    Last edited by funkmuscle (2008-10-23 21:50:26)

  • 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.
    /crobot

    Thanks 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

  • How to change /usr/bin/grep To /usr/local/bin/grep

    Hi
    I have installed GNU Grep but when I am giving the command #which grep it is showing me solaris grep i.e /usr/bin/grep.
    My question is how do I change it to /usr/local/bin/
    Thanks in advance
    Sukrut

    You have a few options:
    1) place /usr/local/bin before /usr/bin in your PATH environment variable
    2) remove /usr/bin/grep altogether
    3) move /usr/bin/grep to something else (ie: /usr/bin/solaris/grep) and symlink /usr/bin/grep to /usr/local/bin/grep just in case any hard coded programs/scripts rely on /usr/bin/grep being present.
    I prefer step #3 since most of the various gnu utilities are virtually 100% drop-in replacements.

  • What does this error message mean and how do I solve it? "Sorry, one or more of the following command-line tools was not found:  /usr/bin/lsbom, /bin/pax, /bin/mkdir, /bin/chmod, or /usr/bin/update_prebinding."

    When I try to open up this program, Pacifist, I receive this error message. Here's a screenshot. http://i.imgur.com/v717w.jpg What does this error message mean and how do I solve it?

    It sounds like some of the Unix Executable commands were removed (or the permissions to those were modified) out of the /usr/bin/ folder.  You can try opening disk utility and repairing permissions on Macintosh HD or you can reboot your computer and holding down option-r when it comes back up to reinstall Lion again.  This will not delete your personal information or applications you have installed but it would be best to back it up to Time Machine before you do.  The article on how to do this is here. (http://www.apple.com/macosx/recovery/)  I have had to do this before and it works like a charm.  It should fix your issue but grab a cup of coffee because its going to take about 35 - 40 minutes depending on how fast your computer is.

  • [SOLVED] changing the owner of /usr

    after installing the arch successfully. i noticed that virtualbox does not work and gives a message about permission. i noticed that the ownership of /usr is not root. because i had this problem before on arch, i changed the ownership by "chown root:root /usr -R" .
    Now i can not do su , mount a win drive ...... and get error for permission. How can i undo that command?????
    Last edited by hadian (2013-10-06 12:59:44)

    chown root:root /usr -R
    I don't know what you have going on.
    /usr should have been
    ls -ld /usr
    drwxr-xr-x 9 root root 4096 Aug 2 11:22 /usr
    And su should be
    ls -l /usr/bin/su
    -rwsr-xr-x 1 root root 27496 Jul 31 08:15 /usr/bin/su
    Did you remove suid on mount and su?
    ls -l /usr/bin | grep rws
    -rwsr-sr-x 1 daemon daemon 46064 May 12 09:31 at
    -rwsr-xr-x 1 root root 55736 May 30 08:17 chage
    -rwsr-xr-x 1 root root 23520 Jul 31 08:15 chfn
    -rwsr-xr-x 1 root root 19360 Jul 31 08:15 chsh
    -rwsr-xr-x 1 root root 44296 Jun 23 04:17 crontab
    -rwsr-xr-x 1 root root 24000 May 30 08:17 expiry
    -rwsr-xr-x 1 root root 31384 Jul 31 11:25 fusermount
    -rwsr-xr-x 1 root root 69200 May 30 08:17 gpasswd
    -rwsr-xr-x 1 root root 52104 Jun 10 01:46 ksu
    -rwsr-xr-x 1 root root 40104 Jul 31 08:15 mount
    -rwsr-sr-x 1 root root 39704 Jul 4 03:19 mount.cifs
    -rwsr-xr-x 1 root root 10608 Jul 31 08:15 newgrp
    -rwsr-xr-x 1 root root 47816 May 30 08:17 passwd
    -rwsr-xr-x 1 root root 23304 Jun 14 09:57 pkexec
    -rwsrwxr-x 1 root root 56464 May 29 23:31 rcp
    -rwsrwxr-x 1 root root 52552 May 29 23:31 rlogin
    -rwsrwxr-x 1 root root 52296 May 29 23:31 rsh
    -rwsr-xr-x 1 root root 33272 May 30 08:17 sg
    -rwsr-xr-x 1 root root 27496 Jul 31 08:15 su
    -rwsr-xr-x 1 root root 129384 Jun 14 03:58 sudo
    -rwsr-xr-x 1 root root 27544 Jul 31 08:15 umount
    -rwsr-sr-x 1 root root 31344 May 19 10:04 unix_chkpwd
    -rwsr-xr-x 1 root root 2133544 Sep 13 06:29 Xorg
    EDIT:
    Also everything in /usr isn't suppose to be owned by root
    find /usr ! -user root
    /usr/share/polkit-1/rules.d
    /usr/bin/at
    Last edited by teckk (2013-09-26 18:09:33)

  • [SOLVED]pacman: libusb-compat: /usr/bin/libusb-config exists ...

    Hi,
    I just installed the arch base system and did a 'pacman -S kernel26' and got some errors
    error: failed to commit transaction (conflicting files)
    libusb-compat: /usr/bin/libusb-config exists in filesystem
    libusb-compat: /usr/include/usb.h exists in filesystem
    libusb-compat: /usr/lib/libusb-0.1.so.4 exists in filesystem
    libusb-compat: /usr/lib/libusb-0.1.so.4.4.4 exists in filesystem
    libusb-compat: /usr/lib/libusb.a exists in filesystem
    libusb-compat: /usr/lib/libusb.so exists in filesystem
    libusb-compat: /usr/lib/pkgconfig/libusb.pc exists in filesystem
    Errors occurred, no packages were upgraded.
    this page I found on google contains error messages very similar to mine: http://pastebin.com/twGU7Yy3
    any ideas?
    Last edited by tgoossens (2011-08-11 17:12:32)

    [SOLVED] I believe this is a related topic: https://bbs.archlinux.org/viewtopic.php?id=23774
    Last edited by tgoossens (2011-08-11 17:11:52)

Maybe you are looking for

  • How do you combine mutable iphoto libraries and clean up duplicates

    how do you combine multiple iphoto libraries and clean up duplicates

  • Problem with Scene navigation

    I am using Flash 8 to develop mobile applications for Nokai 6600. I have three scenes in my FLA file and i am using the navigation keys to navigate to the scenes. When I test my application in the emulator, the first and second scenes are working pro

  • PB still thinks external monitor is there

    Any thoughts on why my Powerbook still thinks the secondary monitor is attached? I had connected an external monitor to my PB via the S-Video port for a presentation, and since then - it still thinks the monitor is there. I've restarted, reset PRAM,

  • Premiere won't accept new source files in slightly different formats...

    I'm using CS3 (and I installed CS4 and got the same problem).  I've created a video using six different source videos that were originally encoded in XVID.  I now know that was a bad idea but at the time I didn't know how to convert the video so I we

  • 2 concurrent VPN connections

    ISP: Comast Broadband LinkSys Wireless Router: SRX200 (WRT54GX2) PCs: 2 Dell laptops, D410 & D600 PC Connections: Each laptop works wired or wirelessly to access Internet Problem statement: When my wife an dI both work from home, we can only maintain