Skip Menu |

This queue is for tickets about the Sys-Hostname-Long CPAN distribution.

Report information
The Basics
Id: 5492
Status: resolved
Priority: 0/
Queue: Sys-Hostname-Long

People
Owner: Nobody in particular
Requestors: klaus.heinz [...] onlinehome.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: hostname_long does not work on many systems
Sys::Hostname::Long:hostname_long() does not work as intedned on many Unix(-like) systems: HP-UX spe191 B.11.11 Show quoted text
spe191> hostname
spe191 Show quoted text
spe191> hostname --fqdn
You must be superuser to set the hostname MacOS X Darwin Kernel Version 7.2.0 $ hostname saturn $ hostname --fqdn saturn FreeBSD 4.9-STABLE ice% hostname ice ice% hostname --fqdn ice NetBSD 1.6.2 whitebox$ hostname whitebox whitebox$ hostname --fqdn hostname: sethostname: Operation not permitted Solaris 8 slowbox$ hostname slowbox slowbox$ hostname --fqdn uname: not super user I have no fix for this at this time.
From: klaus.heinz [...] onlinehome.de
[guest - Sat Feb 28 23:29:52 2004]: The appended patch gives the following results (thanks to testdrive.hp.com) although Perl 5.00503 still complained about ABSTRACT_FROM and AUTHOR in Makefile.PL: NetBSD 1.6 $ hostname spe143.testdrive.hp.com $ make TEST_VERBOSE=1 test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/local....1..1 ok 1 Your hostname = spe143.testdrive.hp.com ok All tests successful. FreeBSD 4.9-RELEASE $ hostname spe151.testdrive.hp.com $ make TEST_VERBOSE=1 test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.005 03/mach -I/usr/libdata/perl/5.00503 -e 'use Test::Harness qw(&runtests $verbose) ; $verbose=1; runtests @ARGV;' t/*.t t/local.............1..1 ok 1 Your hostname = spe151.testdrive.hp.com ok All tests successful. HP-UX B.11.11 $ hostname spe191 $ make TEST_VERBOSE=1 test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl/lib/5 .6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -e 'use Test::Harness qw(&run tests $verbose); $verbose=1; runtests @ARGV;' t/*.t t/local.............1..1 ok 1 Your hostname = spe191.testdrive.hp.com ok All tests successful. Linux 2.4.19-64GB-SMP Show quoted text
> more /etc/SuSE-release
SuSE SLES-8 (i386) VERSION = 8.1 Show quoted text
> hostname
spe150 Show quoted text
> hostname --fqdn
spe150.testdrive.hp.com Show quoted text
> make TEST_VERBOSE=1 test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/local....1..1 ok 1 Your hostname = spe150.testdrive.hp.com ok All tests successful. Linux 2.4.18-bf2.4 Show quoted text
> more /etc/debian_version
3.0 Show quoted text
> hostname
spe140 Show quoted text
> hostname --fqdn
spe140.testdrive.hp.com Show quoted text
> make TEST_VERBOSE=1 test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/ usr/share/perl/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; r untests @ARGV;' t/*.t t/local.............1..1 ok 1 Your hostname = spe140.testdrive.hp.com ok All tests successful. OSF1 V5.1 $ hostname spe206.testdrive.hp.com $ make TEST_VERBOSE=1 test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/local....1..1 ok 1 Your hostname = spe206.testdrive.hp.com ok All tests successful. SunOS 5.8 $ hostname slowbox $ make TEST_VERBOSE=1 test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/perl5/5.00503/i86p c-solaris -I/usr/perl5/5.00503 -e 'use Test::Harness qw(&runtests $verbose); $ve rbose=1; runtests @ARGV;' t/*.t t/local.............1..1 ok 1 Your hostname = slowbox.example.com ok All tests successful.
Download patch-aa
application/octet-stream 430b

Message body not shown because it is not plain text.