[arch-commits] Commit in dhcpcd/trunk (39512.patch PKGBUILD)
Ronald van Haren
ronald at nymeria.archlinux.org
Mon Jun 16 16:52:23 UTC 2014
Date: Monday, June 16, 2014 @ 18:52:23
Author: ronald
Revision: 215203
upgpkg: dhcpcd 6.4.0-1
update to 6.4.0; confirmed to fix FS#39512, previous fix didn't work
Modified:
dhcpcd/trunk/PKGBUILD
Deleted:
dhcpcd/trunk/39512.patch
-------------+
39512.patch | 53 -----------------------------------------------------
PKGBUILD | 18 +++++-------------
2 files changed, 5 insertions(+), 66 deletions(-)
Deleted: 39512.patch
===================================================================
--- 39512.patch 2014-06-16 15:39:35 UTC (rev 215202)
+++ 39512.patch 2014-06-16 16:52:23 UTC (rev 215203)
@@ -1,53 +0,0 @@
-@@ -2629,33 +2629,40 @@
- free(dhcp);
- }
-
- static void
--dhcp_handleudp(void *arg)
-+dhcp_handleudp1(struct dhcpcd_ctx *ctx, int *fd, const char *ifname)
- {
-- struct dhcpcd_ctx *ctx;
- uint8_t buffer[sizeof(struct dhcp_message)];
-
-- ctx = arg;
--
- /* Just read what's in the UDP fd and discard it as we always read
- * from the raw fd */
-- (void)read(ctx->udp_fd, buffer, sizeof(buffer));
-+ if (read(*fd, buffer, sizeof(buffer)) == -1) {
-+ syslog(LOG_ERR, "%s: %s: %m", ifname, __func__);
-+ eloop_event_delete(ctx->eloop, *fd);
-+ close(*fd);
-+ *fd = -1;
-+ }
-+}
-+
-+static void
-+dhcp_handleudp(void *arg)
-+{
-+ struct dhcpcd_ctx *ctx;
-+
-+ ctx = arg;
-+ dhcp_handleudp1(arg, &ctx->udp_fd, NULL);
- }
-
- static void
- dhcp_handleifudp(void *arg)
- {
- const struct interface *ifp;
-- const struct dhcp_state *state;
-- uint8_t buffer[sizeof(struct dhcp_message)];
-+ struct dhcp_state *state;
-
- ifp = arg;
-- state = D_CSTATE(ifp);
--
-- /* Just read what's in the UDP fd and discard it as we always read
-- * from the raw fd */
-- (void)read(state->udp_fd, buffer, sizeof(buffer));
-+ state = D_STATE(ifp);
-+ dhcp_handleudp1(ifp->ctx, &state->udp_fd, ifp->name);
- }
-
- static int
- dhcp_open(struct interface *ifp)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-06-16 15:39:35 UTC (rev 215202)
+++ PKGBUILD 2014-06-16 16:52:23 UTC (rev 215203)
@@ -4,8 +4,8 @@
# Contributor: Judd Vinet <jvinet.zeroflux.org>
pkgname=dhcpcd
-pkgver=6.3.2
-pkgrel=2
+pkgver=6.4.0
+pkgrel=1
pkgdesc="RFC2131 compliant DHCP client daemon"
url="http://roy.marples.name/projects/dhcpcd/"
arch=('i686' 'x86_64')
@@ -17,19 +17,11 @@
options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory
source=("http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2"
'dhcpcd_.service'
- 'dhcpcd.service'
- '39512.patch')
-sha1sums=('ff8ef22b7305795eff52b8b41b81e2999a5923ff'
+ 'dhcpcd.service')
+sha1sums=('77eb7b909cc9b1f9f178f1ba7b79dbb8fe5389ef'
'6f1633edde14d29b5cdc09c4f029a450ef2ebc96'
- '52c1bad9ab43e9a253c1eb175e7eefb13497b8f9'
- '22f29ac0948c0e0d177a48d939828132b73fcfc7')
+ '52c1bad9ab43e9a253c1eb175e7eefb13497b8f9')
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- # upstream patch for FS#39512
- patch -Np0 dhcp.c ${srcdir}/39512.patch
-}
-
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
More information about the arch-commits
mailing list