Page 1 of 1

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

Posted: Mon 18 Jun 2012, 00:49
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 :)

Posted: Mon 18 Jun 2012, 08:11
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

Posted: Tue 19 Jun 2012, 00:06
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 -