#890834 gtk+2.0: Add build profiles to skip flavors and packages

#890834#5
Date:
2018-02-19 16:30:33 UTC
From:
To:
Please consider adding the following build profiles:

      * noudeb: Skip udeb flavor and packages.
      * pkg/gtk+2.0/noexamples: Skip @EXAMPLES_PKG@.
      * pkg/gtk+2.0/nogir: Skip gir1.2-gtk-2.0.
      * pkg/gtk+2.0/nopixbuf: Skip @PIXBUF_PKG@.
      * pkg/gtk+2.0/nostatic: Skip static flavor and packages, the
        latter being libgtk$(APIVER)-static-dev and libgail-static-dev.

#890834#10
Date:
2018-02-19 17:41:43 UTC
From:
To:
Control: tags -1 + moreinfo

What goal(s) are you aiming to achieve by requesting this? They might
be better solved some other way.

That one makes sense for speeding up test-builds and builds in derivatives
that don't use udebs (as long as we *have* udebs, which means until d-i
moves to GTK+ 3); but given gtk+2.0's activity level, that isn't going
to save anyone a whole lot of time.

The namespace for source-package-defined build profiles is
pkg.some-source.foo, not pkg/some-source/foo.

Unfortunately, a nogir build-profile is either mostly useless (because
it fails to avoid the gobject-introspection build-dependency, which
would still be needed to generate the .gir file in the -dev package);
or incompatible with the design principle that build-profiles do not
change the functionality provided by a Debian package name (because the
.gir file is in the current -dev package); or very intrusive (because
it would require splitting the -dev package).

If there is a build profile with no GIR metadata, it should be done with
the cooperation of the gobject-introspection maintainers, possibly making
changes to the gobject-introspection mini-policy to make it work better.

Why? Which build-dependencies can be discarded if this is done? How much
build time does it save?

Why? Which build-dependencies can be discarded if this is done? How much
build time does it save?

Those packages don't exist. If you are asking the GTK maintainers to
split them out, that's an intrusive change.

To not break consumers of the package (by not breaking the current
"contract" that libgtk2.0-dev provides enough for both static and dynamic
linking), the part that is split out would have to be the headers and
the dynamic library symlink. Again, that's an intrusive change.

Please explain what your goal is here? With that context, there might be
an alternative that achieves your goal better.

Thanks,
    smcv

#890834#17
Date:
2018-02-19 18:16:49 UTC
From:
To:
El dl 19 de 02 de 2018 a les 17:41 +0000, Simon McVittie va escriure:

This is a mainstreaming request. Disk usage and build time decrease when
I apply this build profiles.

See https://bugs.debian.org/889042 .

Nevertheless, it is a wishlist request. I have done that change, you may
want to do it too. Users that need static libraries build-depend on the
new packages.

#890834#24
Date:
2021-03-11 18:35:38 UTC
From:
To:
More information was provided.