You are not logged in.

#1 2012-05-13 21:30:57

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

[SOLVED] Transient prob, can't resolve host when building AUR packages

I'm building xscreensaver-arch-logo from the AUR. I downloaded the PKGBUILD into an empty directory, ran

makepkg -s

, but I get this error:

==> Making package: xscreensaver-arch-logo 5.15-3 (Sat May 12 03:13:31 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading xscreensaver-5.15.tar.gz...
Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
curl: (6) Could not resolve host: www.jwz.org; No address associated with hostname
==> ERROR: Failure while downloading xscreensaver-5.15.tar.gz
    Aborting...

My internet connection is working at the moment. I can download the tarball from the AUR (this link: https://aur.archlinux.org/packages.php?ID=26586), but if I place it in the same directory as the PKGBUILD file, I get this error when I run makepkg -s:

==> Making package: xscreensaver-arch-logo 5.15-3 (Sat May 12 03:18:59 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found xscreensaver-5.15.tar.gz
==> ERROR: add-electricsheep.diff was not found in the build directory and is not a URL.

Any help here? I've read of the benefits of using this package over the one in the official repositories, so I'd prefer to use the AUR version if at all possible.

Last edited by pythonscript (2012-05-27 16:05:26)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#2 2012-05-14 00:26:00

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

pythonscript wrote:

I can download the tarball from the AUR (this link: https://aur.archlinux.org/packages.php?ID=26586), but if I place it in the same directory as the PKGBUILD file, I get this error when I run makepkg -s:

Perhaps I'm misunderstanding, but you're not supposed to put an unextracted AUR tarball in the same directory as the PKGBUILD... you're supposed to extract the tarball and inside will be the PKGBUILD and all additional sources that are needed.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-05-14 00:47:44

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

My apologies, I wasn't clear. When I extract the tarball, these are the files I see:

aclocal.m4     driver/              Makefile.in     setup.com
config.guess*  hacks/               makevms.com     utils/
config.h.in    INSTALL              OSX/            xscreensaver.spec
config.h-vms   install-sh           po/             xscreensaver.xcodeproj/
config.sub*    intltool-extract.in  README
configure*     intltool-merge.in    README.hacking
configure.in   intltool-update.in   README.VMS

Running makepkg -s yields the error:

==> ERROR: PKGBUILD does not exist.

If I download the PKGBUILD file from the linked page and place it in the directory listed above, then run makepkg -s, I get the stated error:

==> Making package: xscreensaver-arch-logo 5.15-3 (Sat May 12 06:36:15 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading xscreensaver-5.15.tar.gz...
Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
curl: (6) Could not resolve host: www.jwz.org; No address associated with hostname
==> ERROR: Failure while downloading xscreensaver-5.15.tar.gz
    Aborting...

The README file has this to say:

This is the XScreenSaver source code distribution.  It is strongly recommended
that you install a binary release rather than trying to compile it yourself.
Binaries are available for almost all platforms, including MacOS X.  See the
XScreenSaver web site for details.

To compile on a Unix system with X11:

    ./configure
    make
    make install

I'm hesistant to try this because of the warning and because the instructions on the Arch Linux wiki make this package sound like any other AUR package, in that makepkg -s should work.

Last edited by pythonscript (2012-05-14 00:49:28)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#4 2012-05-14 01:12:49

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Actually, this problem does not appear to be unique to the xscreensaver package. When I downloaded the dropbox package from the AUR and run its PKGBUILD (which *is* present in the extracted folder) it tries to download the tar.gz package, but returns a curl error instead. Is this potentially a problem with curl?


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#5 2012-05-14 05:23:05

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

The tarball you need to download and extract is xscreensaver-arch-logo-tar.gz.  It contains the following files:

LICENSE                add-electricsheep.diff logo-180.xpm           logo-50.xpm
PKGBUILD               logo-180.png           logo-50.png            xscreensaver.pam

You seem to have downloaded and extracted the source for xscreensaver instead.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2012-05-14 05:33:57

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

I believe I did download the wrong source package for xscreensaver, but if I download the package from this link: https://aur.archlinux.org/packages/xs/x … ogo.tar.gz and extract it, these are the files I see.

add-electricsheep.diff  logo-180.png  logo-50.png  PKGBUILD
LICENSE                 logo-180.xpm  logo-50.xpm  xscreensaver.pam

That all appears correct. However, running makepkg -s in that directory yields the same error as the original post:

==> Making package: xscreensaver-arch-logo 5.15-3 (Fri May 11 23:11:01 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading xscreensaver-5.15.tar.gz...
Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
curl: (6) Could not resolve host: www.jwz.org; No address associated with hostname
==> ERROR: Failure while downloading xscreensaver-5.15.tar.gz
    Aborting...

Also, I receive a highly similar error when building the dropbox package from the AUR, which hints to me that this is a wider problem than simply the xscreensaver package. When downloading the dropbox tar file (link to file: https://aur.archlinux.org/packages/dr/d … ox.tar.gz), extracting it and listing the directory yields this:

dropbox.desktop  dropbox.png  PKGBUILD  terms.txt

However, the error upon running makepkg -s is similar.

==> Making package: dropbox 1.4.3-1 (Fri May 11 23:13:01 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading dropbox-lnx.x86-1.4.3.tar.gz...
Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
curl: (6) Could not resolve host: dl-web.dropbox.com; No address associated with hostname
==> ERROR: Failure while downloading dropbox-lnx.x86-1.4.3.tar.gz
    Aborting...

Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#7 2012-05-14 06:59:45

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Then yes, something's wrong with curl on your system. Try changing the download agent to wget in /etc/makepkg.conf.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#8 2012-05-14 07:26:29

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Make sure it isn't being blocked by a firewall, plus someone else had a similar problem.

https://bbs.archlinux.org/viewtopic.php?pid=1099680


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#9 2012-05-14 14:33:42

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

ConnorBehan wrote:

Then yes, something's wrong with curl on your system. Try changing the download agent to wget in /etc/makepkg.conf.

My /etc/makepkg.conf contains this section on download utilities:

#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

Is changing the download agent as simple as change /usr/bin/curl to /usr/bin/wget?


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#10 2012-05-14 18:27:51

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Not quite. I have

DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3'
	  'http::/usr/bin/wget -c -t 3 --waitretry=3'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate'
          'rsync::/usr/bin/rsync -z'
          'scp::/usr/bin/scp -C')

6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#11 2012-05-14 18:45:10

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Replacing the appropriate lines in /etc/makepkg.conf with the settings you posted, then running makepkg -s, yields the following error for xscreensaver-arch-logo (and something similar for dropbox):

==> Making package: xscreensaver-arch-logo 5.15-3 (Thu May 17 05:41:14 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading xscreensaver-5.15.tar.gz...
--2012-05-17 05:41:25--  http://www.jwz.org/xscreensaver/xscreensaver-5.15.tar.gz
Resolving www.jwz.org... failed: No address associated with hostname.
wget: unable to resolve host address `www.jwz.org'
==> ERROR: Failure while downloading xscreensaver-5.15.tar.gz
    Aborting...

Could this be a firewall problem? I haven't installed any firewall that I know of, but should a certain port be open? Running

sudo nmap -sS 127.0.0.1

shows these ports open:

Nmap scan report for localhost.localdomain (127.0.0.1)
Host is up (0.000028s latency).
Not shown: 999 closed ports
PORT     STATE SERVICE
6000/tcp open  X11

Is this relevant? The "no address associated with hostname" makes me think a DNS problem could be occuring, but I don't know how to verify or fix this.


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#12 2012-05-14 18:52:45

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Did you read the thread I posted above?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#13 2012-05-14 19:22:14

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

Yes. Based on the thread you linked, I added lines to /etc/resolv.conf, so it now looks like this:

# Generated by NetworkManager
nameserver 192.168.7.254

# OpenDNS servers - lines I added
nameserver 208.67.222.222
nameserver 208.67.220.220

and I added this to /etc/dhcpcd.conf:

nohook resolv.conf

I still get an error. After rebooting, the lines I added to my /etc/resolv.conf disappeared. I still get the error.

EDIT: Hot darn! Apparently emacs didn't write the buffer the first time, so the changes to /etc/resolv.conf didn't commit. Once I made those changes and they actuall wrote to the file, the error has vanished. I'm building the package now, so hopefully it'll work.

Last edited by pythonscript (2012-05-14 19:23:29)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#14 2012-05-14 19:54:26

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

xscreensaver-arch-logo installed correctly, but after rebooting, the changes I made to /etc/resolv.conf have disappeared again, and I know emacs wrote the file properly. I get the same resolution errors when trying to install the dropbox package. Is there a way to make these changes to /etc/resolv.conf stick, or will I need to update the file *every single time* I want to install a package from the AUR?


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#15 2012-05-14 20:09:50

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

I've not gone into this in nay detail to be honest but you could try the /etc/resolv.conf.head or /etc/resolv.conf.tail files described in the Wiki article.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#16 2012-05-22 18:42:42

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] Transient prob, can't resolve host when building AUR packages

sudo chattr +i /etc/resolv.conf

solved the problem, and no other negative consequences have emerged since then. Everything appears to be working. Thank you!


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

Board footer

Powered by FluxBB