Skip to contentSkip to conversation

new bugfix for adt installer on SuseLinux

PATCH Applied Liping Ke 2 participants 3 messages Mar 2, 2011 – Mar 4, 2011

lore
Share & tools
lore

Liping Ke

author
#0 lore raw

cover new bugfix for adt installer on SuseLinux

From: Liping Ke <[email protected]>

On Suse linux11.2, we found when using sudo, we must add -E opts to preserver some network proxy environment settings. Otherwise, opkg-cl can't access files behind firewall. [bug #785] Also, we need to add absolute path when sourcing files. Fix for [bug #786]

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: lke/adt-newfix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lke/adt-newfix

Thanks,
Liping Ke <[email protected]>
---

Liping Ke (1):
ADT: Bug fix for Suse Linux

 .../adt-installer/scripts/adt_installer_internal   |    2 +-
 .../installer/adt-installer/scripts/data_define    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
author
#1 lore raw

PATCH 1/1 ADT: Bug fix for Suse Linux

From: Liping Ke <[email protected]>

On Suse linux11.2, we found when using sudo, we must add -E opts to preserver some network proxy environment settings. Otherwise, opkg-cl can't access files behind firewall. [bug #785] Also, we need to add absolute path when sourcing files. Fix for [bug #786]

---
 .../adt-installer/scripts/adt_installer_internal   |    2 +-
 .../installer/adt-installer/scripts/data_define    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +1 -1
index 9653284..f8b5e68 100755
@@ -81,7 +81,7 @@ else
 fi
 
 #first update repository
-OPKG_CMD="sudo $LOCAL_OPKG_LOC/bin/opkg-cl"
+OPKG_CMD="sudo -E $LOCAL_OPKG_LOC/bin/opkg-cl"
 
 echo_info "Updating opkg..."
 $OPKG_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR update &>> $YOCTOADT_INSTALL_LOG_FILE
meta/recipes-devtools/installer/adt-installer/scripts/data_define +1 -1
index 77f8b38..e29cc30 100644
@@ -23,7 +23,7 @@
 # THE SOFTWARE.
 
 config_file="adt_installer.conf"
-source $config_file
+source `eval echo $PWD`/$config_file
 
 LOCAL_OPKG_LOC="./opkg/build/opkg"
 LOCAL_OPKG_FOLDER="./opkg/build"
Signature · 1 line
1.7.0.4
Applied
#2 lore raw
In reply to Liping Ke
Quoted 20 lines · Liping Ke

From: Liping Ke<[email protected]>

On Suse linux11.2, we found when using sudo, we must add -E opts to preserver some network proxy environment settings. Otherwise, opkg-cl can't access files behind firewall. [bug #785] Also, we need to add absolute path when sourcing files. Fix for [bug #786]

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: lke/adt-newfix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lke/adt-newfix

Thanks,
Liping Ke<[email protected]>
---

Liping Ke (1):
ADT: Bug fix for Suse Linux

Quoted 9 lines
  .../adt-installer/scripts/adt_installer_internal   |    2 +-
  .../installer/adt-installer/scripts/data_define    |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Merged into OE-Core and Bernard

with a minor tweak to change the eval echo $PWD -> pwd

Thanks
Sau!