Skip to contentSkip to conversation

Change package version in buildroot.

Buildroot Piotr Rudzki 2 participants 2 messages Jan 20, 2015

lore
Share & tools
lore
#0 lore raw

Hello.

I'm trying to change version of package in buildroot. I've copied files from package/squashfs to proper path in $BR2_EXTERNAL and changed version of sources to 4.2. When building I've warnings about overriding commands in new files but this is ok. The problem is when buildroot try to extract package. It making wrong build folder (it uses version string from original buildroot package) in output/build and cannot extract package.

Output from make V=1:
/home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:95:
warning: overriding recipe for target 'squashfs-show-dep
ends'
package/squashfs/squashfs.mk:90: warning: ignoring old recipe for target 'squashfs-show-depends' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:95:
warning: overriding recipe for target 'squashfs-graph-de
pends'
package/squashfs/squashfs.mk:90: warning: ignoring old recipe for target 'squashfs-graph-depends' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:95:
warning: overriding recipe for target 'squashfs-clean-fo
r-rebuild'
package/squashfs/squashfs.mk:90: warning: ignoring old recipe for target 'squashfs-clean-for-rebuild' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:95:
warning: overriding recipe for target 'squashfs-clean-fo
r-reconfigure'
package/squashfs/squashfs.mk:90: warning: ignoring old recipe for target 'squashfs-clean-for-reconfigure' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:95:
warning: overriding recipe for target 'squashfs-legal-in
fo'
package/squashfs/squashfs.mk:90: warning: ignoring old recipe for target 'squashfs-legal-info' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:96:
warning: overriding recipe for target 'host-squashfs-sho
w-depends'
package/squashfs/squashfs.mk:91: warning: ignoring old recipe for target 'host-squashfs-show-depends' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:96:
warning: overriding recipe for target 'host-squashfs-graph-depends' package/squashfs/squashfs.mk:91: warning: ignoring old recipe for target 'host-squashfs-graph-depends' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:96:
warning: overriding recipe for target 'host-squashfs-clean-for-rebuild' package/squashfs/squashfs.mk:91: warning: ignoring old recipe for target 'host-squashfs-clean-for-rebuild' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:96:
warning: overriding recipe for target 'host-squashfs-clean-for-reconfigure' package/squashfs/squashfs.mk:91: warning: ignoring old recipe for target 'host-squashfs-clean-for-reconfigure' /home/ryba/Cubieboard/cubie_initramfs/buildroot_external/package/embed/squashfs/squashfs.mk:96:
warning: overriding recipe for target 'host-squashfs-legal-info' package/squashfs/squashfs.mk:91: warning: ignoring old recipe for target 'host-squashfs-legal-info'

Quoted 1 line
Quoted 1 line
Quoted 1 line

squashfs 4.2 Extracting

mkdir -p /home/ryba/Cubieboard/cubie_initramfs/build/buildroot-2014.11/output/build/squashfs-4.3 gzip -d -c /home/ryba/Cubieboard/cubie_initramfs/build/buildroot-2014.11/dl/squashfs4.2.tar.gz
| tar --strip-components=1 -C /home/ryba/Cubieboard/cubie_initramfs/build/buildroot-2014.11/output/build/squashfs-4.2 -xf -
tar:
/home/ryba/Cubieboard/cubie_initramfs/build/buildroot-2014.11/output/build/squashfs-4.2:
Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
package/pkg-generic.mk:103: recipe for target '/home/ryba/Cubieboard/cubie_initramfs/build/buildroot-2014.11/output/build/squashfs-4.3/.stamp_extracted' failed
make: *** [/home/ryba/Cubieboard/cubie_initramfs/build/buildroot-2014.11/output/build/squashfs-4.3/.stamp_extracted] Error 2

Thanks for the help and sorry for my english.

#1 lore raw

Dear Piotr Rudzki,

Quoted 3 lines · Piotr Rudzki

I'm trying to change version of package in buildroot. I've copied files from package/squashfs to proper path in $BR2_EXTERNAL and changed version of sources to 4.2.

This is not supported. The $BR2_EXTERNAL mechanism can only be used to add distinct packages from the ones available in Buildroot itself. You cannot use it to override packages that exist in Buildroot with the same name.

Possible solutions are:

*) Create a new package with a different name in your $BR2_EXTERNAL
directory.

*) Change Buildroot itself, and keep your changes in a separate branch.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com