PREFERRED_PROVIDER_python-curses = "python"
PREFERRED_PROVIDER_python = "python-base"
PREFERRED_VERSION_python = "git"
+PREFERRED_PROVIDER_python-core = "python-base"
+PREFERRED_VERSION_python-base = "git"
-
-
-PREFERRED_PROVIDER_python-native = "python-base-native-native"
+PREFERRED_PROVIDER_python-native = "python-base-native"
PREFERRED_PROVIDER_python-xml-native = "python-base-native"
PREFERRED_PROVIDER_python-curses-native = "python-native"
PREFERRED_VERSION_python-native = "git"
RDEPENDS_${PN} += "readline"
RDEPENDS_${PN} += "rpm"
+RDEPENDS_${PN} += "ncurses"
+RDEPENDS_${PN} += "ncurses-libs"
+
#RDEPENDS_${PN} += "rpm-installer"
RDEPENDS_${PN} += "rpm-libs"
diff --git a/packaging/dbus.spec b/packaging/dbus.spec
-index ea31831..f4110ff 100644
+index ea31831..c8114bd 100644
--- a/packaging/dbus.spec
+++ b/packaging/dbus.spec
-@@ -61,21 +61,27 @@ make %{?jobs:-j%jobs}
+@@ -61,33 +61,39 @@ make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
%post libs
-@@ -86,8 +92,8 @@ mkdir -p /opt/var/lib/dbus
+-/sbin/ldconfig
++ldconfig -r ${D}
+
+
+ %postun libs -p /sbin/ldconfig
%files
+SRC_URI += "file://default-fonts-fc-sdk.spec.patch"
+
+do_patch_append () {
+ echo RLM begining of do_patch
+
+ cat ${WORKDIR}/default-fonts-fc-sdk.spec.patch | patch -s -p1 --fuzz=2
+
+ echo RLM end of do_patch
+}
\ No newline at end of file
--- /dev/null
+diff --git a/packaging/default-fonts-fc-sdk.spec b/packaging/default-fonts-fc-sdk.spec
+index 6d8a635..d65e10c 100644
+--- a/packaging/default-fonts-fc-sdk.spec
++++ b/packaging/default-fonts-fc-sdk.spec
+@@ -27,8 +27,8 @@ cd %{buildroot}%{_prefix}/etc/fonts/conf.d/
+ ln -s ../../../../opt/etc/fonts/conf.avail/99-slp.conf %{buildroot}%{_prefix}/etc/fonts/conf.d/99-slp.conf
+
+ %post
+-chown :5000 /opt/etc/fonts/conf.avail/99-slp.conf
+-chmod 664 /opt/etc/fonts/conf.avail/99-slp.conf
++chown :5000 ${D}/opt/etc/fonts/conf.avail/99-slp.conf
++chmod 664 ${D}/opt/etc/fonts/conf.avail/99-slp.conf
+
+ %files
+ %manifest default-fonts-fc-sdk.manifest
diff --git a/packaging/dlog.spec b/packaging/dlog.spec
-index 0f9a51c..5bc25ae 100644
+index 0f9a51c..a1400bf 100644
--- a/packaging/dlog.spec
+++ b/packaging/dlog.spec
-@@ -52,20 +52,20 @@ make %{?jobs:-j%jobs}
+@@ -52,24 +52,24 @@ make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/opt/etc/
-rm -f /etc/rc.d/rc3.d/S47dlog /etc/rc.d/rc5.d/S05dlog
-ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc3.d/S47dlog
-ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc5.d/S05dlog
-+mkdir -p $D/etc/rc.d/rc5.d
-+rm -f $D/etc/rc.d/rc3.d/S47dlog $D/etc/rc.d/rc5.d/S05dlog
-+ln -s /etc/rc.d/init.d/dlog.sh $D/etc/rc.d/rc3.d/S47dlog
-+ln -s /etc/rc.d/init.d/dlog.sh $D/etc/rc.d/rc5.d/S05dlog
++mkdir -p ${D}/etc/rc.d/rc5.d
++rm -f ${D}/etc/rc.d/rc3.d/S47dlog ${D}/etc/rc.d/rc5.d/S05dlog
++ln -s /etc/rc.d/init.d/dlog.sh ${D}/etc/rc.d/rc3.d/S47dlog
++ln -s /etc/rc.d/init.d/dlog.sh ${D}/etc/rc.d/rc5.d/S05dlog
%post -n libdlog
-chmod +x /opt/etc/.debuglevel
-rm -f /etc/profile.d/dlevel.sh
-ln -s /opt/etc/.debuglevel /etc/profile.d/dlevel.sh
-+chmod +x $D/opt/etc/.debuglevel
-+rm -f $D/etc/profile.d/dlevel.sh
-+ln -s /opt/etc/.debuglevel $D/etc/profile.d/dlevel.sh
- /sbin/ldconfig
+-/sbin/ldconfig
++chmod +x ${D}/opt/etc/.debuglevel
++rm -f ${D}/etc/profile.d/dlevel.sh
++ln -s /opt/etc/.debuglevel ${D}/etc/profile.d/dlevel.sh
++ldconfig -r ${D}
%postun -n libdlog
+-/sbin/ldconfig
++ldconfig -r ${D}
+
+ %files -n dlogutil
+ %manifest dlogutil.manifest
+SRC_URI += "file://libtcore.spec.patch "
+
+do_patch_append () {
+ echo RLM begining of do_patch
+ cat ${WORKDIR}/libtcore.spec.patch | patch -s -p1 --fuzz=2
+
+ echo RLM end of do_patch
+}
--- /dev/null
+diff --git a/packaging/libtcore.spec b/packaging/libtcore.spec
+index 00af71e..2edce2f 100644
+--- a/packaging/libtcore.spec
++++ b/packaging/libtcore.spec
+@@ -59,7 +59,7 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DVERSION=%{version}
+ make %{?jobs:-j%jobs}
+
+ %post
+-/sbin/ldconfig
++ldconfig -r ${D}
+
+ %postun -p /sbin/ldconfig
+
diff --git a/packaging/module-init-tools.spec b/packaging/module-init-tools.spec
-index 4595ba3..4b83dbb 100644
+index 4595ba3..1ab5a18 100644
--- a/packaging/module-init-tools.spec
+++ b/packaging/module-init-tools.spec
@@ -1,7 +1,7 @@
Release: 2
License: GPLv2+
Summary: Kernel module management utilities
+@@ -62,8 +62,8 @@ rm -rf %{buildroot}
+
+ %post
+ create_etc_modules() {
+- if [ ! -e /etc/modules ]; then
+- cat <<EOT > /etc/modules
++ if [ ! -e ${D}/etc/modules ]; then
++ cat <<EOT > ${D}/etc/modules
+ # /etc/modules: kernel modules to load at boot time.
+ #
+ # This file contains the names of kernel modules that should be loaded
+@@ -71,7 +71,7 @@ create_etc_modules() {
+ # Parameters can be specified after the module name.
+
+ EOT
+- chmod 644 /etc/modules
++ chmod 644 ${D}/etc/modules
+ fi
+ }
+ create_etc_modules
diff --git a/packaging/pciutils.spec b/packaging/pciutils.spec
-index c153f2f..9bcd0bd 100644
+index c153f2f..6752935 100644
--- a/packaging/pciutils.spec
+++ b/packaging/pciutils.spec
@@ -42,7 +42,10 @@ rm -rf $RPM_BUILD_ROOT
# libpci-devel
mkdir -p $RPM_BUILD_ROOT%{_includedir}/pci
-@@ -61,21 +64,21 @@ ln -s libpci.so.3.0.0 $RPM_BUILD_ROOT%{_libdir}/libpci.so.3
+@@ -60,22 +63,22 @@ ln -s libpci.so.3.0.0 $RPM_BUILD_ROOT%{_libdir}/libpci.so.3
+ %remove_docs
%post
- /sbin/ldconfig
+-/sbin/ldconfig
-rm -f %{_datadir}/misc/pci.ids.new
-rm -f %{_datadir}/misc/pci.ids.neww
-rm -f %{_datadir}/misc/pci.ids.old
++ldconfig -r ${D}
+rm -f ${D}%{_datadir}/misc/pci.ids.new
+rm -f ${D}%{_datadir}/misc/pci.ids.neww
+rm -f ${D}%{_datadir}/misc/pci.ids.old
%postun
- /sbin/ldconfig
+-/sbin/ldconfig
-rm -f %{_datadir}/misc/pci.ids.new
-rm -f %{_datadir}/misc/pci.ids.neww
-rm -f %{_datadir}/misc/pci.ids.old
++ldconfig -r ${D}
+rm -f ${D}%{_datadir}/misc/pci.ids.new
+rm -f ${D}%{_datadir}/misc/pci.ids.neww
+rm -f ${D}%{_datadir}/misc/pci.ids.old
+RPROVIDES_python-base += "python-core"
+
SRC_URI += "\
file://python-base.spec.patch \
"
+SRC_URI += "file://svi-data-sdk.spec.patch"
+
+do_patch_append () {
+ echo RLM begining of do_patch
+ cat ${WORKDIR}/svi-data-sdk.spec.patch | patch -s -p1 --fuzz=2
+
+ echo RLM end of do_patch
+}
--- /dev/null
+diff --git a/packaging/svi-data-sdk.spec b/packaging/svi-data-sdk.spec
+index 4bf5620..9ac2d38 100644
+--- a/packaging/svi-data-sdk.spec
++++ b/packaging/svi-data-sdk.spec
+@@ -25,43 +25,43 @@ rm -rf %{buildroot}
+ %make_install
+
+ %post
+-mkdir -p /opt/share/svi/sound/touch
+-ln -s %{_datadir}/svi/sound/touch/key0.wav /opt/share/svi/sound/touch/key0.wav
+-ln -s %{_datadir}/svi/sound/touch/key1.wav /opt/share/svi/sound/touch/key1.wav
+-ln -s %{_datadir}/svi/sound/touch/key2.wav /opt/share/svi/sound/touch/key2.wav
+-ln -s %{_datadir}/svi/sound/touch/key3.wav /opt/share/svi/sound/touch/key3.wav
+-ln -s %{_datadir}/svi/sound/touch/key4.wav /opt/share/svi/sound/touch/key4.wav
+-ln -s %{_datadir}/svi/sound/touch/key5.wav /opt/share/svi/sound/touch/key5.wav
+-ln -s %{_datadir}/svi/sound/touch/key6.wav /opt/share/svi/sound/touch/key6.wav
+-ln -s %{_datadir}/svi/sound/touch/key7.wav /opt/share/svi/sound/touch/key7.wav
+-ln -s %{_datadir}/svi/sound/touch/key8.wav /opt/share/svi/sound/touch/key8.wav
+-ln -s %{_datadir}/svi/sound/touch/key9.wav /opt/share/svi/sound/touch/key9.wav
+-ln -s %{_datadir}/svi/sound/touch/keyasterisk.wav /opt/share/svi/sound/touch/keyasterisk.wav
+-ln -s %{_datadir}/svi/sound/touch/keysharp.wav /opt/share/svi/sound/touch/keysharp.wav
+-ln -s %{_datadir}/svi/sound/touch/sip.wav /opt/share/svi/sound/touch/sip.wav
+-ln -s %{_datadir}/svi/sound/touch/sip_backspace.wav /opt/share/svi/sound/touch/sip_backspace.wav
+-ln -s %{_datadir}/svi/sound/touch/touch.wav /opt/share/svi/sound/touch/touch.wav
++mkdir -p ${D}/opt/share/svi/sound/touch
++ln -s %{_datadir}/svi/sound/touch/key0.wav ${D}/opt/share/svi/sound/touch/key0.wav
++ln -s %{_datadir}/svi/sound/touch/key1.wav ${D}/opt/share/svi/sound/touch/key1.wav
++ln -s %{_datadir}/svi/sound/touch/key2.wav ${D}/opt/share/svi/sound/touch/key2.wav
++ln -s %{_datadir}/svi/sound/touch/key3.wav ${D}/opt/share/svi/sound/touch/key3.wav
++ln -s %{_datadir}/svi/sound/touch/key4.wav ${D}/opt/share/svi/sound/touch/key4.wav
++ln -s %{_datadir}/svi/sound/touch/key5.wav ${D}/opt/share/svi/sound/touch/key5.wav
++ln -s %{_datadir}/svi/sound/touch/key6.wav ${D}/opt/share/svi/sound/touch/key6.wav
++ln -s %{_datadir}/svi/sound/touch/key7.wav ${D}/opt/share/svi/sound/touch/key7.wav
++ln -s %{_datadir}/svi/sound/touch/key8.wav ${D}/opt/share/svi/sound/touch/key8.wav
++ln -s %{_datadir}/svi/sound/touch/key9.wav ${D}/opt/share/svi/sound/touch/key9.wav
++ln -s %{_datadir}/svi/sound/touch/keyasterisk.wav ${D}/opt/share/svi/sound/touch/keyasterisk.wav
++ln -s %{_datadir}/svi/sound/touch/keysharp.wav ${D}/opt/share/svi/sound/touch/keysharp.wav
++ln -s %{_datadir}/svi/sound/touch/sip.wav ${D}/opt/share/svi/sound/touch/sip.wav
++ln -s %{_datadir}/svi/sound/touch/sip_backspace.wav ${D}/opt/share/svi/sound/touch/sip_backspace.wav
++ln -s %{_datadir}/svi/sound/touch/touch.wav ${D}/opt/share/svi/sound/touch/touch.wav
+
+-mkdir -p /opt/share/svi/sound/operation
+-ln -s %{_datadir}/svi/sound/operation/call_connect.wav /opt/share/svi/sound/operation/call_connect.wav
+-ln -s %{_datadir}/svi/sound/operation/call_disconnect.wav /opt/share/svi/sound/operation/call_disconnect.wav
+-ln -s %{_datadir}/svi/sound/operation/charger_connection.wav /opt/share/svi/sound/operation/charger_connection.wav
+-ln -s %{_datadir}/svi/sound/operation/fully_charged.wav /opt/share/svi/sound/operation/fully_charged.wav
+-ln -s %{_datadir}/svi/sound/operation/list_reorder.wav /opt/share/svi/sound/operation/list_reorder.wav
+-ln -s %{_datadir}/svi/sound/operation/lock.wav /opt/share/svi/sound/operation/lock.wav
+-ln -s %{_datadir}/svi/sound/operation/low_battery.wav /opt/share/svi/sound/operation/low_battery.wav
+-ln -s %{_datadir}/svi/sound/operation/minute_minder.wav /opt/share/svi/sound/operation/minute_minder.wav
+-ln -s %{_datadir}/svi/sound/operation/power_on.wav /opt/share/svi/sound/operation/power_on.wav
+-ln -s %{_datadir}/svi/sound/operation/shutter.wav /opt/share/svi/sound/operation/shutter.wav
+-ln -s %{_datadir}/svi/sound/operation/slider_sweep.wav /opt/share/svi/sound/operation/slider_sweep.wav
+-ln -s %{_datadir}/svi/sound/operation/unlock.wav /opt/share/svi/sound/operation/unlock.wav
+-ln -s %{_datadir}/svi/sound/operation/volume_control.wav /opt/share/svi/sound/operation/volume_control.wav
++mkdir -p ${D}/opt/share/svi/sound/operation
++ln -s %{_datadir}/svi/sound/operation/call_connect.wav ${D}/opt/share/svi/sound/operation/call_connect.wav
++ln -s %{_datadir}/svi/sound/operation/call_disconnect.wav ${D}/opt/share/svi/sound/operation/call_disconnect.wav
++ln -s %{_datadir}/svi/sound/operation/charger_connection.wav ${D}/opt/share/svi/sound/operation/charger_connection.wav
++ln -s %{_datadir}/svi/sound/operation/fully_charged.wav ${D}/opt/share/svi/sound/operation/fully_charged.wav
++ln -s %{_datadir}/svi/sound/operation/list_reorder.wav ${D}/opt/share/svi/sound/operation/list_reorder.wav
++ln -s %{_datadir}/svi/sound/operation/lock.wav ${D}/opt/share/svi/sound/operation/lock.wav
++ln -s %{_datadir}/svi/sound/operation/low_battery.wav ${D}/opt/share/svi/sound/operation/low_battery.wav
++ln -s %{_datadir}/svi/sound/operation/minute_minder.wav ${D}/opt/share/svi/sound/operation/minute_minder.wav
++ln -s %{_datadir}/svi/sound/operation/power_on.wav ${D}/opt/share/svi/sound/operation/power_on.wav
++ln -s %{_datadir}/svi/sound/operation/shutter.wav ${D}/opt/share/svi/sound/operation/shutter.wav
++ln -s %{_datadir}/svi/sound/operation/slider_sweep.wav ${D}/opt/share/svi/sound/operation/slider_sweep.wav
++ln -s %{_datadir}/svi/sound/operation/unlock.wav ${D}/opt/share/svi/sound/operation/unlock.wav
++ln -s %{_datadir}/svi/sound/operation/volume_control.wav ${D}/opt/share/svi/sound/operation/volume_control.wav
+
+-mkdir -p /opt/share/svi/haptic/default
+-ln -s %{_datadir}/svi/haptic/default/Basic_call.tht /opt/share/svi/haptic/default/Basic_call.tht
++mkdir -p ${D}/opt/share/svi/haptic/default
++ln -s %{_datadir}/svi/haptic/default/Basic_call.tht ${D}/opt/share/svi/haptic/default/Basic_call.tht
+
+-mkdir -p /opt/share/svi/haptic/touch
+-ln -s %{_datadir}/svi/haptic/touch/touch.tht /opt/share/svi/haptic/touch/touch.tht
++mkdir -p ${D}/opt/share/svi/haptic/touch
++ln -s %{_datadir}/svi/haptic/touch/touch.tht ${D}/opt/share/svi/haptic/touch/touch.tht
+
+ %files
+ %manifest svi-data-sdk.manifest
+SRC_URI += "file://sys-assert.spec.patch"
+
+do_patch_append () {
+ echo RLM begining of do_patch
+ cat ${WORKDIR}/sys-assert.spec.patch | patch -s -p1 --fuzz=2
+
+ echo RLM end of do_patch
+}
--- /dev/null
+diff --git a/packaging/sys-assert.spec b/packaging/sys-assert.spec
+index 238c712..ce7d10d 100644
+--- a/packaging/sys-assert.spec
++++ b/packaging/sys-assert.spec
+@@ -32,22 +32,22 @@ rm -rf %{buildroot}
+ mkdir -p %{buildroot}/usr/share/license
+ cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
+ %post
+-/sbin/ldconfig
+-mkdir -p /opt/share/crash/info
+-chown root:crash /opt/share/crash/info
+-chmod 775 /opt/share/crash/info
++ldconfig -r ${D}
++mkdir -p ${D}/opt/share/crash/info
++chown root:crash ${D}/opt/share/crash/info
++chmod 775 ${D}/opt/share/crash/info
+
+-chown root:crash /opt/share/crash
+-chmod 775 /opt/share/crash
++chown root:crash ${D}/opt/share/crash
++chmod 775 ${D}/opt/share/crash
+
+-if [ -f %{_libdir}/rpm-plugins/msm.so ]; then
+- find /opt/share/crash -print0 | xargs -0 chsmack -a 'sys-assert::core'
+- find /opt/share/crash -type d -print0 | xargs -0 chsmack -t
++if [ -f ${D}%{_libdir}/rpm-plugins/msm.so ]; then
++ find ${D}/opt/share/crash -print0 | xargs -0 chsmack -a 'sys-assert::core'
++ find ${D}/opt/share/crash -type d -print0 | xargs -0 chsmack -t
+ fi
+
+-if [ ! -d /.build ]; then
+- echo "/usr/lib/libsys-assert.so" >> /etc/ld.so.preload
+- chmod 644 /etc/ld.so.preload
++if [ ! -d ${D}/.build ]; then
++ echo "/usr/lib/libsys-assert.so" >> ${D}/etc/ld.so.preload
++ chmod 644 ${D}/etc/ld.so.preload
+ fi
+
+ %files
+SRC_URI += "file://util-linux-ng.spec.patch "
+
+do_patch_append () {
+ echo RLM begining of do_patch
+ cat ${WORKDIR}/util-linux-ng.spec.patch | patch -s -p1 --fuzz=2
+
+ echo RLM end of do_patch
+}
--- /dev/null
+diff --git a/packaging/util-linux-ng.spec b/packaging/util-linux-ng.spec
+index 9ee13b2..62663af 100644
+--- a/packaging/util-linux-ng.spec
++++ b/packaging/util-linux-ng.spec
+@@ -157,21 +157,23 @@ rm -f $RPM_BUILD_ROOT/usr/share/info/dir
+
+ %post
+ # only for minimal buildroots without /var/log
+-[ -d /var/log ] || /bin/mkdir -p /var/log
+-/bin/touch /var/log/lastlog
+-/bin/chown root:root /var/log/lastlog
+-/bin/chmod 0644 /var/log/lastlog
++[ -d ${D}/var/log ] || /bin/mkdir -p ${D}/var/log
++/bin/touch ${D}/var/log/lastlog
++/bin/chown root:root ${D}/var/log/lastlog
++/bin/chmod 0644 ${D}/var/log/lastlog
+
+
+
+ %post -n libblkid
+-/sbin/ldconfig
+-[ -e /etc/blkid.tab ] && mv /etc/blkid.tab /etc/blkid/blkid.tab || :
+-[ -e /etc/blkid.tab.old ] && mv /etc/blkid.tab.old /etc/blkid/blkid.tab.old || :
++ldconfig -r ${D}
++[ -e ${D}/etc/blkid.tab ] && mv ${D}/etc/blkid.tab ${D}/etc/blkid/blkid.tab || :
++[ -e ${D}/etc/blkid.tab.old ] && mv ${D}/etc/blkid.tab.old ${D}/etc/blkid/blkid.tab.old || :
+
+ %postun -n libblkid -p /sbin/ldconfig
+
+-%post -n libuuid -p /sbin/ldconfig
++%post -n libuuid
++ldconfig -r ${D}
++
+ %postun -n libuuid -p /sbin/ldconfig
+
+ %pre -n uuidd
diff --git a/packaging/xdgmime.spec b/packaging/xdgmime.spec
-index 1b74dab..4862821 100644
+index 1b74dab..d6d85ea 100644
--- a/packaging/xdgmime.spec
+++ b/packaging/xdgmime.spec
-@@ -33,8 +33,8 @@ rm -rf %{buildroot}
+@@ -33,9 +33,9 @@ rm -rf %{buildroot}
%make_install
%post
-chown root:root /usr/lib/libxdgmime.so.1.1.0
-chmod 644 /usr/lib/libxdgmime.so.1.1.0
+-/sbin/ldconfig
+chown root:root ${D}/usr/lib/libxdgmime.so.1.1.0
+chmod 644 ${D}/usr/lib/libxdgmime.so.1.1.0
- /sbin/ldconfig
++ldconfig -r ${D}
%postun -p /sbin/ldconfig
+