On Fri, Aug 17, 2018 at 08:58:49AM -0700, Sean Whitton wrote:
> Hello,
> 
> On Fri 17 Aug 2018 at 12:01AM +0300, Adrian Bunk wrote:
> 
> > On Mon, Jul 23, 2018 at 09:22:17AM +0800, Sean Whitton wrote:
> >> For example, someone might want to use a Debian system to investigate a
> >> bug on an Ubuntu system.  They might begin by downloading some source
> >> packages from the Ubuntu mirrors.  Since they obtained them from Ubuntu,
> >> they will form the reasonable expectation that unpacking these source
> >> packages will get them the code running on the Ubuntu system they are
> >> debugging.
> >
> > This is not a "reasonable expectation", this is a bogus assumption.
> > And users should be clearly told that investigating Ubuntu problems
> > on a Debian system is not a good idea - the supported way for that
> > is a chroot (or some more sophisticated virtualization solution).
> 
> People don't expect that running dpkg-buildpackage on a Debian system
> would get them the binary package running on an Ubuntu system.  That's
> different from the expectation that the source they get is the source
> running on their Ubuntu system.

The main misconception is that there would always be *the* source.

Steps you might have before the compilation starts:
1. dpkg unpacks upstream sources
2. dpkg applies patches
3. debian/rules unpacks upstream tarballs as part of the build
4. debian/rules applies patches based on distribution
5. debian/rules applies patches based on release
6. debian/rules applies patches based on architecture

What is "the source running on their Ubuntu system" for src:gcc-8?

This package skips steps 1 and 2, but does all of steps 3-6.

After step 2 you have 3 upstream tarballs plus a debian/ with a 
pretty sophisticated custom machinery - that's not useful for
seeing what gets built.

If you want to look after step 6 at the source "running on your system",
what you will see depends on your:
- distribution: Debian or Ubuntu?
- release: stretch or buster/sid?
- architecture: amd64 or arm64?

> Sean Whitton

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Reply via email to