Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313855 - net-analyzer/hping-3_pre20051105-r1 support building in OSX
Summary: net-analyzer/hping-3_pre20051105-r1 support building in OSX
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL: https://github.com/antirez/hping/issues
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2010-04-08 11:53 UTC by Florian CROUZAT (SuperFlo)
Modified: 2017-04-17 06:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
For a successful compilation under OS X. (hping-3_pre20051105_universal.patch,16.30 KB, patch)
2010-04-08 11:55 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
ebuild patch (hping-3_pre20051105-r1.ebuild.patch,474 bytes, patch)
2010-04-08 11:55 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
patched ebuild for hping3 -r2 (hping-3_pre20051105-r2.ebuild.patch,732 bytes, patch)
2010-05-11 13:13 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
adbuf patch (hping-3_pre20051105-adbuf.patch,352 bytes, patch)
2010-05-11 13:14 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
apd patch (hping-3_pre20051105-apd.patch,1.07 KB, patch)
2010-05-11 13:14 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
ars patch (hping-3_pre20051105-ars.patch,692 bytes, patch)
2010-05-11 13:15 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
byteorder patch (hping-3_pre20051105-byteorder.patch,390 bytes, patch)
2010-05-11 13:15 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
getifname patch (hping-3_pre20051105-getifname.patch,685 bytes, patch)
2010-05-11 13:16 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
libpcap_stuff patch (hping-3_pre20051105-libpcap_stuff.patch,524 bytes, patch)
2010-05-11 13:16 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
scan patch (hping-3_pre20051105-scan.patch,577 bytes, patch)
2010-05-11 13:17 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
script patch (hping-3_pre20051105-script.patch,730 bytes, patch)
2010-05-11 13:17 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
sendip patch (hping-3_pre20051105-sendip.patch,810 bytes, patch)
2010-05-11 13:17 UTC, Florian CROUZAT (SuperFlo)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian CROUZAT (SuperFlo) 2010-04-08 11:53:59 UTC
System uname: Darwin-10.3.0-i386-64bit

hping-3_pre20051105-r1 couldn't be compiled under OS X after I ecopied (ecopy) it into my overlay.
Unmasking it and applying a patch I carry around for sometimes fixed it, using TCL or not.
This patch was supposed back in time to allow compiling hping-3_pre20051105-r1 under OSX/Linux and *BSD but I haven't tested it since on other OS, except for now, on my OS X.
Comment 1 Florian CROUZAT (SuperFlo) 2010-04-08 11:55:32 UTC
Created attachment 227003 [details, diff]
For a successful compilation under OS X.
Comment 2 Florian CROUZAT (SuperFlo) 2010-04-08 11:55:56 UTC
Created attachment 227005 [details, diff]
ebuild patch
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-11 04:30:51 UTC
Comment on attachment 227005 [details, diff]
ebuild patch

Please prepare a clean patch against -r2. The current one is rather messy (includes files such as Makefile and .depend that were generated by the configure script and Makefile, respectively), and the patch does not apply against -r1 or -r2.
Comment 4 Florian CROUZAT (SuperFlo) 2010-05-11 06:46:06 UTC
(In reply to comment #3)
> Please prepare a clean patch against -r2. The current one is rather messy
> (includes files such as Makefile and .depend that were generated by the
> configure script and Makefile, respectively), and the patch does not apply
> against -r1 or -r2.

Yes that's because all these files, and vim swap files are included in the source archive from hping.org.. 
I'll try and make a cleaner patch though, splitting this one in multiple patches.
And not removing the .depend/Makefile/swap then.
Comment 5 Florian CROUZAT (SuperFlo) 2010-05-11 13:10:07 UTC
Comment on attachment 227003 [details, diff]
For a successful compilation under OS X.

splitted in multiple patches.
Comment 6 Florian CROUZAT (SuperFlo) 2010-05-11 13:13:43 UTC
Created attachment 231079 [details, diff]
patched ebuild for hping3 -r2
Comment 7 Florian CROUZAT (SuperFlo) 2010-05-11 13:14:44 UTC
Created attachment 231081 [details, diff]
adbuf patch
Comment 8 Florian CROUZAT (SuperFlo) 2010-05-11 13:14:59 UTC
Created attachment 231083 [details, diff]
apd patch
Comment 9 Florian CROUZAT (SuperFlo) 2010-05-11 13:15:13 UTC
Created attachment 231085 [details, diff]
ars patch
Comment 10 Florian CROUZAT (SuperFlo) 2010-05-11 13:15:36 UTC
Created attachment 231087 [details, diff]
byteorder patch
Comment 11 Florian CROUZAT (SuperFlo) 2010-05-11 13:16:19 UTC
Created attachment 231089 [details, diff]
getifname patch
Comment 12 Florian CROUZAT (SuperFlo) 2010-05-11 13:16:50 UTC
Created attachment 231091 [details, diff]
libpcap_stuff patch
Comment 13 Florian CROUZAT (SuperFlo) 2010-05-11 13:17:05 UTC
Created attachment 231093 [details, diff]
scan patch
Comment 14 Florian CROUZAT (SuperFlo) 2010-05-11 13:17:18 UTC
Created attachment 231095 [details, diff]
script patch
Comment 15 Florian CROUZAT (SuperFlo) 2010-05-11 13:17:39 UTC
Created attachment 231097 [details, diff]
sendip patch
Comment 16 Florian CROUZAT (SuperFlo) 2010-05-11 13:20:09 UTC
Okay. Sorry for the flood.Patch is now splitted.
Proper compilation (no errors and no more warnings) under x64-osx and also tested under linux (x86).
Hope it helps.
Comment 17 Christoph Junghans (RETIRED) gentoo-dev 2012-09-11 22:23:28 UTC
Have you send the patches upstream? Is this still up-to-update in -r3?
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2017-04-17 06:01:43 UTC
Please send your patches upstream.