You are not logged in.
I have tried to install several packages from the AUR. Mostly font packages, awesome theme collections, yaourt, and packer. Every time I "makepkg -s" it downloads and installs all dependencies fine, but it fails whenever it tries to access the source data. Any ideas on why this happens and how to fix it?
Last edited by Tilley (2012-05-10 02:55:13)
Offline
If you could post some kind of error, maybe i can help you
EDIT: if you install the first time PKGBUILDS, did u installed base-devel? "pacman -S base-devel"
more information: https://wiki.archlinux.org/index.php/Makepkg#Usage
Last edited by xx4h (2012-05-09 20:10:51)
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
this is the output from makepkg -s when I try to install the awesome-themes-git package:
and yes, and I did install base-devel
==> Determining latest git revision...
-> Version found: 20120509
==> Making package: awesome-themes-git 20120509-1 (Wed May 9 15:10:24 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to GIT server...
Cloning into 'awesome-themes'...
fatal: Unable to look up github.com (port 9418) (No address associated with hostname)
==> ERROR: A failure occurred in build().
Aborting...
Offline
curious...
can u try a "ping github.com"?
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
Yep. That's why I don't get what the problem is.
PING www.github.com (207.97.227.243) 56(84) bytes of data.
64 bytes from gist.github.com (207.97.227.243): icmp_req=1 ttl=43 time=56.1 ms
64 bytes from gist.github.com (207.97.227.243): icmp_req=2 ttl=43 time=56.4 ms
64 bytes from gist.github.com (207.97.227.243): icmp_req=3 ttl=43 time=56.2 ms
--- www.github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 56.106/56.284/56.486/0.156 ms
Offline
This should work for now:
# Maintainer: demian <mikar ατ gmx δοτ de>
pkgname=awesome-themes-git
pkgver=20120509
pkgrel=1
pkgdesc="A (big) collection of themes for Awesome Window Manager, hosted and updated on GitHub"
arch=('any')
url="https://github.com/mikar/awesome-themes"
license=('GPL')
depends=('awesome')
makedepends=('git')
_gitroot="git://207.97.227.243/mikar/awesome-themes.git"
_gitname="awesome-themes"
build() {
cd ${srcdir}
msg "Connecting to GIT server..."
if [[ -d ${_gitname} ]]; then
(cd ${_gitname} && git pull origin)
else
git clone ${_gitroot} ${_gitname}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf ${_gitname}-build
git clone ${_gitname} ${_gitname}-build
}
package() {
cd ${srcdir}/${_gitname}-build
# Create installation directories
install -d -m755 "${pkgdir}/usr/share/awesome/themes/"
# Install the themes
cp -rf * "${pkgdir}/usr/share/awesome/themes/"
# Fix permissions. Stupid ntfs.
find "$pkgdir" -type d -print0 | xargs -0 chmod -R 755
find "$pkgdir" -type f -print0 | xargs -0 chmod -R 644
# But keep some scripts functional (currently only used with niceandclean theme)
find "$pkgdir" -type f -regex ".*\.sh$" -print0 | xargs -0 chmod 755
}
seems to be a git bug...crazy...
let me know if it worked and write about the other problems with installations
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
That did work! Thanks! But I wonder what the difference is. I looked but I couldn't see the difference in the PKGBUILD files. I'll post the other problems in a few minutes.
Offline
i've changed "_gitroot" from "git://github.com/mikar/awesome-themes.git" to "git://207.97.227.243/mikar/awesome-themes.git"
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
Here is the output of makepkg -s when I try to install packer:
[tilley@take-kun packer]$ makepkg -s
==> Determining latest git revision...
-> Version found: 20120509
==> Making package: packer 20120509-1 (Wed May 9 17:27:52 CDT 2012)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...
Targets (2): jansson-2.3-1 jshon-20111222-1
Total Download Size: 0.04 MiB
Total Installed Size: 0.17 MiB
Proceed with installation? [Y/n] y
:: Retrieving packages from community...
jansson-2.3-1-x86_64 30.5 KiB 150K/s 00:00 [######################] 100%
jshon-20111222-1-x86_64 9.8 KiB 806K/s 00:00 [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(2/2) checking available disk space [######################] 100%
(1/2) installing jansson [######################] 100%
(2/2) installing jshon [######################] 100%
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
==> Connecting to github GIT server....
Cloning into 'packer'...
error: Could not resolve host: (nil); No address associated with hostname while accessing https://github.com/bruenig/packer.git/info/refs
fatal: HTTP request failed
==> ERROR: A failure occurred in build().
Aborting...
Offline
try this:
pkgname=packer
pkgver=20120302
pkgrel=1
pkgdesc="Bash wrapper for pacman and aur"
url="http://github.com/bruenig/packer"
license="GPL"
arch=('any')
makedepends=('git')
depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon')
optdepends=('sudo: install and update packages as non-root'
'customizepkg: apply customizepkg modifications')
_gitroot='git://207.97.227.243/bruenig/packer.git'
_gitname='packer'
# Xavion is a non-contributing idiot
build() {
cd "$srcdir"
msg "Connecting to github GIT server...."
if [ -d "$srcdir/$_gitname" ] ; then
cd $_gitname && git pull origin
else
git clone "$_gitroot"
cd $_gitname
fi
mkdir -p "$pkgdir/usr/bin/"
mkdir -p "$pkgdir/usr/share/man/man8/"
install -m 755 packer "$pkgdir/usr/bin/packer"
install -m 644 packer.8 "$pkgdir/usr/share/man/man8/packer.8"
}
i have to ask...whats in your /etc/resolv.conf?
Last edited by xx4h (2012-05-09 22:41:31)
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
Okay, now I've got packer installed. I'm going to try to install from AUR with it and see if I still get errors like that.
Offline
Using packer didn't fix the problem. Is there any way to fix this without replacing every web address with the isp address?
Offline
my /etc/resolv.conf:
pkgname=packer
pkgver=20120302
pkgrel=1
pkgdesc="Bash wrapper for pacman and aur"
url="http://github.com/bruenig/packer"
license="GPL"
arch=('any')
makedepends=('git')
depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon')
optdepends=('sudo: install and update packages as non-root'
'customizepkg: apply customizepkg modifications')
_gitroot='git://207.97.227.243/bruenig/packer.git'
_gitname='packer'
# Xavion is a non-contributing idiot
build() {
cd "$srcdir"
msg "Connecting to github GIT server...."
if [ -d "$srcdir/$_gitname" ] ; then
cd $_gitname && git pull origin
else
git clone "$_gitroot"
cd $_gitname
fi
mkdir -p "$pkgdir/usr/bin/"
mkdir -p "$pkgdir/usr/share/man/man8/"
install -m 755 packer "$pkgdir/usr/bin/packer"
install -m 644 packer.8 "$pkgdir/usr/share/man/man8/packer.8"
p.s. how do you get your code in that spiffy little box?
Offline
i hope that's not your resolv.conf
for code in little box write:
[ code] HERE YOUR CODE [ /code]
but delete space between "[" and "c"
and space between "[" and "/"
Last edited by xx4h (2012-05-09 23:45:12)
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
oh, oops! That was a user initiated clipboard error! lolz Thanks for the code tip!
here's the real resolv.conf
# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.254
# /etc/resolv.conf.tail can replace this line
Offline
haaa. here we go.
change your resolv.conf to (you can also add it to the bottom if the ip in your resolv.conf is the internal ip of your gateway/router/nameserver):
# OpenDNS servers
nameserver 208.67.222.222
nameserver 208.67.220.220
and then add to /etc/dhcpcd:
nohook resolv.conf
more information here: https://wiki.archlinux.org/index.php/Re … S_settings
after you've done that, pls try again installing or reinstalling a package which failed before.
Last edited by xx4h (2012-05-10 01:27:21)
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline
Sweet! It worked! *highfive* So the nohook line in /etc/dhcpcd keeps dhcpcd from overwriting the OpenDNS servers now listed in the resolv.conf..?
Offline
nm, I just read that in the link you gave. I should read first and ask questions later...
Offline
any questions/issues left? if not, change topic to solved
Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx
Offline