Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Unable to Build mpg123 because of wrong patch file
@ 2007-08-28  1:51 Hebbar
  2007-08-28  5:36 ` Hans-Christian Egtvedt
  0 siblings, 1 reply; 3+ messages in thread
From: Hebbar @ 2007-08-28  1:51 UTC (permalink / raw)
  To: buildroot


Hi All,

 I am trying to build mpg123 for arm arm926ejs toolchain. Today i tried
building mpg123 and failed because of wrong patch. Error message is attached
below. The Cause is that the Patch file tries to correct a non existent file
Makefile inside mpg123 folder just after uncompressing the mpg123 tar file.
It should patch the same after it has compiled. 


error message ---->
bzcat /home/guru/project/original/bldrt/buildroot/dl/mpg123-0.66.tar.bz2 |
tar -C /home/guru/project/original/bldrt/buildroot/build_arm   -xf -
toolchain/patch-kernel.sh
/home/guru/project/original/bldrt/buildroot/build_arm/mpg123-0.66
package/mpg123/ mpg123\*.patch

Applying mpg123-cross.patch using plaintext: 
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN mpg123-0.59r.orig/Makefile mpg123-0.59r/Makefile
|--- mpg123-0.59r.orig/Makefile 1999-06-15 22:39:06.000000000 +0200
|+++ mpg123-0.59r/Makefile      2006-12-14 15:52:44.000000000 +0100
--------------------------
File to patch: Makefile
Makefile: No such file or directory
Skip this patch? [y] y
Skipping patch.
2 out of 2 hunks ignored
Patch failed!  Please fix mpg123-cross.patch!
make: ***
[/home/guru/project/original/bldrt/buildroot/build_arm/mpg123-0.66/.unpacked]
Error 1

mpg123 folder contents.

root at box124:~/project/original/bldrt/buildroot# ls -la
build_arm/mpg123-0.66/Make*
-rwxr-xr-- 1 500 users  1112 Jun  3 19:43
build_arm/mpg123-0.66/MakeLegacy.sh
-rw-r--r-- 1 500 users   524 Jun  3 19:43 build_arm/mpg123-0.66/Makefile.am
-rw-r--r-- 1 500 users 20890 Jun  3 19:43 build_arm/mpg123-0.66/Makefile.in

mpg123.mk file contents

$(MPG123_DIR)/.unpacked: $(DL_DIR)/$(MPG123_SOURCE)
	$(MPG123_CAT) $(DL_DIR)/$(MPG123_SOURCE) | tar -C $(BUILD_DIR)
$(TAR_OPTIONS) -
	toolchain/patch-kernel.sh $(MPG123_DIR) package/mpg123/ mpg123\*.patch
	$(CONFIG_UPDATE) $(MPG123_DIR)/build
	touch $@

$(MPG123_DIR)/.configured: $(MPG123_DIR)/.unpacked
	(cd $(MPG123_DIR); rm -rf config.cache; \
		$(TARGET_CONFIGURE_ARGS) \
		$(TARGET_CONFIGURE_OPTS) \
		CFLAGS="$(TARGET_CFLAGS)" \
		LDFLAGS="$(TARGET_LDFLAGS)" \
		./configure \
		--target=$(REAL_GNU_TARGET_NAME) \
		--host=$(REAL_GNU_TARGET_NAME) \
		--build=$(GNU_HOST_NAME) \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-cpu=generic_nofpu \
		$(MPG123_USE_ALSA) \
		$(DISABLE_NLS) \
		$(DISABLE_LARGEFILE) \
	)
	touch $@


Any help is appreciated.

Regards
Gururaja
-- 
View this message in context: http://www.nabble.com/Unable-to-Build-mpg123-because-of-wrong-patch-file-tf4339318.html#a12360819
Sent from the BuildRoot mailing list archive at Nabble.com.

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

* [Buildroot] Unable to Build mpg123 because of wrong patch file
  2007-08-28  1:51 [Buildroot] Unable to Build mpg123 because of wrong patch file Hebbar
@ 2007-08-28  5:36 ` Hans-Christian Egtvedt
  2007-08-28  7:44   ` Bernhard Fischer
  0 siblings, 1 reply; 3+ messages in thread
From: Hans-Christian Egtvedt @ 2007-08-28  5:36 UTC (permalink / raw)
  To: buildroot

On Mon, 2007-08-27 at 18:51 -0700, Hebbar wrote:
> Hi All,
> 
>  I am trying to build mpg123 for arm arm926ejs toolchain. Today i tried
> building mpg123 and failed because of wrong patch. Error message is attached
> below. The Cause is that the Patch file tries to correct a non existent file
> Makefile inside mpg123 folder just after uncompressing the mpg123 tar file.
> It should patch the same after it has compiled. 

Mpg123 version was bumped, and it now uses a proper autoconf script, so
the patch is no longer needed.

> error message ---->
> bzcat /home/guru/project/original/bldrt/buildroot/dl/mpg123-0.66.tar.bz2 |
> tar -C /home/guru/project/original/bldrt/buildroot/build_arm   -xf -
> toolchain/patch-kernel.sh
> /home/guru/project/original/bldrt/buildroot/build_arm/mpg123-0.66
> package/mpg123/ mpg123\*.patch
> 
> Applying mpg123-cross.patch using plaintext: 

Nuke this patch from the repo (-:

> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -ruN mpg123-0.59r.orig/Makefile mpg123-0.59r/Makefile
> |--- mpg123-0.59r.orig/Makefile 1999-06-15 22:39:06.000000000 +0200
> |+++ mpg123-0.59r/Makefile      2006-12-14 15:52:44.000000000 +0100
> --------------------------
> File to patch: Makefile
> Makefile: No such file or directory
> Skip this patch? [y] y
> Skipping patch.
> 2 out of 2 hunks ignored
> Patch failed!  Please fix mpg123-cross.patch!
> make: ***
> [/home/guru/project/original/bldrt/buildroot/build_arm/mpg123-0.66/.unpacked]
> Error 1

<cut mpg123 directory contents>

<cut mpg123.mk>

-- 
With kind regards,
Hans-Christian Egtvedt, Applications Engineer

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

* [Buildroot] Unable to Build mpg123 because of wrong patch file
  2007-08-28  5:36 ` Hans-Christian Egtvedt
