Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: andyj on February 27, 2016, 08:37:37 AM

Title: submitqc on i686
Post by: andyj on February 27, 2016, 08:37:37 AM
@dentonlt: On my 32-bit platform submitqc requires --arch to check online repositories because my uname -m returns i686. Moving line 155 REPO_URL=... to after 180 (arch case) solves this problem. REPO_URL isn't referenced before line 180 so this shouldn't break 64 bit.  Also adding
Code: [Select]
armv7l) BASELIBS="$BASELIBS ld-linux-armhf.so.3 linux-vdso.so.1"; ARCH="armv7" ;;to the arch case should work for PI 2, but there isn't zsync or sstrip for armv7 for me to test it.
Title: Re: submitqc on i686
Post by: dentonlt on March 16, 2016, 03:40:09 AM
Hi, andyj -

Argh - browsing the forum feed and just came across your post. So sorry for the slow response - just hadn't seen it!

ARCH to line 180: totally agree. REPO_URL is wrong unless ARCH is defined, so this was a bug regardless.

Thanks for the ARM details - I've added these and will resubmit. sstrip is unneeded after all - strip is in binutils. I've also added a test to bail out on zsync creation if on ARM. I'm not a Pi/ARM user ... can you or someone else comment on whether the zsync file is necessary for the ARM repo, and how it's made if so?

Cheers ~


Sent from my HTC_0P6B6 using Tapatalk

Title: Re: submitqc on i686
Post by: Rich on March 16, 2016, 07:12:52 AM
Hi dentonlt
Quote
sstrip is unneeded after all - strip is in binutils.
You get smaller binaries using  sstrip.
Title: Re: submitqc on i686
Post by: dentonlt on April 02, 2016, 06:52:43 AM
Good to know re sstrip vs strip. I'll use the former where possible, else fall back onto strip (arm7).
Title: Re: submitqc on i686
Post by: bmarkus on April 03, 2016, 10:42:54 AM

can you or someone else comment on whether the zsync file is necessary for the ARM repo, and how it's made if so?


zsync file is not needed to submit, at server side it is created automatically for all architectures.
Title: Re: submitqc on i686
Post by: bmarkus on April 03, 2016, 10:48:44 AM
there isn't zsync or sstrip for armv7 for me to test it.

zsync is part of base, see /usr/bin
Title: Re: submitqc on i686
Post by: bmarkus on April 03, 2016, 11:17:00 AM
Good to know re sstrip vs strip. I'll use the former where possible, else fall back onto strip (arm7).

sstrip.tcz added to 7.x armv6/armv7 repo
Title: Re: submitqc on i686
Post by: dentonlt on April 03, 2016, 02:53:15 PM


Quote
sstrip.tcz added to 7.x armv6/armv7 repo

Ah - done deal! Thanks, bmarkus.
Title: Re: submitqc on i686
Post by: dentonlt on April 03, 2016, 02:54:19 PM

can you or someone else comment on whether the zsync file is necessary for the ARM repo, and how it's made if so?


zsync file is not needed to submit, at server side it is created automatically for all architectures.
Thanks for this, too - I'll disable/cut that code in submitqc.

Sent from my HTC_0P6B6 using Tapatalk

Title: Re: submitqc on i686
Post by: neonix on October 07, 2019, 01:17:38 PM
I noticed that on system with i586 processor I get:
Code: [Select]
tc@box:/tmp$ /usr/local/bin/submitqc
submitqc: Unrecognized architecture 'i586'. See --help.
To make it work I have to use:
Code: [Select]
submitqc --arch=i686
Title: Re: submitqc on i686
Post by: dentonlt on December 23, 2020, 01:38:21 AM
Argh, this is a really old thread ... @neonix, if you're still out there and wondering ...

Short version: submitqc looks for your architecture (uname -m) and matches that to the available TC repos. Admittedly, i686 falls back to x86.

Thanks for mentioning - I think I can just have i586 fall back to x86, also ... but I have to follow-up on how that fits the --libs checks. I'll add it to the to-do list.

Cheers ~
Title: Re: submitqc on i686
Post by: vinceASPECT on December 23, 2020, 02:14:46 AM
HEllo Forum,

Think it goes

8086, ....286,....386,... 486DX... i586..... i686.... Pentium 1....., pent 2 ,...pent 3 ............ pent 4

ARm has 6 ,7 and 8's   neon 

thx

v

Title: Re: submitqc on i686
Post by: Rich on December 23, 2020, 06:44:13 AM
Hi dentonlt
... I think I can just have i586 fall back to x86, also ...
I see that:
Code: [Select]
. /etc/init.d/tc-functionsis only executed when  -c/--color  is passed to submitqc. That's unfortunate since  tc-functions  has functions to deal with
Tinycore specific issues. By including it you would change this:
Code: [Select]
[ -z "$ARCH" ] && ARCH=$(uname -m)To this:
Code: [Select]
[ -z "$ARCH" ] && ARCH=$(getBuild)Now submitqc would not require an update if other architectures are added.

There is also a  getMirror()  function that returns the full URL matching your system.