[11:50] <fabbione> doko_: ping?
[11:51] <doko_> fabbione: pong
[11:51] <fabbione> doko_: assuming i want to bootstrap a new architecture (supported by gcc), where can i change the default settings? like -mcpu -mtune and set -64 by default?
[11:52] <doko_> sparc64-linux?
[11:53] <fabbione> kinda
[11:53] <fabbione> it's just for pure fun
[11:54] <fabbione> but i don't want to spend a lifetime digging into each package
[11:54] <doko_> there are configure parameters --with-tune and --with-arch (--with-cpu), but these don't work well with biarch
[11:55] <doko_> it's in debian/rules2
[11:55] <fabbione> nah i don't want bi-arch.. just pure64
[11:55] <fabbione> ok thanks
[11:56] <doko_> well, then configure for sparc64-linux, and use gcc -m64 as the stage1 compiler
[11:57] <fabbione> ok thanks
[12:01] <doko_> use of the --with-tune --with-arch should be unproblematic then. not sure where you find the correct system headers; maybe you need som part of the multiarch-include stuff
[12:08] <fabbione> that's what i am looking at
[12:08] <fabbione> because i am not sure how make is going to react if i add a sparc64 arch
[12:08] <fabbione> given the amount of conversions and mappings between sparc/sparc64
[12:16] <doko_> or just build a cross toolchain, thiemo did update a script, some mail sent to debian-gcc ...
[12:18] <fabbione> doko_: that's an option too, but if i will do something, i might as well do it the debian way and get all the patches saved and ready for upload
[12:27] <fabbione> Keybuk: how bad can dpkg break if i temporary disable selinux support?
[12:29] <Keybuk> fabbione: not at all?
[12:30] <fabbione> Keybuk: ok.. i am just trying to build dpkg at 64bit on sparc but there is no selinux64 yet
[01:12] <fabbione> dpkg -p dselect |grep Depends
[01:12] <fabbione> Depends: lib64gcc1 (>= 1:4.1.1-12), lib64ncurses5 (>= 5.4-5), lib64stdc++6 (>= 4.1.1-12), libc6-sparc64 (>= 2.4-1), dpkg (>= 1.13.1)
[01:12] <fabbione> scary :)
[01:12] <fabbione> but it works
[02:24] <fabbione> GCC_TARGET=sparc64 ./debian/rules printarch
[02:24] <fabbione> DEB_TARGET_ARCH: sparc64
[02:24] <fabbione> DEB_TARGET_ARCH_OS: linux
[02:24] <fabbione> DEB_TARGET_ARCH_CPU: sparc64
[02:24] <fabbione> DEB_TARGET_ARCH_CPU: sparc64
[02:24] <fabbione> DEB_TARGET_GNU_SYSTEM: linux-gnu
[02:24] <fabbione> TARGET_ALIAS: sparc64-linux-gnu
[02:24] <fabbione> TP: sparc64-linux-gnu-
[02:24] <fabbione> TS: -sparc64-linux-gnu
[02:24] <fabbione> doko_: ^^
[02:25] <fabbione> clearly it doesn't fix the packaging issues, but that should be enough to start building gcc i guess
[02:26] <fabbione> Keybuk: if i am not mistaken to add sparc64.deb to dpkg it's enough to add it to the cputable and archtable, right?
[02:26] <fabbione> or do i need more hacking?
[02:26] <Keybuk> adding it to cputable would break sparc
[02:27] <Keybuk> there is no archtable
[02:27] <Keybuk> there's debian/archtable, but that's just documentation
[02:28] <Keybuk> you'd have to remove the assumption that sparc64 == sparc
[02:28] <fabbione> why would it break sparc? i don't know all dpkg internal.. so it might sounds like a lame question
[02:28] <fabbione> is that assumption coded somewhere?
[02:28] <Keybuk> in cputable
[02:28] <fabbione> sparc           sparc           sparc(64)?
[02:28] <fabbione> sparc64         sparc64         sparc64
[02:28] <Keybuk> that wouldn't work
[02:29] <Keybuk> you need to remove the "(64)?" from the first line
[02:29] <fabbione> so the sparc(64)? should be just sparc
[02:29] <Keybuk> right
[02:29] <fabbione> yeah
[02:29] <fabbione> would that be enough?
[02:29] <Keybuk> and that would cause the sparc64 dpkg to only install sparc64 debs
[02:29] <Keybuk> and the sparc dpkg to only install sparc debs
[02:29] <fabbione> ok perfect
[02:29] <Keybuk> what does config.guess say on a sparc64 with a 32-bit userland?
[02:29] <Keybuk> (try it now)
[02:30] <Keybuk> ./config/config.guess
[02:30] <Keybuk> (who moved that?!)
[02:30] <fabbione> it's building.. just one sec i will tell you
[02:30] <fabbione> ./config/config.guess 
[02:30] <fabbione> sparc64-unknown-linux-gnu
[02:30] <fabbione> BUT
[02:30] <fabbione> be aware that i am forcing -m64 to CFLAGS and CXXFLAGS
[02:31] <fabbione> let me try without
[02:32] <fabbione> yeps
[02:32] <fabbione> the same
[02:45] <fabbione> Debian `dselect' package handling frontend version 1.13.22 (none-sparc64).
[02:45] <fabbione> hmmm
[02:45] <fabbione> that none-sparc64 doesn't look good :)
[03:02] <doko_> fabbione: maybe look at the ppc64 port on alioth
[03:03] <fabbione> doko_: i think i am just using the wrong approach.. i need to understand where to start
[03:08] <fabbione> i find it hard to believe that they didn't patch gcc at all
[03:14] <fabbione> dpkg-deb: building package `dpkg' in `../dpkg_1.13.22ubuntu7sparc64_sparc64.deb'.
[03:14] <fabbione> there we go
[03:15] <fabbione> much better :)