You are not logged in.

#1 2003-12-26 15:34:53

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

"do not extract archive - option"

is there an option to tell makepkg that the source files has already been extracted (in an earlier makepkg-run) and that it should go on without fresh extracting the whole source-tarball again

i'm asking, because it takes long to extract bz2 archives and if you play around with such packages it takes every time time

in man makepkg i wasnt able to find anything like that


The impossible missions are the only ones which succeed.

Offline

#2 2003-12-30 19:16:56

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: "do not extract archive - option"

No, there's no option for that, but it sounds useful.  I'll add it to the todo.

Offline

#3 2003-12-30 21:21:05

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: "do not extract archive - option"

thanx


The impossible missions are the only ones which succeed.

Offline

#4 2005-04-05 21:27:45

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: "do not extract archive - option"

any work on this? I encountered a package that requests zip files unextracted in a subdir. It makes a mess when makepkg unzips then in the top level source dir.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2005-04-06 00:35:08

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: "do not extract archive - option"

I usually comment out the source= line to prevent extraction.  Don't forget to add it later.

Offline

#6 2005-04-06 01:01:32

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: "do not extract archive - option"

:?:
You comment it out in the pkgbuild?
Um..then it doesn't download the files, and doesn't copy them to src/ dir either.
I honestly can't see where you were going with that one...


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#7 2005-04-06 03:48:34

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: "do not extract archive - option"

ah, that makes sense kpiche

cactus, I think he's saying he runs it once, then comments it out
makepkg never deletes the "src" directory and seeing as theres nothing extracted, no files are overwritten... good call

Offline

#8 2005-04-06 15:33:30

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: "do not extract archive - option"

Isn't 'makepkg -e' what you're looking for? O_o

Offline

#9 2005-04-06 16:18:56

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: "do not extract archive - option"

-e..hmm...looks like the makepkg manpage needs an update. That flag shows up in makepkg --help, but not in the manpage..whoops..

Anyway, -e is still not what I am looking for. Let me give you all an example so you can potentially see what I am talking about..

check out this pkgbuild

The zip files are supposed to be moved, in their non-deflated state, to a specific subdirectory. The .tgz file IS needed to be extracted. Extracting the zips doesn't really hurt anything, in this case, as the subdirectories are named differently (most likely this is nearly always the case). It does make a mess of the src directory though. A pain, and mostly cosmetic.

Like I said, not a big deal. This is the first package I have encountered where it even mattered.
*shrug*
Looks like I talked myself right out of this one..lol
lol


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#10 2005-04-06 16:36:42

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: "do not extract archive - option"

hmmm, maybe you could just "wget" the zip files in the build function?

Offline

#11 2005-04-06 16:44:47

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: "do not extract archive - option"

Kind of goes against the pkgbuild process..No hashing to test for potential corruption either. I think just having lots of extra junk in src/ due to needless extraction is currently the best bet..
like i said, it is mostly cosmetic, as nothing important is being overwritten.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#12 2005-04-06 16:55:18

dadexter
Member
From: Dorval, QC, Canada
Registered: 2004-09-07
Posts: 274
Website

Re: "do not extract archive - option"

Well once the files are downloaded/extracted, you can just move the zip file and erase the extracted folders from your build().

it's not pretty, but it worked for me. I had to do that for a dosemu PKGBUILD

build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr
        make
        # Freedos tgz should not be extracted
        rm -rf $startdir/src/dosemu
        cp $startdir/src/dosemu-freedos-b9r4-bin.tgz dosemu-freedos-bin.tgz
        make DESTDIR=$startdir/pkg install
}

Actually, it is pretty tongue
it allows all the files to be checked against their md5sums

Offline

#13 2005-04-06 17:17:09

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: "do not extract archive - option"

*sigh*
Why do I bother posting links relevant to the discussion if people don't read them.

*goes to get more coffee*


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB