[continued from previous message]
Probably better Architecture-Isa, otherwise the current automatic<br>
case folding would make it end up as Architectureisa.<br></blockquote><div><br></div><div>Heh OK.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> * dpkg-architecture emits DEB_HOST_ARCH_ISA and grows --host-arch-isa flag<br>
Also DEB_BUILD_ARCH_ISA and DEB_TARGET_ARCH_ISA, and also grows a<br> --target-arch-isa (but I'm thinking whether the shorter --host-isa would<br>
be nicer, for example the --match-bits are not spelled --match-arch-bits,<br> which would seem also a bit redundant).<br>
> * dpkg-buildpackage passes --host-arch-isa to dpkg-architecture<br>
Yes, but only when not the baseline.<br></blockquote><div><br></div><div>I think what I meant here was that if you pass one of the --*-arch-isa flags dpkg-buildpackage, it gets passed along to dpkg-architecture (as --host-arch etc are).</div><div><br></
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> * dpkg-genchanges should record the ISA in the changes file somehow I<br>
> guess?<br>
Yes, also dpkg-genbuildinfo.</blockquote><div><br></div><div>Oh yeah. Although on a quick look dpkg-genbuildinfo gets the architecture from the filename...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px
solid rgb(204,204,204);padding-left:1ex"> This could be done either from the<br>
envvars, or perhaps through the debian/files attributes support. But<br>
given that this is supposedly build global (I think it would be rather<br> weird to end up with a .changes including say _amd64.deb and<br>
_amd64v3.deb file references from the same build),</blockquote><div><br></div><div>Ah yes that's true.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> then
probably using<br>
the envvar might be the better way.<br>
> * dpkg-deb records the ISA in the file name<br>
Yes.<br>
> Have I missed anything?<br>
Nothing else comes to mind right now (except what I might have already<br> added).<br></blockquote><div><br></div><div>Well of course I wrote this question in before going back and adding the stuff about having this all be driven by dpkg --add-archiitecture isa amd64v3 or anything like that. So those changes probably need to be
hashed out too?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> (Hmm does anything need to reject unknown values<br>
> found in DEB_HOST_ARCH_ISA / --host-arch-isa? Probably...)<br>
I guess it indeed makes sense to define what ISAs are supported, and<br>
either error out or warn and ignore such values. So there might be a<br>
need to add something like a new data/isatable.<br></blockquote><div><br></div><div>I notice that --add-architecture doesn't seem to do any checking.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px
solid rgb(204,204,204);padding-left:1ex">
> Conceptually slightly separately, it might make sense to add a build<br> > "feature" to Dpkg::Vendor::Debian to allow setting -march (and -mtune?)<br>
> <br>
> Then when we want to add support to an ISA, we add a little thing to<br> > set_build_features (in either Vendor::Debian or Vendor::Ubuntu or wherever)<br>
> that maps get_host_arch_isa() to values for the march-influencing feature.<br>
Hmm, right, how to hook this. I'm not sure the current interface is good<br>
enough to describe this via build flags features, because such new feature<br> area would expose arch-specific features. I have been thinking through<br>
the build flags and will try to send a proposal/RFC to revamp parts of<br>
it during the weekend. </blockquote><div><br></div><div>Did that happen? I didn't see if if so.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">But I think the
ISA stuff is better just handled<br>
(at leas for now) directly by injecting whatever flags when the requested<br> ISA is different to the baseline.<br></blockquote><div><br></div><div>Well that's easy enough too.</div><div><br></div><div>Cheers & thanks for the continued thoughts,</div><div>mwh</div><div> </div></div></div>
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)