File: ubuntu-new.patch

package info (click to toggle)
libnet-libdnet-perl 0.990-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: perl: 987; ansic: 311; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (2)
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
Description: Debian uses "dumbnet" instead of "dnet" for historical reasons
Origin: upstream, shipped in CPAN distribution
Forwarded: not-needed

--- a/Libdnet.xs
+++ b/Libdnet.xs
@@ -34,7 +34,7 @@
 #include "XSUB.h"
 
 #include <stdio.h>
-#include <dnet.h>
+#include <dumbnet.h>
 
 #ifdef DNET_BLOB_H
 typedef blob_t              Blob;
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -3,10 +3,10 @@
 #
 use ExtUtils::MakeMaker;
 
-my $libs = qx{dnet-config --libs 2>/dev/null}
-   || ['-L/lib -L/usr/lib -L/usr/local/lib -ldnet'];
+my $libs = qx{dumbnet-config --libs 2>/dev/null}
+   || ['-L/lib -L/usr/lib -L/usr/local/lib -ldumbnet'];
 
-my $inc = qx{dnet-config --cflags 2>/dev/null}
+my $inc = qx{dumbnet-config --cflags 2>/dev/null}
    || '-I/include -I/usr/include -I/usr/local/include';
 
 WriteMakefile(