@ 2007-08-28  7:44   ` Bernhard Fischer
  0 siblings, 0 replies; 3+ messages in thread
From: Bernhard Fischer @ 2007-08-28  7:44 UTC (permalink / raw)
  To: buildroot

On Tue, Aug 28, 2007 at 07:36:34AM +0200, Hans-Christian Egtvedt wrote:
>On Mon, 2007-08-27 at 18:51 -0700, Hebbar wrote:
>> Hi All,
>> 
>>  I am trying to build mpg123 for arm arm926ejs toolchain. Today i tried
>> building mpg123 and failed because of wrong patch. Error message is attached
>> below. The Cause is that the Patch file tries to correct a non existent file
>> Makefile inside mpg123 folder just after uncompressing the mpg123 tar file.
>> It should patch the same after it has compiled. 
>
>Mpg123 version was bumped, and it now uses a proper autoconf script, so
>the patch is no longer needed.

>Nuke this patch from the repo (-:

$ svn log -r 19300 package/mpg123/mpg123.mk 
------------------------------------------------------------------------
r19300 | ulf | 2007-07-28 19:05:38 +0200 (Sat, 28 Jul 2007) | 1 line

Bump version of mpg123,use configure, change site to Sourceforge
------------------------------------------------------------------------

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

end of thread, other threads:[~2007-08-28  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-28  1:51 [Buildroot] Unable to Build mpg123 because of wrong patch file Hebbar
2007-08-28  5:36 ` Hans-Christian Egtvedt
2007-08-28  7:44   ` Bernhard Fischer

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