Discussione:
Installando udns
Davide D'Amico
2014-01-23 09:19:43 UTC
Permalink
Ciao a tutti,
stamani stavo aggiornando net-im/jabberd, mi sono accorto che come
dipendenza si porta udns che prova ad installare nonostante sia già
installato.

Guardando ho visto che:

-r--r--r-- 1 root wheel 83130 Jan 23 10:17 /usr/local/lib/libudns.a

lrwxr-xr-x 1 root wheel 57 Jan 23 10:17 /usr/local/lib/libudns.so ->
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so.0

-r-xr-xr-x 1 root wheel 47704 Jan 23 10:17 /usr/local/lib/libudns.so.0


Quindi o compilate dns/udns con NO_STAGE=yes o modificate il symlink a
manella :)
--
d.
Cristiano Deana
2014-01-24 10:08:26 UTC
Permalink
On Thu, Jan 23, 2014 at 10:19 AM, Davide D'Amico
<***@gmail.com> wrote:

Non credendo a una bruttura del genere ho provato a installarlo e
Post by Davide D'Amico
-r--r--r-- 1 root wheel 83130 Jan 23 10:17 /usr/local/lib/libudns.a
lrwxr-xr-x 1 root wheel 57 Jan 23 10:17 /usr/local/lib/libudns.so ->
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so.0
-r-xr-xr-x 1 root wheel 47704 Jan 23 10:17 /usr/local/lib/libudns.so.0
# ls -l /usr/local/lib/libudns.*
-r--r--r-- 1 root wheel 83466 Jan 24 11:06 /usr/local/lib/libudns.a
lrwxr-xr-x 1 root wheel 27 Jan 24 11:06
/usr/local/lib/libudns.so -> /usr/local/lib/libudns.so.0
-r-xr-xr-x 1 root wheel 47976 Jan 24 11:06 /usr/local/lib/libudns.so.0

Uhm.... cos'hai combinato?
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
Davide D'Amico
2014-01-24 10:15:36 UTC
Permalink
Post by Cristiano Deana
On Thu, Jan 23, 2014 at 10:19 AM, Davide D'Amico
Non credendo a una bruttura del genere ho provato a installarlo e
Post by Davide D'Amico
-r--r--r-- 1 root wheel 83130 Jan 23 10:17 /usr/local/lib/libudns.a
lrwxr-xr-x 1 root wheel 57 Jan 23 10:17 /usr/local/lib/libudns.so
->
Post by Davide D'Amico
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so.0
-r-xr-xr-x 1 root wheel 47704 Jan 23 10:17 /usr/local/lib/libudns.so.0
# ls -l /usr/local/lib/libudns.*
-r--r--r-- 1 root wheel 83466 Jan 24 11:06 /usr/local/lib/libudns.a
lrwxr-xr-x 1 root wheel 27 Jan 24 11:06
/usr/local/lib/libudns.so -> /usr/local/lib/libudns.so.0
-r-xr-xr-x 1 root wheel 47976 Jan 24 11:06 /usr/local/lib/libudns.so.0
Uhm.... cos'hai combinato?
Infatti sembra incredibile anche a me:
***@therock-vm:/usr/local/lib % cd /usr/ports/
***@therock-vm:/usr/ports % cd dns/
***@therock-vm:/usr/ports/dns % sudo su
***@therock-vm:/usr/ports/dns # cd udns
***@therock-vm:/usr/ports/dns/udns # make deinstall
===> Deinstalling for dns/udns
===> Deinstalling
pkg-static: You are trying to delete package(s) which has dependencies that
are still required:
dns/udns: net-im/mu-conference, net-im/jabberd
... delete these packages anyway in forced mode
Deinstallation has been requested for the following 1 packages:

udns-0.3

