Bug 5966 - Package size should not be "-1 B" in reverse runtime dependencies.
Summary: Package size should not be "-1 B" in reverse runtime dependencies.
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M5
Assignee: Dave Lerner
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-03-14 06:38 UTC by Yuan Sun
Modified: 2014-04-08 09:10 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Package size should not be "-1 B" in reverse runtime dependencies. (223.57 KB, image/png)
2014-03-14 06:39 UTC, Yuan Sun
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuan Sun 2014-03-14 06:38:41 UTC
Package size should not be "-1 B" in reverse runtime dependencies.
Tested in 463cd34f8c17c67c4f3adf3468424730b22f3974.
Comment 1 Yuan Sun 2014-03-14 06:39:16 UTC
Created attachment 1814 [details]
Package size should not be "-1 B" in reverse runtime dependencies.
Comment 2 Belen Barros Pena 2014-03-14 16:50:01 UTC
This is also happening in the table of packages installed. Assigning to Dave, since he worked on both.
Comment 3 Dave Lerner 2014-03-17 22:17:03 UTC
There are both -1 and 0 values in the database.  See the example that Yuan found.
Comment 4 Dave Lerner 2014-03-20 14:49:38 UTC
Two notes from Belen Barros Pena from email, recapping the design visual and also the database flags that trigger the visual, provided below with Belen's permission:

On Mar 18, 2014, 10:27 Chicago (CDT or CST) Belen wrote:

> So packages with size=-1 should not display in any of the tables (packages
> built or included) because they are not built and therefore they are not
> installed in any target. They should not show in the Packages tab of the
> recipe details page either, since they are not built by any recipe.
> 
> They should only show in the dependency tabs in the package details pages,
> since we only collect information about them in order to be able to
> provide full details about the dependency chain. In those tabs, packages
> with size=-1 are the ones that should show:
> 
> * with the .muted class applied
> * with the Size cell empty
> * and they are not links
> 

On Mar 18, 2014 11:28 Chicago (CDT? CST?) Belen continued:

> FWIW, it is what page 8 of this document
> 
> https://bugzilla.yoctoproject.org/attachment.cgi?id=1749
> 
> and page 9 of this document
> 
> https://bugzilla.yoctoproject.org/attachment.cgi?id=1684
> 
> tried to explain, but when I wrote the specs we were not using the
> size==-1 trick, so no mention of it anywhere of course.
> 
> Now, it is not exactly the same either, since there might packages built
> but not installed which will not have size==-1 and will still display with
> the .muted class and no size information in the installed package details
> page.
Comment 5 David Reyna 2014-04-02 06:59:58 UTC
commit 7fa51314bdac0afccf2ddd6f57581eec7d78d57f
Comment 6 Yuan Sun 2014-04-08 09:10:29 UTC
Verified in 3e528d3e4bc542ca2f654c54363c56af0fb9f61b.