SliTaz SliTaz Forum

You are not logged in.

#1 2012-10-17 21:18:29

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Wget & HTTP 307

Hi developers!

Began to create a receipt, I encountered such a nuisance.

[c]

$ wget http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz

Connecting to icculus.org (74.81.175.20:80)

wget: server returned error: HTTP/1.1 307 Temporary Redirect

[/c]

Sources are not loaded and cook return me error.

Just for the sake of curiosity, I decided to see (using curl) where the redirection is:

[c]

$ curl -I http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz

HTTP/1.1 200 OK

Date: Wed, 17 Oct 2012 19:33:05 GMT

Server: Apache/1.3.34 (Unix)  (Gentoo) mod_offload/1.0.3 PHP/5.2.9 mod_ssl/2.8.25 OpenSSL/0.9.8d

Last-Modified: Sat, 19 Feb 2011 06:22:53 GMT

ETag: "42d80ce-a3fd4-4d5f61bd"

Accept-Ranges: bytes

Content-Length: 671700

Content-Type: application/x-gzip

Content-Encoding: x-gzip

[/c]

Adding wget (not busybox's one) as build depend not solved this problem

[c]

root@slitaz:/# cook physfs

Setup aufs chroot...

Cook: physfs 2.0.2

================================================================================

QA: checking package receipt...

Disabling -pipe compile flag: 115144 RAM

Checking build dependencies...

Installing dep (web/cache): wget

Connecting to mirror.slitaz.org (94.23.209.91:80)

wget-1.13.4.tazpkg   100% |*******************************|   110k --:--:-- ETA

Installing dep (web/cache): cmake

Connecting to icculus.org (74.81.175.20:80)

wget: server returned error: HTTP/1.1 307 Temporary Redirect

ERROR: wget http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz

Build dependencies to remove: 6

Removing: cmake libcrypto libidn libssl openssl wget

ERROR: cook failed

Debug information

================================================================================

Cook date: 2012-10-17 23:54

ERROR: wget http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz

ERROR: cook failed

wget: server returned error: HTTP/1.1 307 Temporary Redirect

================================================================================

Leaving aufs chroot...

root@slitaz:/#

[/c]

Here is very beginning version of my receipt:

[c]# SliTaz package receipt.

PACKAGE="physfs"

VERSION="2.0.2"

CATEGORY="development"

SHORT_DESC="PhysicsFS is a library to provide abstract access to various archives."

MAINTAINER="al.bobylev@gmail.com"

DEPENDS=""

BUILD_DEPENDS="wget cmake"

TARBALL="$PACKAGE-$VERSION.tar.gz"

WEB_SITE="http://icculus.org/physfs/"

WGET_URL="http://icculus.org/$PACKAGE/downloads/$TARBALL"

# Rules to configure and make the package.

compile_rules()

{

    cmake $src

    cd $src

    make &&

    make DESTDIR=$PWD/_pkg install

}

[/c]

How do I download the source code for cook receipt?

Download sources using curl in begin of compile_rules()?

Offline

#2 2012-10-18 15:16:10

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Wget & HTTP 307

OpenSSL and http:// is problem for cook as busybox wget doesn't support --no-check-certificate

Cook supports https:// DEPENDS="wget"

Post the problem to the mailing-list if you don't get solution

Offline

#3 2012-10-18 22:33:52

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Wget & HTTP 307

Problem was partly solved.

I don't know how?, but I've download once simple html page with final redirection link and use this new address in my receipt. (Curl don't help me with different options. It always show 200 OK).

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]