The deinstallation will free 238 KB
[1/1] Deleting udns-0.3...
udns-0.3 is required by: mu-conference-0.8_3 jabberd-2.3.1, deleting anyway
done
***@therock-vm:/usr/ports/dns/udns # make clean
===> Cleaning for udns-0.3
***@therock-vm:/usr/ports/dns/udns # make install
===> License LGPL21 accepted by the user
===> Found saved configuration for udns-0.3
===> udns-0.3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by udns-0.3 for building
===> Extracting for udns-0.3
=> SHA256 Checksum OK for udns-0.3.tar.gz.
===> Patching for udns-0.3
===> Configuring for udns-0.3
===> FreeBSD 10 autotools fix applied to
/usr/ports/dns/udns/work/udns-0.3/configure
configure... udns package
checking for C compiler... $CC (cc)
checking whenever the C compiler (cc -O2 -pipe -fno-strict-aliasing)
can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for libraries needed for socket and connect... ok (none needed)
checking for inet_pton() && inet_ntop()... yes
checking for socklen_t... yes
checking for IPv6... yes
checking for poll()... yes
creating config.h... ok
creating Makefile... ok
creating config.status... ok
all done.
===> Building for udns-0.3
--- udns_dn.lo ---
--- udns_dntosp.lo ---
--- udns_parse.lo ---
--- udns_resolver.lo ---
--- udns_dn.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_dn.lo -c
udns_dn.c
--- udns_dntosp.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_dntosp.lo
-c udns_dntosp.c
--- udns_parse.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_parse.lo -c
udns_parse.c
--- udns_resolver.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_resolver.lo
-c udns_resolver.c
--- udns_init.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_init.lo -c
udns_init.c
--- udns_misc.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_misc.lo -c
udns_misc.c
--- udns_XtoX.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_XtoX.lo -c
udns_XtoX.c
--- udns_rr_a.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_rr_a.lo -c
udns_rr_a.c
--- udns_rr_ptr.lo ---
--- udns_rr_mx.lo ---
--- udns_rr_ptr.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_rr_ptr.lo
-c udns_rr_ptr.c
--- udns_rr_mx.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_rr_mx.lo -c
udns_rr_mx.c
--- udns_rr_txt.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_rr_txt.lo
-c udns_rr_txt.c
--- udns_bl.lo ---
--- udns_rr_srv.lo ---
--- udns_bl.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_bl.lo -c
udns_bl.c
--- udns_rr_srv.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_rr_srv.lo
-c udns_rr_srv.c
--- udns_rr_naptr.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_rr_naptr.lo
-c udns_rr_naptr.c
--- udns_codes.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_codes.lo -c
udns_codes.c
--- udns_jran.lo ---
cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_CONFIG_H -o udns_jran.lo -c
udns_jran.c
--- udns_dn.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_dn.c
--- udns_dntosp.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_dntosp.c
--- udns_parse.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_parse.c
--- udns_resolver.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_resolver.c
--- udns_init.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_init.c
--- udns_misc.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_misc.c
--- udns_XtoX.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_XtoX.c
--- udns_rr_a.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_rr_a.c
--- udns_rr_ptr.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_rr_ptr.c
--- udns_rr_mx.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_rr_mx.c
--- udns_rr_txt.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_rr_txt.c
--- udns_bl.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_bl.c
--- udns_rr_srv.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_rr_srv.c
--- udns_rr_naptr.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_rr_naptr.c
--- udns_codes.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_codes.c
--- udns_jran.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c udns_jran.c
--- dnsget.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c dnsget.c
--- rblcheck.o ---
--- ex-rdns.o ---
--- rblcheck.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c rblcheck.c
--- ex-rdns.o ---
cc -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -c ex-rdns.c
--- libudns.so.0 ---
cc -shared -Wl,--soname,libudns.so.0 -o libudns.so.0 udns_dn.lo
udns_dntosp.lo udns_parse.lo udns_resolver.lo udns_init.lo udns_misc.lo
udns_XtoX.lo udns_rr_a.lo udns_rr_ptr.lo udns_rr_mx.lo udns_rr_txt.lo
udns_bl.lo udns_rr_srv.lo udns_rr_naptr.lo udns_codes.lo udns_jran.lo
--- dnsget.o ---
dnsget.c:495:29: warning: implicit conversion from enumeration type 'enum
dns_type' to different enumeration type 'enum dns_class' [-Wenum-conversion]
p.dnsp_qcls = p.dnsp_qtyp = 0;
~ ~~~~~~~~~~~~^~~
dnsget.c:522:29: warning: implicit conversion from enumeration type 'enum
dns_type' to different enumeration type 'enum dns_class' [-Wenum-conversion]
p.dnsp_qcls = p.dnsp_qtyp = 0;
~ ~~~~~~~~~~~~^~~
--- libudns.a ---
--- libudns_s.so ---
--- libudns.a ---
rm -f libudns.a
--- libudns_s.so ---
rm -f libudns_s.so
--- libudns.a ---
ar rv libudns.a udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o
udns_init.o udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o
udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o
udns_jran.o
--- libudns_s.so ---
ln -s libudns.so.0 libudns_s.so
--- libudns.a ---
ar: warning: creating libudns.a
--- ex-rdns_s ---
--- libudns.a ---
a - udns_dn.o
a - udns_dntosp.o
a - udns_parse.o
a - udns_resolver.o
a - udns_init.o
a - udns_misc.o
a - udns_XtoX.o
a - udns_rr_a.o
a - udns_rr_ptr.o
a - udns_rr_mx.o
a - udns_rr_txt.o
a - udns_bl.o
a - udns_rr_srv.o
a - udns_rr_naptr.o
a - udns_codes.o
a - udns_jran.o
--- ex-rdns_s ---
cc -O2 -pipe -fno-strict-aliasing -o ex-rdns_s ex-rdns.o -L. -ludns_s
--- rblcheck_s ---
cc -O2 -pipe -fno-strict-aliasing -o rblcheck_s rblcheck.o -L. -ludns_s
--- dnsget.o ---
2 warnings generated.
--- dnsget_s ---
cc -O2 -pipe -fno-strict-aliasing -o dnsget_s dnsget.o -L. -ludns_s
===> Staging for udns-0.3
===> Generating temporary packing list
install -s -o root -g wheel -m 555
/usr/ports/dns/udns/work/udns-0.3/libudns.so.0
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so.0
/bin/ln -sf /usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so.0
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so
install -o root -g wheel -m 444 /usr/ports/dns/udns/work/udns-0.3/udns.h
/usr/ports/dns/udns/work/stage/usr/local/include/udns.h
install -o root -g wheel -m 444
/usr/ports/dns/udns/work/udns-0.3/libudns.a
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.a
install -s -o root -g wheel -m 555
/usr/ports/dns/udns/work/udns-0.3/dnsget_s
/usr/ports/dns/udns/work/stage/usr/local/bin/dnsget
install -s -o root -g wheel -m 555
/usr/ports/dns/udns/work/udns-0.3/rblcheck_s
/usr/ports/dns/udns/work/stage/usr/local/bin/rblcheck
install -o root -g wheel -m 444 /usr/ports/dns/udns/work/udns-0.3/dnsget.1
/usr/ports/dns/udns/work/stage/usr/local/man/man1/dnsget.1
install -o root -g wheel -m 444
/usr/ports/dns/udns/work/udns-0.3/rblcheck.1
/usr/ports/dns/udns/work/stage/usr/local/man/man1/rblcheck.1
install -o root -g wheel -m 444 /usr/ports/dns/udns/work/udns-0.3/udns.3
/usr/ports/dns/udns/work/stage/usr/local/man/man3/udns.3
====> Compressing man pages (compress-man)
===> Installing for udns-0.3
===> Checking if dns/udns already installed
===> Registering installation for udns-0.3
Installing udns-0.3... done
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/lib/libudns.so.0

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://www.corpit.ru/mjt/udns.html
***@therock-vm:/usr/ports/dns/udns # ls -la /usr/local/lib/libudns*
-r--r--r-- 1 root wheel 83130 Jan 24 11:11 /usr/local/lib/libudns.a
lrwxr-xr-x 1 root wheel 57 Jan 24 11:11 /usr/local/lib/libudns.so ->
/usr/ports/dns/udns/work/stage/usr/local/lib/libudns.so.0
-r-xr-xr-x 1 root wheel 47704 Jan 24 11:11 /usr/local/lib/libudns.so.0
***@therock-vm:/usr/ports/dns/udns #

