1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../dietlibc/patches/pkg_udev.patch.2nd
5 # Copyright (C) 2011 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Only install the sbin programs when we build as a second pass, so we do not
18 override any system libc libraries et al.
20 - Rene Rebe <rene@exactcode.de>
22 --- udev-167/Makefile.in.vanilla 2011-04-28 15:22:02.000000000 +0200
23 +++ udev-167/Makefile.in 2011-04-28 15:52:02.000000000 +0200
25 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(udevconfdir)" "$(DESTDIR)$(udevhomedir)" "$(DESTDIR)$(udevkeymapdir)" "$(DESTDIR)$(udevkeymapforcereldir)" "$(DESTDIR)$(udevrulesdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(sharepkgconfigdir)" "$(DESTDIR)$(systemdsystemunitdir)" "$(DESTDIR)$(typelibsdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(libgudev_includedir)"; do \
26 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
28 -install: $(BUILT_SOURCES)
29 - $(MAKE) $(AM_MAKEFLAGS) install-recursive
30 +install: install-sbinPROGRAMS
32 install-exec: install-exec-recursive
33 install-data: install-data-recursive
34 uninstall: uninstall-recursive
35 # --- T2-COPYRIGHT-NOTE-BEGIN ---
36 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
38 # T2 SDE: package/.../udev/readdir64.patch
39 # Copyright (C) 2011 The T2 SDE Project
41 # More information can be found in the files COPYING and README.
43 # This patch file is dual-licensed. It is available under the license the
44 # patched project is licensed under, as long as it is an OpenSource license
45 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
46 # of the GNU General Public License as published by the Free Software
47 # Foundation; either version 2 of the License, or (at your option) any later
49 # --- T2-COPYRIGHT-NOTE-END ---
51 Compensate for dietlibc missing fields in the legacy dirent, ...
53 - Rene Rebe <rene@exactcode.de>
55 --- udev-165/extras/path_id/path_id.c.vanilla 2011-01-07 09:56:56.659133651 +0000
56 +++ udev-165/extras/path_id/path_id.c 2011-01-07 09:57:26.747805977 +0000
61 - struct dirent *dent;
62 + struct dirent64 *dent;
65 hostdev = udev_device_get_parent_with_subsystem_devtype(parent, "scsi", "scsi_host");
70 - for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) {
71 + for (dent = readdir64(dir); dent != NULL; dent = readdir64(dir)) {
75 --- udev-167/libudev/libudev-device.c.vanilla 2011-05-24 15:28:59.870234223 +0200
76 +++ udev-167/libudev/libudev-device.c 2011-05-24 15:29:15.510229890 +0200
79 static int udev_device_sysattr_list_read(struct udev_device *udev_device)
81 - struct dirent *dent;
82 + struct dirent64 *dent;
86 --- udev-167/libudev/libudev-util-private.c.vanilla 2013-12-12 13:02:13.660124153 +0100
87 +++ udev-167/libudev/libudev-util-private.c 2013-12-12 13:03:32.546121426 +0100
91 #include <sys/param.h>
92 -#include <sys/resource.h>
96 #include "libudev-private.h"
98 uid_t util_lookup_user(struct udev *udev, const char *user)
101 - int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
102 + int buflen = PATH_MAX;/*sysconf(_SC_GETPW_R_SIZE_MAX);*/
107 gid_t util_lookup_group(struct udev *udev, const char *group)
110 - int buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
111 + int buflen = PATH_MAX;/*sysconf(_SC_GETGR_R_SIZE_MAX);*/