Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Change package version in buildroot.
@ 2015-01-20  9:04 Piotr Rudzki
  2015-01-20 15:56 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Piotr Rudzki @ 2015-01-20  9:04 UTC (permalink / raw)
  To: buildroot

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'
>>> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Change package version in buildroot.
  2015-01-20  9:04 [Buildroot] Change package version in buildroot Piotr Rudzki
@ 2015-01-20 15:56 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-01-20 15:56 UTC (permalink / raw)
  To: buildroot

Dear Piotr Rudzki,

On Tue, 20 Jan 2015 10:04:14 +0100, Piotr Rudzki wrote:

> 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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-20 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20  9:04 [Buildroot] Change package version in buildroot Piotr Rudzki
2015-01-20 15:56 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox