Modify

Opened 3 years ago

Closed 3 years ago

#17853 closed defect (fixed)

Image Builders broken due to base-files installation deps/order

Reported by: AndreiM Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Cc: blogic

Description

Recent changes in [42470] require $(TARGET_DIR)/lib/functions.sh be present before the installation of base-files:

Configuring libgcc.
/home/dmaces/OpenWrt/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips//usr/lib/opkg/info/libgcc.postinst: 2: .: Can't open /home/dmaces/OpenWrt/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/lib/functions.sh
Configuring libc.
/home/dmaces/OpenWrt/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips//usr/lib/opkg/info/libc.postinst: 2: .: Can't open /home/dmaces/OpenWrt/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/lib/functions.sh
Collected errors:
 * pkg_run_script: package "libgcc" postinst script returned status 2.
 * opkg_configure: libgcc.postinst returned 2.
 * pkg_run_script: package "libc" postinst script returned status 2.
 * opkg_configure: libc.postinst returned 2.
make[2]: *** [package_install] Error 255
make[2]: Leaving directory `/home/dmaces/OpenWrt/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64'
make[1]: *** [_call_image] Error 2
make[1]: Leaving directory `/home/dmaces/OpenWrt/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64'
make: *** [image] Error 2
mv: cannot stat ‘bin/ramips/openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin’: No such file or directory

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by AndreiM

My quick-and-dirty fix is simply adding:

mkdir $(TARGET_DIR)/lib; cp ../trunk/package/base-files/files/lib/functions.sh $(TARGET_DIR)/lib/

before $(MAKE) package_install.

comment:2 Changed 3 years ago by blogic

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

r42571 fixes the issue

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.