Re: creating steghide portfile, won't build

"zuzu (sean)" <[email protected]>
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
 > Well that's progress.  The FreeBSD port patches src/ 
AuSampleValues.cc file
 > if that helps.  You might also want to take a look at the portage  
port to
 > see patches they made.
 >
 > http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/steghide/files/
 > http://rsync1.it.gentoo.org/gentoo-portage/app-crypt/steghide/? 
C=N;O=A
 >
 > Maybe that will help out.
 >
 > Mark


Quite right; thanks again.  The issue seems to be patching the  
steghide code to conform to GCC 4.x, of which Apple includes GCC 4.01  
with Xcode.  The Gentoo portage maintainers include a patch precisely  
for this at the location you mentioned:
http://rsync1.it.gentoo.org/gentoo-portage/app-crypt/steghide/files/ 
steghide-0.5.1-gcc4.patch

Reading
http://darwinports.opendarwin.org/docs/ch03s03.html
http://darwinports.opendarwin.org/docs/ch04s07.html

I created a files/ directory in the development port directory for  
steghide, and placed the aforementioned patchfile inside.
I then added the following line to the Portfile:
patchfiles        steghide-0.5.1-gcc4.patch

The relevant snippet of the build process below reflects this, but  
you can read that it fails basically because the patch isn't prepared  
in the Darwinports style, it seems to me.  From the documentation,  
I'm not clear on how to covert the patch; namely what the  
requirements are on the Darwinports side of things.  (Generally,  
breaking out the patch into .diff files for each source file to be  
patched, correct?  ...as -p0 rather than -p1 is used by the patch tool.)



DEBUG: Executing com.apple.patch (steghide)
--->  Applying patches to steghide
--->  Applying /Users/zuzu/dports-dev/multimedia/steghide/files/ 
steghide-0.5.1-gcc4.patch
DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/ 
_Users_zuzu_dports-dev_multimedia_steghide/work/steghide-0.5.1" &&  
patch -p0'
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 -ur steghide-0.5.1-orig/src/AuData.h steghide-0.5.1/src/AuData.h
|--- steghide-0.5.1-orig/src/AuData.h   2006-03-10 02:17:19.000000000  
-0500
|+++ steghide-0.5.1/src/AuData.h        2006-03-10 02:19:01.000000000  
-0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
Error: Target com.apple.patch returned: shell command "cd "/opt/local/ 
var/db/dports/build/_Users_zuzu_dports-dev_multimedia_steghide/work/ 
steghide-0.5.1" && patch -p0 < "/Users/zuzu/dports-dev/multimedia/ 
steghide/files/steghide-0.5.1-gcc4.patch"" returned error 1
Command output: 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 -ur steghide-0.5.1-orig/src/AuData.h steghide-0.5.1/src/AuData.h
|--- steghide-0.5.1-orig/src/AuData.h   2006-03-10 02:17:19.000000000  
-0500
|+++ steghide-0.5.1/src/AuData.h        2006-03-10 02:19:01.000000000  
-0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored

Warning: the following items did not execute (for steghide):  
com.apple.build com.apple.patch com.apple.configure
Error: Status 1 encountered during processing.





On 8/3/06, Mark Duling <[email protected]> wrote:
 > "zuzu (sean)" <[email protected]> writes:
 > >Technically, libjpeg is optional (if you never want to encapsulate
 > >your data with JPEG), what's causing the level one error is a  
failure
 > >with libmhash.
 > >
 > >The three checks which returned a no value include:
 > >
 > >checking for mhash_init in -lmhash... no
 > >checking for mcrypt_generic in -lmcrypt... no
 > >checking for jpeg_read_coefficients in -ljpeg... no
 > >
 > >
 > >With the Portfile changes you recommended, the configure stage
 > >completes (the no values change to yes).
 > >
 > >configure.env     CPPFLAGS=-I${prefix}/include \
 > >                   CFLAGS=-I${prefix}/include \
 > >                   LDFLAGS=-L${prefix}/lib
 > >
 > >
 > >But now the actual build fails.  Errors with SampleValue.h,  
AuData.h,
 > >and AudioData.h, in trying to build AuFile.o
 >
 > Well that's progress.  The FreeBSD port patches src/ 
AuSampleValues.cc file
 > if that helps.  You might also want to take a look at the portage  
port to
 > see patches they made.
 >
 > http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/steghide/files/
 > http://rsync1.it.gentoo.org/gentoo-portage/app-crypt/steghide/? 
C=N;O=A
 >
 > Maybe that will help out.
 >
 > Mark
 >
 >

_______________________________________________
Darwinports mailing list
[email protected]
http://www.opendarwin.org/mailman/listinfo/darwinports
PGP.sig (application/pgp-signature, 186 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.