Modify

Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#4597 closed defect (fixed)

opkg force_space does not work

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: opkg, force-space Cc:

Description

I have problem with bug #4585, that opkg checks the wrong dest.
Now I try to use force_space option. And the simple not work:

# opkg -d nas -force_space install libopenssl 
Installing libopenssl (0.9.8i-3) to nas...
Collected errors:
 * Only have 1040 available blocks on filesystem /mnt/festplatte/router/, pkg libopenssl needs 1258
# opkg -d nas -force-space install libopenssl
Installing libopenssl (0.9.8i-3) to nas...
Collected errors:
 * Only have 1040 available blocks on filesystem /mnt/festplatte/router/, pkg libopenssl needs 1258

Attachments (0)

Change History (8)

comment:1 Changed 8 years ago by anonymous

Also experiencing this, opkg -force_space does not appear to work.

KAMIKAZE (8.09, r14127), WRT54GL 1.1

comment:2 Changed 7 years ago by wieszti

Also confirm in 8.09, r14511

comment:3 Changed 7 years ago by danielw86@…

fix for me add to opkg.conf entry of my sdcard dir:
option overlay_root /sdcard

comment:4 Changed 7 years ago by anonymous

Confirm in 8.09.1

comment:5 Changed 7 years ago by wieszti

You have a external media?
For me fix, add my external media /sdcard to opkg.conf like that:

rc/gz snapshots http://downloads.openwrt.org/kamikaze/8.09.1/brcm-2.4/packages
dest root /
dest sd /sdcard
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs
option overlay_root /sdcard

comment:6 Changed 7 years ago by anonymous

I see that
option force_space
in opkg.conf helps, whereas the command line parameter to opkg does not.

comment:7 Changed 7 years ago by turchaninov@…

Absent

/*

if (args->force_space) {

<------> conf->force_space = 1;
*/
in opkg_conf.c I think it must be added
....

if (args->autoremove) {

<------> conf->autoremove = 1;

}
if (args->force_depends) {

<------> conf->force_depends = 1;

}
if (args->force_defaults) {

<------> conf->force_defaults = 1;

}
if (args->force_overwrite) {

<------> conf->force_overwrite = 1;

}
if (args->force_downgrade) {

<------> conf->force_downgrade = 1;

}
if (args->force_reinstall) {

<------> conf->force_reinstall = 1;

}
if (args->force_removal_of_dependent_packages) {

<------> conf->force_removal_of_dependent_packages = 1;

}
if (args->force_removal_of_essential_packages) {

<------> conf->force_removal_of_essential_packages = 1;

}
if (args->nodeps) {

<------> conf->nodeps = 1;

}
if (args->noaction) {

<------> conf->noaction = 1;

}
if (args->query_all) {

<------> conf->query_all = 1;

}

comment:8 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r17611

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.