ERROR! adding patch (yeahlaunch-0.3) [solved]

discuss compiling applications for Puppy
Post Reply
Message
Author
User avatar
harii4
Posts: 448
Joined: Fri 30 Jan 2009, 04:08
Location: La Porte City, IA , U.S.A.
Contact:

ERROR! adding patch (yeahlaunch-0.3) [solved]

#1 Post by harii4 »

Using src2pkg on TXZ_Pup with the src2pkg gui conf.

must be an badly written Makefiles or configure scripts -
have to be in the patch because it gives an same error.
But makes the yeahlaunch-0.2 packages fine without patch?

Code: Select all

# cd $HOME/yeahlaunch                         
# src2pkg -CWD yeahlaunch-0.3.tar.gz          
Found source archive: yeahlaunch-0.3.tar.gz
Creating working directories:
   PKG_DIR=/root/yeahlaunch/yeahlaunch-0.3-i486-1
   SRC_DIR=/root/yeahlaunch/yeahlaunch-0.3-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Skipping configuration: Nothing to be done
Continuing - We found at least one Makefile
Compiling sources - Using: 'make'
ERROR! Compiling source code has failed.
This usually happens because of missing libraries, or
badly written Makefiles or configure scripts.
Sorry! No Dependency or Requirements information found.

# src2pkg -CWD yeahlaunch-0.2.tar.gz
Found source archive: yeahlaunch-0.2.tar.gz
Creating working directories:
   PKG_DIR=/root/yeahlaunch/yeahlaunch-0.2-i486-1
   SRC_DIR=/root/yeahlaunch/yeahlaunch-0.2-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - Found
Applying: yeahlaunch-0.3.patch
   Notice - Running 'make clean' in SRC_DIR - Done
Skipping configuration: Nothing to be done
Continuing - We found at least one Makefile
Compiling sources - Using: 'make'
ERROR! Compiling source code has failed.
This usually happens because of missing libraries, or
badly written Makefiles or configure scripts.
Sorry! No Dependency or Requirements information found.

# src2pkg -CWD yeahlaunch-0.2.tar.gz
Found source archive: yeahlaunch-0.2.tar.gz
Deleting old build files - Done
Creating working directories:
   PKG_DIR=/root/yeahlaunch/yeahlaunch-0.2-i486-1
   SRC_DIR=/root/yeahlaunch/yeahlaunch-0.2-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Skipping configuration: Nothing to be done
Continuing - We found at least one Makefile
Compiling sources - Using: 'make'
Compiling has been - Successful!
Checking for Makefile rule: 'install' Okay
Creating content in JAIL root - Using: 'make install'
Safe content creation - Successful!
Processing package content:
Correcting package permissions - Done
Stripping ELF binaries - Using: strip -p --strip-unneeded Done
Checking for minimal set of documents - Done
Creating slack-desc - Searching for links in: yeahlaunch-0.2-i486-1 - None found
Rechecking package correctness - 
Checking for misplaced dirs - 
   Notice - Package contains /usr/local directory, but PRE_FIX is: /usr
   You may need to patch the Makefile(s) to correct the installation prefix.
Rechecking package permissions - Done
Creating package: 'yeahlaunch-0.2-i486-1.pet' - Done
Package Creation - Successful! Package location:
/root/yeahlaunch/yeahlaunch-0.2-i486-1.pet
web site:http://www.bstern.org/yeahlaunch/

I'm over my head here :(
If anyone could package this - i would be very thankful :)
Last edited by harii4 on Tue 19 Jun 2012, 00:07, edited 1 time in total.
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#2 Post by amigo »

I checked out the sources and patch -the problem is with the first 'hunk' of the patch which comments the line:
LIB_DIRS = -L/usr/X11R6/lib
On my old system (Slackware-11.0) leaving off the part of the patch to the Makefile makes it work. But for Puppy I'm guessing you need to leave in the part of the patch for the Makefile, but make it read:

Code: Select all

diff -ruwb yeahlaunch-0.2/Makefile yeahlaunch-0.3/Makefile
--- yeahlaunch-0.2/Makefile	2004-12-12 12:24:42.000000000 -0500
+++ yeahlaunch-0.3/Makefile	2011-11-30 17:10:30.000000000 -0500
@@ -7,8 +7,10 @@
 
 LIBS = -lX11 
 INCLUDES = -I/usr/X11R6/include 
-LIB_DIRS = -L/usr/X11R6/lib
-FLAGS = -Os -Wall
+# On modern distributions, this seems to be unneeded.  Uncomment and fix as
+# needed if the build breaks.
+LIB_DIRS = -L/usr/X11R7/lib
+FLAGS = -Os -Wall -Werror
 
 OBJECTS := yeahlaunch.o
 SOURCES := yeahlaunch.c

User avatar
harii4
Posts: 448
Joined: Fri 30 Jan 2009, 04:08
Location: La Porte City, IA , U.S.A.
Contact:

#3 Post by harii4 »

Thank You - That worked great :D
Seen all the code and got freaked.

Not much of an application but its one I like to use.
src2pkg is an great tool -
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.

Post Reply