11 Star 0 Fork 5

src-openEuler/perl-libnet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-libnet-3.08-Do-not-create-Net-libnet.cfg.patch 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
weiwei_tiantian 提交于 2022-07-01 14:16 . Do not create Net/libnet.cfg
From a40f2774eede8e65dd6128b45525ec88f469e031 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Fri, 10 Jul 2015 13:02:00 +0200
Subject: [PATCH 2/2] Do not create Net/libnet.cfg
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
I will remove the Net/libnet.cfg because:
(1) it's content equals to default configuration hard-coded in the
code
(2) it's kind of configuration file we do not mark it as a configuration
file, so it's overwritten on each update
(3) it's loaded from directory based on Net::Config module location.
I.e. core module will search it in core path, vendor module in vendor
path and site module in site path.
perl.spec does not provide it either.
<https://bugzilla.redhat.com/show_bug.cgi?id=1238689>
Signed-off-by: Petr Písař <ppisar@redhat.com>
Reference:https://src.fedoraproject.org/rpms/perl-libnet/blob/rawhide/f/libnet-3.08-Do-not-create-Net-libnet.cfg.patch
Conflict:NA
---
Makefile.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index 64d6959..25fc626 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -235,7 +235,7 @@ MAIN: {
sub MY::post_initialize {
my $self = shift;
- return '' if $self->{PERL_CORE};
+ return '';
if (not -f $CfgFile) {
my @args = qw(Configure);
--
2.5.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-libnet.git
git@gitee.com:src-openeuler/perl-libnet.git
src-openeuler
perl-libnet
perl-libnet
master

搜索帮助