Smart: Difference between revisions
From Yocto Project
Jump to navigationJump to search
PaulEggleton (talk | contribs) (Created page with "http://labix.org/smart/ Paul's smart contrib branch: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=paule/smart To test this out querying a root filesystem on t...") |
PaulEggleton (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
# <code>bitbake python-smartpm-native</code> | # <code>bitbake python-smartpm-native</code> | ||
# <code>bitbake -c devshell core-image-minimal</code> | # <code>bitbake -c devshell core-image-minimal</code> | ||
# Within the devshell: | # Within the devshell (note: channel stuff assumes you're building on a Debian/Ubuntu system which triggers this): | ||
cd ../rootfs | cd ../rootfs | ||
export PYTHONPATH="/path/to/native/sysroot/usr/lib/python2.7/site-packages" | export PYTHONPATH="/path/to/native/sysroot/usr/lib/python2.7/site-packages" | ||
export RPM_ETCRPM=$PWD/etc/rpm | export RPM_ETCRPM=$PWD/etc/rpm | ||
smart --data-dir=$PWD/var/lib/smart config --set detect-sys-channels=False | smart --data-dir=$PWD/var/lib/smart config --set detect-sys-channels=False | ||
smart --data-dir=$PWD/var/lib/smart --remove deb-sys | smart --data-dir=$PWD/var/lib/smart channel --remove deb-sys | ||
smart --data-dir=$PWD/var/lib/smart channel --add rpmsys type=rpm-sys name="rpmsys" | smart --data-dir=$PWD/var/lib/smart channel --add rpmsys type=rpm-sys name="rpmsys" | ||
smart --data-dir=$PWD/var/lib/smart config --set rpm-dbpath=$PWD/var/lib/rpm | smart --data-dir=$PWD/var/lib/smart config --set rpm-dbpath=$PWD/var/lib/rpm |
Revision as of 15:01, 23 October 2012
Paul's smart contrib branch:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=paule/smart
To test this out querying a root filesystem on the host:
- Ensure you are using "package_rpm" in PACKAGE_CLASSES
- Comment out the line in core-image-minimal that removes the packaging data files
bitbake core-image-minimal
bitbake python-smartpm-native
bitbake -c devshell core-image-minimal
- Within the devshell (note: channel stuff assumes you're building on a Debian/Ubuntu system which triggers this):
cd ../rootfs export PYTHONPATH="/path/to/native/sysroot/usr/lib/python2.7/site-packages" export RPM_ETCRPM=$PWD/etc/rpm smart --data-dir=$PWD/var/lib/smart config --set detect-sys-channels=False smart --data-dir=$PWD/var/lib/smart channel --remove deb-sys smart --data-dir=$PWD/var/lib/smart channel --add rpmsys type=rpm-sys name="rpmsys" smart --data-dir=$PWD/var/lib/smart config --set rpm-dbpath=$PWD/var/lib/rpm
You should now be able to query the packages installed into the rootfs e.g.
smart --data-dir=$PWD/var/lib/smart query