La VM in questione:

***@therock-vm:~ # uname -a
FreeBSD therock-vm 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16
22:34:59 UTC 2014 ***@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC
amd64
***@therock-vm:~ # cat /etc/make.conf
WITH_PKGNG=yes
***@therock-vm:~ # --
d.
Cristiano Deana
2014-01-24 10:18:51 UTC
Permalink
On Fri, Jan 24, 2014 at 11:15 AM, Davide D'Amico
<***@gmail.com> wrote:

Eh, hai ragione tu!
Post by Davide D'Amico
udns-0.3
lo avevo provato su una macchina con albero ports non aggiornato e
installato udns-0.2 che va. Il .3 è come dici tu.
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
Cristiano Deana
2014-01-24 10:21:45 UTC
Permalink
Han giocato (male) con ${STAGEDIR} ?
Post by Cristiano Deana
On Fri, Jan 24, 2014 at 11:15 AM, Davide D'Amico
Eh, hai ragione tu!
Post by Davide D'Amico
udns-0.3
lo avevo provato su una macchina con albero ports non aggiornato e
installato udns-0.2 che va. Il .3 è come dici tu.
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
Davide D'Amico
2014-01-24 10:23:58 UTC
Permalink
Ho segnalato la cosa al mantainer. Aspetto e nel frattempo modifico il
symlink a manella (o uso il NO_STAGE=yes).
Post by Cristiano Deana
On Fri, Jan 24, 2014 at 11:15 AM, Davide D'Amico
Eh, hai ragione tu!
Post by Davide D'Amico
udns-0.3
lo avevo provato su una macchina con albero ports non aggiornato e
installato udns-0.2 che va. Il .3 è come dici tu.
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
_______________________________________________
Varie mailing list
http://mailman.gufi.org/mailman/listinfo/varie
--
d.
Cristiano Deana
2014-01-24 10:30:05 UTC
Permalink
nel frattempo modifico il symlink a manella (o uso il NO_STAGE=yes).
Visto che ci sei nel frattempo potresti spiegare cosa sia.
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
Davide D'Amico
2014-01-24 10:32:50 UTC
Permalink
Post by Cristiano Deana
nel frattempo modifico il symlink a manella (o uso il NO_STAGE=yes).
Visto che ci sei nel frattempo potresti spiegare cosa sia.
dns/udns o NO_STAGE=yes ?
--
d.
Cristiano Deana
2014-01-24 10:33:47 UTC
Permalink
Post by Davide D'Amico
NO_STAGE=yes
--
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
Davide D'Amico
2014-01-24 10:40:44 UTC
Permalink
Post by Davide D'Amico
NO_STAGE=yes
Durante l'adeguamento dei port al sistema di staging hanno previsto un knob
per far compilare comunque i port vecchi, difficili o gestiti molto
blandamente:
il knob NO_STAGE=yes evita che il port prima venga provato in un ambiente
di staging, ma provvede direttamente alla sua installazione nel sistema
base.

Cfr. https://wiki.freebsd.org/ports/StageDir
--
d.
Loading...