File: 01-glibc

package info (click to toggle)
libfile-extattr-perl 1.09-7
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: ansic: 1,864; perl: 1,221; makefile: 42
file content (82 lines) | stat: -rw-r--r-- 1,772 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,48 +1,11 @@
 use lib qw(inc);
 use ExtUtils::MakeMaker;
-use Devel::CheckLib;
 use Cwd;
 use File::Temp qw/tempdir/;
 use IO::File;
 use strict;
 
-# Check whether we have <attr/attributes.h> and <attr/xattr.h> on Linux.
-# Suggest what the user needs to install, to get these files.
-
-if ($^O eq 'linux') {
-    check_lib_or_exit(
-        lib => [qw(attr)]
-    );
-}
-
 my @DIRS = qw(. /usr/include);
-if ($^O eq 'linux')
-{
-    my %headers = (
-        'attr/attributes.h' => 0,
-        'attr/xattr.h' => 0,
-    );
-    my $incdir;
-    my $missing = 0;
-
-    foreach $incdir (@DIRS)
-    {
-        foreach (keys %headers)
-        {
-            $headers{$_}++ if (-r "$incdir/$_");
-        }
-    }
-
-    foreach (keys %headers)
-    {
-        if ($headers{$_} == 0) {
-            warn "<$_> not found; perhaps you need to install libattr-devel";
-            $missing++;
-        }
-    }
-
-    exit(0) if ($missing > 0);
-}
 
 # OpenBSD does not support extended attributes.
 if ($^O eq 'openbsd') {
--- a/README
+++ b/README
@@ -42,10 +42,10 @@ use a different file system, e.g.:
 DEPENDENCIES
 
 On Linux, you will need to install the package that provides
-the header files <attr/attributes.h> and <attr/xattr.h>. On Fedora
-you can install these as follows:
+the <sys/xattr.h> header file. On Fedora you can install
+these as follows:
 
-  yum -y install libattr-devel
+  dnf -y install glibc-headers
 
 This module requires these other modules:
 
--- a/extattr_linux.h
+++ b/extattr_linux.h
@@ -2,8 +2,10 @@
 #define EXTATTR_LINUX_H
 
 #include <sys/types.h>
-#include <attr/attributes.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
+#ifndef ENOATTR
+#  define ENOATTR ENODATA
+#endif
 
 struct hv;