Bug 9101 - Dependencies dialog when adding packages to an image does not always work
Summary: Dependencies dialog when adding packages to an image does not always work
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: High normal
Target Milestone: 2.1 M4
Assignee: Dave Lerner
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-11 15:38 UTC by Belen Barros Pena
Modified: 2016-04-21 11:05 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
openssl.png (119.63 KB, image/png)
2016-02-11 15:40 UTC, Belen Barros Pena
no flags Details
openssl-msg.png (165.16 KB, image/png)
2016-02-11 15:40 UTC, Belen Barros Pena
no flags Details
atk.png (144.05 KB, image/png)
2016-02-11 15:40 UTC, Belen Barros Pena
no flags Details
atk looks ok first time (81.77 KB, image/png)
2016-02-12 22:22 UTC, Dave Lerner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2016-02-11 15:38:45 UTC
Problem is, I cannot actually figure out when it does and when it doesn't. It works if you try to add the openssl package. It does not work if you try to add the atk package. 

This is how to reproduce.

1. Create a toaster project with release master

2. Build core-image-sato-dev

3. Go to the 'new custom image' page, search for core-image-minimal and click the 'customise' button. Make sure you choose the core-image-minimal provided by the openembedded-core layer

4. Give your custom image a name and build it

5. Once the build completes, go to the project configuration page, and select the 'custom images' link on the left navigation

6. Click on your custom image 

7. In the list of packages, search for openssl and click its 'add package' button. You will see a dialog like the one shown in the attached openssl.png

8. Click the 'add package' button. You will see a message like the one shown in the attached openssl-msg.png

9. Now search for the atk package and click its 'add package' button. You will see no dependencies dialog, only a message like the one shown in the attached atk.png

I would have expected to see a message like the one we get for openssl, listing the atk dependencies provided in the packages table (click the number of dependencies for the atk package to see them listed: bash, glibc, libffi, glib-2.0 and libpcre).
Comment 1 Belen Barros Pena 2016-02-11 15:40:06 UTC
Created attachment 2975 [details]
openssl.png
Comment 2 Belen Barros Pena 2016-02-11 15:40:30 UTC
Created attachment 2976 [details]
openssl-msg.png
Comment 3 Belen Barros Pena 2016-02-11 15:40:50 UTC
Created attachment 2977 [details]
atk.png
Comment 4 Dave Lerner 2016-02-12 22:16:34 UTC
To see this problem, you may have to run step 9 twice.  The first time that I clicked on the Atk Add Package button, I got the correct dialog (see atk-worked-first-time.png).
Then I closed the web browser and re-opened it and the incorrect dialog like atk.png appears.
Comment 5 Dave Lerner 2016-02-12 22:22:16 UTC
Created attachment 2981 [details]
atk looks ok first time
Comment 6 Dave Lerner 2016-02-12 23:09:55 UTC
After clicking atk add-package I have seen both cases of
1) three dependent packages had their button changed to Remove Package
BUT after explicitly removing these packages and the atk package
2) the three dependent package did not have their button changed to Remove package.
If the dependent packages were 'added' in the sense that the buttons now showed "Remove", then clicking atk add-package does not list the dependent packages because they were already in the image. However, if I explicitly removed the three dependent packages, then clicking atk add-package DOES list the dependent packages.  Unfortunately, in that case clicking add package results in a different issue - the dependent packages do NOT appear to have been added since their button still says Add Package.
Comment 7 Dave Lerner 2016-02-25 18:29:48 UTC
pushed to toaster-next
Comment 8 Alexandru Roman 2016-04-21 11:05:15 UTC
Verified on master.