Re: creating steghide portfile, won't build

"Mark Duling" <[email protected]>
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
Just edit the top line of the patch file.  Change this:

steghide-0.5.1/src/AuData.h

to this:

src/AuData.h

That is because DP checks for files to patch beginning at ${worksrcpath}
which is at the expanded download directory location.  The Gentoo patches
apparently starts from the parent directory above that.  Then the
patchfile will correctly specify the location in the DP tree.

Mark


"zuzu (sean)" <[email protected]> writes:
>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
>
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.