Skip to contentSkip to conversation

opkg-make-index not found

DISCUSSION Jaap de Jong 2 participants 8 messages Feb 15, 2013 – Feb 20, 2013

lore
Share & tools
lore
#0 lore raw

Hi All,

if I do

bitbake package-index

it crashes with the message

| /bin/bash: opkg-make-index: command not found

This is on a 64 debian machine, possibly the wrong path is searched? (there is a opkg-make-index under sysroots/x86_64-linux/usr/bin)

Is this a known problem?
Thanks!

Jaap

#1 lore raw

Hi,

Quoted 1 line

This is on a 64 debian machine, possibly the wrong path is searched?

If you doubt the PATH setting, you should check the output from:

$ bitbake -e | grep '^export PATH'
Signature · 3 lines
Takeshi Hamasaki

2013/2/15 Jaap de Jong <[email protected]>:
Quoted 24 lines

Hi All,

if I do

bitbake package-index

it crashes with the message

| /bin/bash: opkg-make-index: command not found

This is on a 64 debian machine, possibly the wrong path is searched? (there is a opkg-make-index under sysroots/x86_64-linux/usr/bin)

Is this a known problem?
Thanks!

Jaap

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 8 lines · Takeshi Hamasaki
Quoted 8 lines

if I do

bitbake package-index

it crashes with the message

| /bin/bash: opkg-make-index: command not found

Quoted 8 lines
Quoted 4 lines

This is on a 64 debian machine, possibly the wrong path is searched? (there is a opkg-make-index under sysroots/x86_64-linux/usr/bin)

If you doubt the PATH setting, you should check the output from:

$ bitbake -e | grep '^export PATH'

Well opkg-make-index is in the path.

Something strange is happening here.
If I edit package-index.bb and add a call to opkg-make-index

   do_package_index() {
        set -ex
   opkg-make-index   ### ADDED CODE
        ${PACKAGEINDEXES}
        set +ex
   }

it shows an error message when invoking bitbake package-index showing that opkg-make-index is actualy working...

/// .../build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin/opkg-make-index [-h] [-s] [-m] [-l Packages.filelist] [-p Packages] [-r
Packages.old] [-L localesdir] [-v] packagesdir
NOTE: package package-index-1.0-r0: task do_package_index: Failed
///

Any idea?

#3 lore raw

Hi,

this may or may not help you:

$ bitbake -e package-index > bbenv.package-index
$ grep PACKAGEINDEXES bbenv.package-index
(
 for me, the result was:

# PACKAGEINDEXES= package_update_index_ipk;
PACKAGEINDEXES="package_update_index_ipk;"

)

Then I tried searching "package_update_index_ipk" in bbenv.package-index using a text editor. It is a function, and in it, opkg-make-index is called in a line:

flock $pkgdir/Packages.flock -c "opkg-make-index -r $pkgdir/Packages
-p $pkgdir/Packages -m $pkgdir/"

What do you find in your box?

Signature · 3 lines
Takeshi Hamasaki

2013/2/18 Jaap de Jong <[email protected]>:
Quoted 53 lines · Takeshi Hamasaki
Quoted 9 lines
Quoted 9 lines

if I do

bitbake package-index

it crashes with the message

| /bin/bash: opkg-make-index: command not found

Quoted 8 lines
Quoted 4 lines

This is on a 64 debian machine, possibly the wrong path is searched? (there is a opkg-make-index under sysroots/x86_64-linux/usr/bin)

If you doubt the PATH setting, you should check the output from:

$ bitbake -e | grep '^export PATH'

Well opkg-make-index is in the path.

Something strange is happening here.
If I edit package-index.bb and add a call to opkg-make-index

   do_package_index() {
        set -ex
   opkg-make-index   ### ADDED CODE
        ${PACKAGEINDEXES}
        set +ex
   }

it shows an error message when invoking bitbake package-index showing that opkg-make-index is actualy working...

   ///

.../build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin/opkg-make-index
[-h] [-s] [-m] [-l Packages.filelist] [-p Packages] [-r Packages.old] [-L localesdir] [-v] packagesdir
NOTE: package package-index-1.0-r0: task do_package_index: Failed ///

Any idea?

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 14 lines · Takeshi Hamasaki

Hi,

this may or may not help you:

$ bitbake -e package-index > bbenv.package-index
$ grep PACKAGEINDEXES bbenv.package-index
(
  for me, the result was:

# PACKAGEINDEXES= package_update_index_ipk;
PACKAGEINDEXES="package_update_index_ipk;"

)

Quoted 8 lines

Then I tried searching "package_update_index_ipk" in bbenv.package-index using a text editor. It is a function, and in it, opkg-make-index is called in a line:

flock $pkgdir/Packages.flock -c "opkg-make-index -r $pkgdir/Packages
-p $pkgdir/Packages -m $pkgdir/"

What do you find in your box?

For both I find the same results.
The funny thing is that on the same machine my buildserver is running and that one is having no problems... Jaap

#5 lore raw

Then I recommend to look into log files. For my case, after executing commands:

$ bitbake package-index -c cleansstate
$ bitbake -D -D package-index > bitbake-d-d.package-index 2> errlog

I have at least four log files.
1. bitbake-d-d.package-index in current dir
2. errlog in current dir
3. run.do_package_index.* in build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/package-index-1.0-r0
4. log.do_package_index.* in build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/package-index-1.0-r0

(Actually, I skipped to generate 2., my build succeed.) I guess you can find some clue looking into 4., 3., and maybe 1.

I attach mine to this mail, and hope they might be some help for you.

Signature · 3 lines
Takeshi Hamasaki

2013/2/19 Jaap de Jong <[email protected]>:
Quoted 37 lines · Takeshi Hamasaki
Quoted 15 lines

Hi,

this may or may not help you:

$ bitbake -e package-index > bbenv.package-index
$ grep PACKAGEINDEXES bbenv.package-index
(
  for me, the result was:

# PACKAGEINDEXES= package_update_index_ipk;
PACKAGEINDEXES="package_update_index_ipk;"

)

Quoted 8 lines

Then I tried searching "package_update_index_ipk" in bbenv.package-index using a text editor. It is a function, and in it, opkg-make-index is called in a line:

flock $pkgdir/Packages.flock -c "opkg-make-index -r $pkgdir/Packages
-p $pkgdir/Packages -m $pkgdir/"

What do you find in your box?

For both I find the same results.
The funny thing is that on the same machine my buildserver is running and that one is having no problems...
Jaap

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 13 lines · Takeshi Hamasaki

Then I recommend to look into log files. For my case, after executing commands:

$ bitbake package-index -c cleansstate
$ bitbake -D -D package-index > bitbake-d-d.package-index 2> errlog

I have at least four log files.
1. bitbake-d-d.package-index in current dir
2. errlog in current dir
3. run.do_package_index.* in build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/package-index-1.0-r0
4. log.do_package_index.* in build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/package-index-1.0-r0

Quoted 4 lines

(Actually, I skipped to generate 2., my build succeed.) I guess you can find some clue looking into 4., 3., and maybe 1.

I attach mine to this mail, and hope they might be some help for you.

Thanks for all your help!
I've been comparing the run.do_package_index file from myself and from the buildserver. If I look at it the only real difference (besides paths etc) are in the SHELL

Quoted 1 line

export SHELL="/usr/local/bin/bash-wrapper"

< export SHELL="/bin/bash"
I will ask my administrator to change it and will retry.

#7 lore raw
Quoted 18 lines · Jaap de Jong
Quoted 13 lines · Takeshi Hamasaki

Then I recommend to look into log files. For my case, after executing commands:

$ bitbake package-index -c cleansstate
$ bitbake -D -D package-index > bitbake-d-d.package-index 2> errlog

I have at least four log files.
1. bitbake-d-d.package-index in current dir
2. errlog in current dir
3. run.do_package_index.* in build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/package-index-1.0-r0
4. log.do_package_index.* in build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/package-index-1.0-r0

Quoted 4 lines

(Actually, I skipped to generate 2., my build succeed.) I guess you can find some clue looking into 4., 3., and maybe 1.

I attach mine to this mail, and hope they might be some help for you.

Quoted 9 lines

Thanks for all your help!
I've been comparing the run.do_package_index file from myself and from the buildserver.
If I look at it the only real difference (besides paths etc) are in the SHELL

Quoted 1 line

export SHELL="/usr/local/bin/bash-wrapper"

< export SHELL="/bin/bash"
I will ask my administrator to change it and will retry.

Adding
export SHELL=/bin/bash
to my ~/.bashrc did the trick.
No problem anymore.

Thanks for the support!!