public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "dodji at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/21058] abipkgdiff dropping types not defined in devel packages by default leads to wrong reports
Date: Sun, 01 Jan 2017 00:00:00 -0000	[thread overview]
Message-ID: <bug-21058-9487-jHPAFH7dSL@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-21058-9487@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=21058

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Inaccurate abipkgdiff       |abipkgdiff dropping types
                   |report                      |not defined in devel
                   |                            |packages by default leads
                   |                            |to wrong reports

--- Comment #1 from dodji at redhat dot com ---
I can confirm the issue.

Thank you for taking time to file this report.

The reason why the SpiceServer* type is not shown is because it has been
dropped from the internal model of libabigail.  This is triggered by the
--devel1/--devel2 option which tells the library to drop any type that is *NOT*
defined in the header files that are in the -devel packages provided.

Note that in spice.h, SpiceServer is defined as
"typedef·struct·RedsState·SpiceServer;"  And struct RedsState itself is defined
nowhere (as far as I can tell) in any of the header files that are in the devel
package.  So struct RedsState is dropped from the internal model of libabigail
when it analyzes the libspice-server.so library.

Similarly, the reason why the SpiceImageCompression type is not shown (in the
second version of libspice-server.so) is that that enum is not defined in any
of the -devel package given.  As you said it's defined in a header file that
provided by a different package altogether.  As a result of the
--devel1/--devel2 options, that type is also dropped from the internal model.

We drop types not defined in the headers (provided by the devel package) of a
given library, not only to avoid showing changes in types that are not part of
the official interface of the package, but also to help decrease libabigail's
memory consumption.

This present case seems to argue against dropping types not defined in devel
packages, at lease by default.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      parent reply	other threads:[~2017-01-18  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-01  0:00 [Bug default/21058] New: Inaccurate abipkgdiff report cfergeau at redhat dot com
2017-01-01  0:00 ` [Bug default/21058] abipkgdiff dropping types not defined in devel packages by default leads to wrong reports dodji at redhat dot com
2017-01-01  0:00 ` [Bug default/21058] Inaccurate abipkgdiff report dodji at redhat dot com
2017-01-01  0:00 ` dodji at redhat dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-21058-9487-jHPAFH7dSL@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).