You are not logged in.
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
No, there's no option for that, but it sounds useful. I'll add it to the todo.
Offline
thanx
The impossible missions are the only ones which succeed.
Offline
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
I usually comment out the source= line to prevent extraction. Don't forget to add it later.
Offline
:?:
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
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
Isn't 'makepkg -e' what you're looking for? O_o
Offline
-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
"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
hmmm, maybe you could just "wget" the zip files in the build function?
Offline
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
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
it allows all the files to be checked against their md5sums
DaDeXTeR (Martin Lefebvre)
My screenshots on PicasaWeb
[img]http://imagegen.last.fm/dadexter/recenttracks/dadexter.gif[/img]
Offline
*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