summaryrefslogtreecommitdiff
path: root/net-misc/linuxptp
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/linuxptp')
-rw-r--r--net-misc/linuxptp/Manifest3
-rw-r--r--net-misc/linuxptp/files/linuxptp-3.1.1-user_cpp.patch11
-rw-r--r--net-misc/linuxptp/linuxptp-3.1.1.ebuild6
3 files changed, 18 insertions, 2 deletions
diff --git a/net-misc/linuxptp/Manifest b/net-misc/linuxptp/Manifest
index b0167f5a7f56..c1144f5adeb1 100644
--- a/net-misc/linuxptp/Manifest
+++ b/net-misc/linuxptp/Manifest
@@ -1,9 +1,10 @@
AUX linuxptp-2.0_nettstamp-systypes.patch 1374 BLAKE2B 2b90a983e99cea7c686cbb28eb7c53fece2ad22dda0a898fa3ba0a867686d500f288e24c18c473729d48deda99565069b4983ee02f56214bab6367e6a19ff9cd SHA512 e9e0ae1be45c1d3d71cbf9c7df30584e52d8169755f516e920eb49e52c0dea5e388c36e92d9d000112d7630631cdc97d2eaa55fab1413d13d145a4970b1b7120
+AUX linuxptp-3.1.1-user_cpp.patch 329 BLAKE2B e99f87e5e8c42ac3eff67b8fea87994718ab7531dac0a69b609cd2fda0e3d88762439c1dbcfe9b76ef07bea8a159476e32624c146c9a89756e22560b691d0b27 SHA512 03a40f08cd783a16849ebfbf033e1f0a953d8aac31c56ea69adad4e4c2fede3a8acc7ecc8bc62706b9fbc7271fb5781c95fd7f7b03aa4c67da8a2afae65dfa19
AUX phc2sysAT.service 248 BLAKE2B b0e1926a7755314bd0def600e81dbf7b60707216ff3844194512511ce99407cc88da7a2c83e019b20571098eba3f2297c1a1fe54da47f8fb5e07a58c20a007a2 SHA512 55f048ae44eb43894aad957b35842b0b21aa27e922be85bd286847281f8716bdde9b8187ca90d90d31c9d4587de4c35eebaf0e47498f9b950279037e03069086
AUX ptp4lAT.service 242 BLAKE2B 2b0ca6ca5b7e4adde39ca360713af02450c0d36b1f4a2393350a59d80dcb0cc26000862546b732aac9f6b89ed6fdec0175485685cc3343d2d33fc48d671cca03 SHA512 f182fc52ebfc8fa878d94604fd398d071fcf8347cc8c251a2f8f78fbce518181c543f2eae971ecfb768bc9337c816d894ab150b37ce1642e854a65792324a50b
AUX timemaster.service 234 BLAKE2B c59cfb10a85db09dc48830b166e6c3338949a2f12b4170a00d0f5b44f118fff5a56dd2fb74fecead5068f8b345399bb27dfef1e382fa27a777e9ddc65b7b92a9 SHA512 d3b1f7fb31ca0b233575bc491ba52700be8d586ead5657facda3b84141cd1467b55c52f4cafea972f13d1c647cc8b3bb1092bca580fd0b0d135688d00a641a82
DIST linuxptp-2.0.tgz 184942 BLAKE2B 79ef9d3c379769a71e652a77f05ab661db444a76a339e72106055cf900de9cabfe303c48760f11701fefe5e641d07b73fc5a250078bedf7faa3ae995ace24da3 SHA512 c33487a803f8cc461f790d9a137d5cf8b35cb6d292bdd2cf7a16aa666359d8c5e24667473be843182bef1e9f8d5c6af8aab8918978f10bf08257dd408bba66d6
DIST linuxptp-3.1.1.tgz 218784 BLAKE2B 5b46580a0e1b6e003f5f03e512c4f9b348c086f356fd47d3480da5e8223ba291fdb213798c696c37759896a99bccf21cd7e7daddce5aa5ed5701afb0e622a755 SHA512 c3c40987fe68480a8473097ebc3c506fb4f8f3b6456bbe637b2b3cb0b3e0182f1513b511fdc04b3607d5f7d8bd1bd22502bb86eb13f9fa4fa63a3331846b33ec
EBUILD linuxptp-2.0-r1.ebuild 1042 BLAKE2B c1ca710e95c14a358dfa16ee99fbe0fe5594e7e7c403a987a79b03eb9a74464a3f72a7f585c0ec779d5aceceb8f5a25afc4d3f55ac4a0038fde8fd5b4a992f42 SHA512 3cd615b214e0f519f6ec63fbadc36169aee412742debeffbf3364b05d301cae2361a7d0ad9ac79567e25713f38744160f359abb72fad840eeafd5c0d53364017
-EBUILD linuxptp-3.1.1.ebuild 1123 BLAKE2B ee9ce4164baa4e80be57f33fcd37deba319c4a83badffa167eb88f924b31c6aaf8384160e319deb8025a53bbc51dbcb9df733931f0a257c4b28e34e63c959897 SHA512 915a2cf5143ef773f0cc0e9b8656e6f9504f94caf1ccf5ef878f8e3da6f7c4b1f8cd72d108b2482728510e912402264748a40b4ca20f45174810d4a9e3c8921a
+EBUILD linuxptp-3.1.1.ebuild 1197 BLAKE2B c9c46db95d7c8d7ef267218a50d348cc862473e7c251a051992f7a4b5b29b72f1626e0811c8abcb3335b6f337384ea84e3d45759152ab73092e781dc40062c95 SHA512 1afb7a7eea3a5d1f89002ee9802eff08268e45ca16ea4ded9cdbe66f9017a5226a847ca506f024cf40546a48c0564351ee93cb7d7d603291681a99b855132f25
MISC metadata.xml 434 BLAKE2B 6294b76d69b7459ff51a8b3f679ca7bfd940a70088eb53be6e15092465a3cb01f4a7b8b5430244b871321c320ec389ac1b05b239f3eef54e9284e881910e13cf SHA512 7f2fb3921793510144e823c70d1ac263297d3591055c680fc8192dd8402e8a763bc8de8882f9c441e060e23cebaa5e6c684873d82738a6ae8f54b6e027b5c837
diff --git a/net-misc/linuxptp/files/linuxptp-3.1.1-user_cpp.patch b/net-misc/linuxptp/files/linuxptp-3.1.1-user_cpp.patch
new file mode 100644
index 000000000000..d2b3728b6141
--- /dev/null
+++ b/net-misc/linuxptp/files/linuxptp-3.1.1-user_cpp.patch
@@ -0,0 +1,11 @@
+--- a/incdefs.sh
++++ b/incdefs.sh
+@@ -27,7 +27,7 @@
+ printf " -D_GNU_SOURCE"
+
+ # Get list of directories searched for header files.
+- dirs=$(echo "" | ${CROSS_COMPILE}cpp -Wp,-v 2>&1 >/dev/null | grep ^" /")
++ dirs=$(echo "" | ${CPP} -Wp,-v - 2>&1 >/dev/null | grep ^" /")
+
+ # Look for clock_adjtime().
+ for d in $dirs; do
diff --git a/net-misc/linuxptp/linuxptp-3.1.1.ebuild b/net-misc/linuxptp/linuxptp-3.1.1.ebuild
index faae13c19360..281c2325d00b 100644
--- a/net-misc/linuxptp/linuxptp-3.1.1.ebuild
+++ b/net-misc/linuxptp/linuxptp-3.1.1.ebuild
@@ -17,13 +17,17 @@ DEPEND="elibc_musl? ( sys-libs/queue-standalone )"
CONFIG_CHECK="~NETWORK_PHY_TIMESTAMPING ~PPS ~PTP_1588_CLOCK"
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.1.1-user_cpp.patch
+)
+
pkg_setup() {
linux-info_pkg_setup
}
src_compile() {
# parse needed additional CFLAGS
- export MY_FLAGS=$(./incdefs.sh)
+ export MY_FLAGS=$(CPP="$(tc-getCPP)" ./incdefs.sh)
export EXTRA_CFLAGS="${CFLAGS} ${MY_FLAGS}"
emake CC="$(tc-getCC)" prefix=/usr mandir=/usr/share/man
}