1 |
commit: 775540c91860c850ce01c939982f540ce1b191fb |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 13 13:46:54 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 13 13:47:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775540c9 |
7 |
|
8 |
net-misc/pps-tools: Bump to v1.0.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/631760 |
11 |
Package-Manager: Portage-2.3.10, Repoman-2.3.3 |
12 |
|
13 |
net-misc/pps-tools/Manifest | 1 + |
14 |
.../files/pps-tools-1.0.1-LDFLAGS-fix.patch | 25 +++++++++++ |
15 |
.../pps-tools/files/pps-tools-1.0.1-build.patch | 51 ++++++++++++++++++++++ |
16 |
.../pps-tools/files/pps-tools-1.0.1-install.patch | 27 ++++++++++++ |
17 |
net-misc/pps-tools/metadata.xml | 2 +- |
18 |
net-misc/pps-tools/pps-tools-1.0.1.ebuild | 27 ++++++++++++ |
19 |
6 files changed, 132 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/net-misc/pps-tools/Manifest b/net-misc/pps-tools/Manifest |
22 |
index 6dfdd34fd73..37922cc2cb6 100644 |
23 |
--- a/net-misc/pps-tools/Manifest |
24 |
+++ b/net-misc/pps-tools/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
+DIST pps-tools-1.0.1.tar.gz 12695 SHA256 4bd138d0459f73bc9016dfa72e8c0940797934d47f56f771f740a026592e67cc SHA512 6fe7eba2a1a073a64d40bcc7aef12981414b43656f05fbd84e3ffadf1a074c5aa8d032b39a37095e6846194558b685092b51799fe724fe50cce8f3cbe163f784 WHIRLPOOL cec0e6a80c83186b85f13f50a7a144d63ae51e173e29902220d31c00ab7072387d0bdda846ea2738e4a7697b6e83ec69f82c2e5af92532f9ff9677f7d54c9ac2 |
27 |
DIST pps-tools-git-0.0.20120407.tar.gz 13619 SHA256 eb020d40a3938546620889bb6ecdeead2c188e87ffd43c3ae04a41e5998e7997 SHA512 d2014262b0594959f337c25df859591d0737994decec663389392d3c7e53376ded2485713f6364c4833d8d7c40b4b0c3b88865ab85e481bcc2e81e35931d84de WHIRLPOOL 03ff250da63ff2ca2f9111b8207608e0e989c376a5af51b919d4fb8889936e00db2b15d14309dda68e92e13c7478f81e5a2d72544eefa73eb93287dd0396fc14 |
28 |
|
29 |
diff --git a/net-misc/pps-tools/files/pps-tools-1.0.1-LDFLAGS-fix.patch b/net-misc/pps-tools/files/pps-tools-1.0.1-LDFLAGS-fix.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..868d9713818 |
32 |
--- /dev/null |
33 |
+++ b/net-misc/pps-tools/files/pps-tools-1.0.1-LDFLAGS-fix.patch |
34 |
@@ -0,0 +1,25 @@ |
35 |
+From 231123e1b275f88000e336a2d80d3d96c470ac5e Mon Sep 17 00:00:00 2001 |
36 |
+From: Thomas Deutschmann <whissi@g.o> |
37 |
+Date: Fri, 13 Oct 2017 15:10:08 +0200 |
38 |
+Subject: [PATCH] We need LDLIBS instead of LDFLAGS |
39 |
+ |
40 |
+--- |
41 |
+ Makefile | 2 +- |
42 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
43 |
+ |
44 |
+diff --git a/Makefile b/Makefile |
45 |
+index 039795e..a6bff4b 100644 |
46 |
+--- a/Makefile |
47 |
++++ b/Makefile |
48 |
+@@ -4,7 +4,7 @@ CFLAGS ?= -O2 -ggdb |
49 |
+ CFLAGS += -Wall |
50 |
+ CFLAGS += -fPIC |
51 |
+ CPPFLAGS += -D_GNU_SOURCE |
52 |
+-LDFLAGS += -lm |
53 |
++LDLIBS += -lm |
54 |
+ |
55 |
+ # -- Actions section -- |
56 |
+ |
57 |
+-- |
58 |
+2.14.2 |
59 |
+ |
60 |
|
61 |
diff --git a/net-misc/pps-tools/files/pps-tools-1.0.1-build.patch b/net-misc/pps-tools/files/pps-tools-1.0.1-build.patch |
62 |
new file mode 100644 |
63 |
index 00000000000..adc127205af |
64 |
--- /dev/null |
65 |
+++ b/net-misc/pps-tools/files/pps-tools-1.0.1-build.patch |
66 |
@@ -0,0 +1,51 @@ |
67 |
+From 60a8a9d3195829cc0c2953fd02bdf0a155e0c158 Mon Sep 17 00:00:00 2001 |
68 |
+From: Mike Frysinger <vapier@g.o> |
69 |
+Date: Sat, 18 Aug 2012 17:04:43 -0400 |
70 |
+Subject: [PATCH] fix up makefile |
71 |
+ |
72 |
+Make sure we respect CFLAGS/CPPFLAGS properly. |
73 |
+ |
74 |
+Also fix up the depend include so we get reproducible behavior -- |
75 |
+the depend file is generated & included first, and we don't get |
76 |
+weird behavior when we run: |
77 |
+ git clean -x -d |
78 |
+ make |
79 |
+ make |
80 |
+ |
81 |
+--- |
82 |
+ Makefile | 11 +++++------ |
83 |
+ 1 file changed, 5 insertions(+), 6 deletions(-) |
84 |
+ |
85 |
+diff --git a/Makefile b/Makefile |
86 |
+index c70f073..ec437e2 100644 |
87 |
+--- a/Makefile |
88 |
++++ b/Makefile |
89 |
+@@ -1,8 +1,9 @@ |
90 |
+ TARGETS = ppstest ppsctl ppswatch ppsldisc |
91 |
+ |
92 |
+-CFLAGS += -Wall -O2 -D_GNU_SOURCE |
93 |
+-CFLAGS += -ggdb |
94 |
++CFLAGS ?= -O2 -ggdb |
95 |
++CFLAGS += -Wall |
96 |
+ CFLAGS += -fPIC |
97 |
++CPPFLAGS += -D_GNU_SOURCE |
98 |
+ LDFLAGS += -lm |
99 |
+ |
100 |
+ # -- Actions section -- |
101 |
+@@ -12,11 +13,9 @@ LDFLAGS += -lm |
102 |
+ all : .depend $(TARGETS) |
103 |
+ |
104 |
+ .depend depend dep : |
105 |
+- $(CC) $(CFLAGS) -M $(TARGETS:=.c) > .depend |
106 |
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -M $(TARGETS:=.c) > .depend |
107 |
+ |
108 |
+-ifeq (.depend,$(wildcard .depend)) |
109 |
+-include .depend |
110 |
+-endif |
111 |
++-include .depend |
112 |
+ |
113 |
+ install : all |
114 |
+ install -m 755 -t $(DESTDIR)/usr/bin ppsfind $(TARGETS) |
115 |
+-- |
116 |
+2.14.2 |
117 |
+ |
118 |
|
119 |
diff --git a/net-misc/pps-tools/files/pps-tools-1.0.1-install.patch b/net-misc/pps-tools/files/pps-tools-1.0.1-install.patch |
120 |
new file mode 100644 |
121 |
index 00000000000..8aee2ff459f |
122 |
--- /dev/null |
123 |
+++ b/net-misc/pps-tools/files/pps-tools-1.0.1-install.patch |
124 |
@@ -0,0 +1,27 @@ |
125 |
+From a530d8853aa6b6ec46236f6ae787cbd37c94e9ba Mon Sep 17 00:00:00 2001 |
126 |
+From: Mike Frysinger <vapier@g.o> |
127 |
+Date: Sat, 18 Aug 2012 17:15:19 -0400 |
128 |
+Subject: [PATCH] fix DESTDIR installs |
129 |
+ |
130 |
+Make sure the dirs we install into exist first: |
131 |
+ make install DESTDIR=$PWD/foo |
132 |
+ |
133 |
+--- |
134 |
+ Makefile | 1 + |
135 |
+ 1 file changed, 1 insertion(+) |
136 |
+ |
137 |
+diff --git a/Makefile b/Makefile |
138 |
+index ec437e2..039795e 100644 |
139 |
+--- a/Makefile |
140 |
++++ b/Makefile |
141 |
+@@ -18,6 +18,7 @@ all : .depend $(TARGETS) |
142 |
+ -include .depend |
143 |
+ |
144 |
+ install : all |
145 |
++ mkdir -p -m 755 $(DESTDIR)/usr/bin $(DESTDIR)/usr/include/sys |
146 |
+ install -m 755 -t $(DESTDIR)/usr/bin ppsfind $(TARGETS) |
147 |
+ install -m 644 -t $(DESTDIR)/usr/include/sys timepps.h |
148 |
+ |
149 |
+-- |
150 |
+2.14.2 |
151 |
+ |
152 |
|
153 |
diff --git a/net-misc/pps-tools/metadata.xml b/net-misc/pps-tools/metadata.xml |
154 |
index 53886946600..53492db4389 100644 |
155 |
--- a/net-misc/pps-tools/metadata.xml |
156 |
+++ b/net-misc/pps-tools/metadata.xml |
157 |
@@ -6,6 +6,6 @@ |
158 |
<name>Gentoo Base System</name> |
159 |
</maintainer> |
160 |
<upstream> |
161 |
- <remote-id type="github">ago/pps-tools</remote-id> |
162 |
+ <remote-id type="github">redlab-i/pps-tools</remote-id> |
163 |
</upstream> |
164 |
</pkgmetadata> |
165 |
|
166 |
diff --git a/net-misc/pps-tools/pps-tools-1.0.1.ebuild b/net-misc/pps-tools/pps-tools-1.0.1.ebuild |
167 |
new file mode 100644 |
168 |
index 00000000000..67919d79f14 |
169 |
--- /dev/null |
170 |
+++ b/net-misc/pps-tools/pps-tools-1.0.1.ebuild |
171 |
@@ -0,0 +1,27 @@ |
172 |
+# Copyright 1999-2017 Gentoo Foundation |
173 |
+# Distributed under the terms of the GNU General Public License v2 |
174 |
+ |
175 |
+EAPI="6" |
176 |
+ |
177 |
+inherit toolchain-funcs |
178 |
+ |
179 |
+DESCRIPTION="User-space tools for LinuxPPS" |
180 |
+HOMEPAGE="https://github.com/redlab-i/pps-tools" |
181 |
+SRC_URI="https://github.com/redlab-i/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
182 |
+ |
183 |
+LICENSE="GPL-2" |
184 |
+SLOT="0" |
185 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
186 |
+IUSE="" |
187 |
+ |
188 |
+PATCHES=( |
189 |
+ "${FILESDIR}"/${PN}-1.0.1-build.patch |
190 |
+ "${FILESDIR}"/${PN}-1.0.1-install.patch |
191 |
+ "${FILESDIR}"/${PN}-1.0.1-LDFLAGS-fix.patch |
192 |
+) |
193 |
+ |
194 |
+src_prepare() { |
195 |
+ default |
196 |
+ |
197 |
+ tc-export CC |
198 |
+} |