Re: Oh no, what a really heavy bummer
Pigeon wrote: On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro # apt-get --compile source gqview=1.0.2-1 # dpkg -i gqview.deb alternatively: # apt-get --compile source gqview=1.0.2-1 Hmm. Just tried this... The 'apt-get source' works fine, but the 'apt-get --compile' doesn't. It wants to download the whole lot again; it appears to have forgotten that it's just done that. (ie, it does what man apt-get seems to suggest it will do.) apt-get --compile source is supposed to download the source and apt-get --compile source is supposed to download it and compile it. If youdon't want to download it twice (why would you want to?) just skip the former: # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro # apt-get --compile source gqview=1.0.2-1 # dpkg -i gqview.deb Andreas -- Prof. Dr. Andreas J. Guelzow http://www.math.concordia.ab.ca/aguelzow -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Thu, 2003-01-30 at 07:42, Andreas J Guelzow wrote: Pigeon wrote: On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: [snip] apt-get --compile source is supposed to download the source and apt-get --compile source is supposed to download it and compile it. You said the same thing twice. Purely by accident, of course... -- +---+ | Ron Johnson, Jr.mailto:[EMAIL PROTECTED] | | Jefferson, LA USA http://members.cox.net/ron.l.johnson | | | | Fear the Penguin!! | +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Wed, 2003-01-29 at 16:26, Pigeon wrote: On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro # apt-get --compile source gqview=1.0.2-1 # dpkg -i gqview.deb alternatively: # apt-get --compile source gqview=1.0.2-1 Hmm. Just tried this... The 'apt-get source' works fine, but the 'apt-get --compile' doesn't. It wants to download the whole lot again; it appears to have forgotten that it's just done that. (ie, it does what man apt-get seems to suggest it will do.) Does this mean that I have to put a deb-src file: line in sources.list, and cobble together a Packages file to sit in the download directory? I've tried this, creating the Packages file by cutting out the relevant package from the Debian Packages file and changing the package directory to the local one, and it appears to be working as I type, but is there a better way of doing it? Attached is the transscript of exactly what happened when I ran it. Btw, I used an modified version of the script, which allows it to be more generic: export CC=gcc-3.2 export CFLAGS='-Wall -O2 -march=pentiumpro' export CXX=g++-3.2 export CFLAGS='-Wall -O2 -m486' pnam=gqview pver='=1.0.2-1' apt-get source ${pnam}${pver} apt-get --compile source ${pnam}${pver} Note this bit from the apt-get --compile source ${pnam}${pver} command: Need to get 647kB of source archives. Get:1 http://mirrors.kernel.org sarge/main gqview 1.0.2-1 (dsc) [630B] Get:2 http://mirrors.kernel.org sarge/main gqview 1.0.2-1 (tar) [643kB] Get:3 http://mirrors.kernel.org sarge/main gqview 1.0.2-1 (diff) [3679B] Fetched 3B in 0s (13B/s) Skipping unpack of already unpacked source in gqview-1.0.2 So, apt-get goes out to get the source, but sees that the source already exists in the current directory, and then skips the source download. Ron -- +---+ | Ron Johnson, Jr.mailto:[EMAIL PROTECTED] | | Jefferson, LA USA http://members.cox.net/ron.l.johnson | | | | Fear the Penguin!! | +---+ build.transcript.txt.gz Description: GNU Zip compressed data
Re: Oh no, what a really heavy bummer
On Thu, Jan 30, 2003 at 02:11:26PM -0600, Ron Johnson wrote: Note this bit from the apt-get --compile source ${pnam}${pver} command: Need to get 647kB of source archives. Get:1 http://mirrors.kernel.org sarge/main gqview 1.0.2-1 (dsc) [630B] Get:2 http://mirrors.kernel.org sarge/main gqview 1.0.2-1 (tar) [643kB] Get:3 http://mirrors.kernel.org sarge/main gqview 1.0.2-1 (diff) [3679B] Fetched 3B in 0s (13B/s) Skipping unpack of already unpacked source in gqview-1.0.2 So, apt-get goes out to get the source, but sees that the source already exists in the current directory, and then skips the source download. Ah... I get it now. This didn't work for me because I went offline immediately after the download, and not realising that it wouldn't actually do anything, refused to go online again. So the file: line in sources.list to give the local copy higher priority seems to be not a bad setup for me. Thanks, Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro # apt-get --compile source gqview=1.0.2-1 # dpkg -i gqview.deb alternatively: # apt-get --compile source gqview=1.0.2-1 Hmm. Just tried this... The 'apt-get source' works fine, but the 'apt-get --compile' doesn't. It wants to download the whole lot again; it appears to have forgotten that it's just done that. (ie, it does what man apt-get seems to suggest it will do.) Does this mean that I have to put a deb-src file: line in sources.list, and cobble together a Packages file to sit in the download directory? I've tried this, creating the Packages file by cutting out the relevant package from the Debian Packages file and changing the package directory to the local one, and it appears to be working as I type, but is there a better way of doing it? Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Sat, 2003-01-25 at 12:14, Pigeon wrote: On Sat, Jan 25, 2003 at 04:43:44PM +1100, Rob Weir wrote: On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: On Thu, 2003-01-23 at 11:17, Pigeon wrote: Hi, [snip] Having put appropriate deb-src lines in sources.list, pointing to CD images or websites as appropriate, have I got this sequence right? apt-get source --download-only whatever # get source package dpkg-source -x whatever.dsc # unpack it # fiddle with Makefiles etc. dpkg-buildpackage -b -ai686 whatever.dsc # create binary .deb dpkg -i whatever.deb # install it Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro Shouldn't that be -march=pentimpro, unless you want to generate 386-compatible code? Oh, man! Thanks for pointing that out... That's kinda nasty. I think CFLAGS and CXXFLAGS are better places to put this sort of thing. That's what I generally do, but some non-Debian stuff sometimes has nasty makefiles that don't take account of your CFLAGS, or even your CC, which leads to even uglier hacks like # cd /usr/bin # mv gcc-2.95 realgcc-2.95 # cat gcc-2.95 exec /usr/bin/realgcc-2.95 -Wall -O2 -march=i686 ${*} ^D # chmod a+x gcc-2.95 Blech! or something along those lines. Yuk! (Raise both wings high above back, whack offending code with one of them) gcc-2.95 v. 3.2: I've got 2.95 at the moment because that's what I've been used to. Before I download big source packages, am I right in thinking that 3.2 itself runs slower, but the code it produces runs faster? And the difference is quite noticeable? So they say. On the few things I've tried it on, I haven't noticed. -- +---+ | Ron Johnson, Jr.mailto:[EMAIL PROTECTED] | | Jefferson, LA USA http://members.cox.net/ron.l.johnson | | | | Fear the Penguin!! | +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: On Thu, 2003-01-23 at 11:17, Pigeon wrote: Hi, [snip] Having put appropriate deb-src lines in sources.list, pointing to CD images or websites as appropriate, have I got this sequence right? apt-get source --download-only whatever # get source package dpkg-source -x whatever.dsc # unpack it # fiddle with Makefiles etc. dpkg-buildpackage -b -ai686 whatever.dsc # create binary .deb dpkg -i whatever.deb # install it Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro That's kinda nasty. I think CFLAGS and CXXFLAGS are better places to put this sort of thing. -rob msg26122/pgp0.pgp Description: PGP signature
Re: Oh no, what a really heavy bummer
On Fri, 2003-01-24 at 23:43, Rob Weir wrote: On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: On Thu, 2003-01-23 at 11:17, Pigeon wrote: Hi, [snip] Having put appropriate deb-src lines in sources.list, pointing to CD images or websites as appropriate, have I got this sequence right? apt-get source --download-only whatever # get source package dpkg-source -x whatever.dsc # unpack it # fiddle with Makefiles etc. dpkg-buildpackage -b -ai686 whatever.dsc # create binary .deb dpkg -i whatever.deb # install it Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro That's kinda nasty. I think CFLAGS and CXXFLAGS are better places to put this sort of thing. Like this: # export CC=gcc-3.2 # export CFLAGS='-Wall -O2 -mcpu=pentiumpro' # export CXX=G++3.2 # export CXXFLAGS=${CFLAGS} -- +---+ | Ron Johnson, Jr.mailto:[EMAIL PROTECTED] | | Jefferson, LA USA http://members.cox.net/ron.l.johnson | | | | Fear the Penguin!! | +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Sat, Jan 25, 2003 at 04:43:44PM +1100, Rob Weir wrote: On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: On Thu, 2003-01-23 at 11:17, Pigeon wrote: Hi, [snip] Having put appropriate deb-src lines in sources.list, pointing to CD images or websites as appropriate, have I got this sequence right? apt-get source --download-only whatever # get source package dpkg-source -x whatever.dsc # unpack it # fiddle with Makefiles etc. dpkg-buildpackage -b -ai686 whatever.dsc # create binary .deb dpkg -i whatever.deb # install it Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro Shouldn't that be -march=pentimpro, unless you want to generate 386-compatible code? That's kinda nasty. I think CFLAGS and CXXFLAGS are better places to put this sort of thing. That's what I generally do, but some non-Debian stuff sometimes has nasty makefiles that don't take account of your CFLAGS, or even your CC, which leads to even uglier hacks like # cd /usr/bin # mv gcc-2.95 realgcc-2.95 # cat gcc-2.95 exec /usr/bin/realgcc-2.95 -Wall -O2 -march=i686 ${*} ^D # chmod a+x gcc-2.95 or something along those lines. Yuk! (Raise both wings high above back, whack offending code with one of them) gcc-2.95 v. 3.2: I've got 2.95 at the moment because that's what I've been used to. Before I download big source packages, am I right in thinking that 3.2 itself runs slower, but the code it produces runs faster? And the difference is quite noticeable? Pigeon Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Thu, 2003-01-23 at 11:17, Pigeon wrote: Hi, [snip] Having put appropriate deb-src lines in sources.list, pointing to CD images or websites as appropriate, have I got this sequence right? apt-get source --download-only whatever # get source package dpkg-source -x whatever.dsc # unpack it # fiddle with Makefiles etc. dpkg-buildpackage -b -ai686 whatever.dsc # create binary .deb dpkg -i whatever.deb # install it Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro # apt-get --compile source gqview=1.0.2-1 # dpkg -i gqview.deb alternatively: # apt-get --compile source gqview=1.0.2-1 Note that the =x.y.z-a isn't necessary. There's a sid package named apt-src which automates it even more. I like the 2 step process, though... -- +---+ | Ron Johnson, Jr.mailto:[EMAIL PROTECTED] | | Jefferson, LA USA http://members.cox.net/ron.l.johnson | | | | Fear the Penguin!! | +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Oh no, what a really heavy bummer
On Thu, Jan 23, 2003 at 03:22:44PM -0600, Ron Johnson wrote: On Thu, 2003-01-23 at 11:17, Pigeon wrote: Hi, [snip] Having put appropriate deb-src lines in sources.list, pointing to CD images or websites as appropriate, have I got this sequence right? apt-get source --download-only whatever # get source package dpkg-source -x whatever.dsc # unpack it # fiddle with Makefiles etc. dpkg-buildpackage -b -ai686 whatever.dsc # create binary .deb dpkg -i whatever.deb # install it Here's how I do it: # apt-get source gqview=1.0.2-1 # export CC=gcc-3.2 -Wall -O2 -mcpu=pentiumpro # apt-get --compile source gqview=1.0.2-1 # dpkg -i gqview.deb alternatively: # apt-get --compile source gqview=1.0.2-1 Note that the =x.y.z-a isn't necessary. There's a sid package named apt-src which automates it even more. I like the 2 step process, though... Nice one, I'll give that a shot. (Not tonight though...) Cheers, Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]