When I upgraded my asterisk to 1.2.14 (form 1.2.13) it was removed from my system instead of installed, even though the message at the end was: >>> /var/log/asterisk/cdr-csv/.keep_net-misc_asterisk-0 --- /var/run/ --- /var/run/asterisk/ >>> /var/run/asterisk/.keep_net-misc_asterisk-0 >>> Safely unmerging already-installed instance... --- !mtime obj /var/spool/asterisk/voicemail/default/1234/unavail.gsm --- !mtime obj /var/spool/asterisk/voicemail/default/1234/busy.gsm --- !mtime obj /var/spool/asterisk/voicemail/default/1234/INBOX/.keep_net-misc_asterisk-0 --- !mtime obj /var/spool/asterisk/voicemail/.keep_net-misc_asterisk-0 --- !mtime obj /var/spool/asterisk/tmp/.keep_net-misc_asterisk-0 --- !mtime obj /var/spool/asterisk/system/.keep_net-misc_asterisk-0 --- !mtime obj /var/spool/asterisk/monitor/.keep_net-misc_asterisk-0 --- !mtime obj /var/spool/asterisk/meetme/.keep_net-misc_asterisk-0 --- !mtime obj /var/spool/asterisk/dictate/.keep_net-misc_asterisk-0 --- !mtime obj /var/run/asterisk/.keep_net-misc_asterisk-0 --- !mtime obj /var/log/asterisk/cdr-custom/.keep_net-misc_asterisk-0 --- !mtime obj /var/log/asterisk/cdr-csv/.keep_net-misc_asterisk-0 --- !mtime obj /var/lib/asterisk/sounds/vm-youhave.gsm --- !mtime obj /var/lib/asterisk/sounds/vm-whichbox.gsm --- !mtime obj /var/lib/asterisk/sounds/vm-unknown-caller.gsm ... ... --- !empty dir /usr/lib --- !empty dir /usr/include/asterisk --- !empty dir /usr/include --- !empty dir /usr/bin --- !empty dir /usr --- !empty dir /etc/init.d --- !empty dir /etc/conf.d --- !empty dir /etc/asterisk --- !empty dir /etc >>> Original instance of package unmerged safely. * Fixing permissions * Asterisk has been installed And my Asterisk is gone- DELETED! Is the Autoclean triggered incorrectly??? I was under impression that it was due to me running earlier: emerge --depclean revdep-rebuild but it is not the case. I just did fresh Gentoo reinstall and I'm getting the same result. When I initially install asterisk it emerged just fine, but subsequent re-emerging removes Asterisk completely. #Joseph Reproducible: Always Steps to Reproduce: 1. emerge asterisk 2. emerge asterisk 3. Actual Results: On second emerge Asterisk is DELETED It seems Autoclean is triggered. emerge info *** Deprecated use of action 'info', use '--info' instead Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm) Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 23 Mar 2007 05:00:08 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ " LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa apache2 berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd fam foomaticdb fortran gdbm gpm gtk iconv ieee1394 ipv6 isdnlog java kde libg++ midi mysql ncurses nls nptl nptlonly opengl pam pcre perl ppds pppd python qt readline reflection scanner session spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #0) > And my Asterisk is gone- DELETED! > Is the Autoclean triggered incorrectly??? How is it deleted? The above output doesn't show anything deleted. emerge gentoolkit; equery check asterisk
I think you have missed the section I posted: --- !empty dir /etc/asterisk --- !empty dir /etc Here is what I have done again: emerge -C asterisk (asterisk is removed OK) emerge asterisk (asterisk installs OK and runs OK) the last few lanes are: >>> /var/run/asterisk/ >>> /var/run/asterisk/.keep_net-misc_asterisk-0 * Fixing permissions * Asterisk has been installed # equery check asterisk [ Checking net-misc/asterisk-1.2.14-r2 ] * 823 out of 823 files good Now I run again: emerge asterisk (and all the files in /etc/asterisk are DELETED!) the last few lines of installation are: --- !empty dir /etc/init.d --- !empty dir /etc/conf.d --- !empty dir /etc/asterisk --- !empty dir /etc >>> Original instance of package unmerged safely. * Fixing permissions * Asterisk has been installed # equery check asterisk [ Checking net-misc/asterisk-1.2.14-r2 ] * 824 out of 824 files good The result of equery looks good but these are the only file I have left in /etc/asterisk asterisk # ls -al total 28 drwxr-x--- 2 root asterisk 4096 Mar 23 12:27 . drwxr-xr-x 66 root root 4096 Mar 23 12:27 .. -rw-r----- 1 root asterisk 3260 Mar 23 12:27 asterisk.adsi -rw-r----- 1 root asterisk 704 Mar 22 23:33 cdr_mysql.conf -rw-r----- 1 root asterisk 1083 Mar 23 12:27 extensions.ael -rw-r----- 1 root asterisk 406 Mar 22 23:33 res_mysql.conf -rw-r----- 1 root asterisk 1384 Mar 23 12:27 telcordia-1.adsi #Joseph
You've apparently completely misunderstood the emerge output, there's nothing wrong w/ your install.
(In reply to comment #3) > You've apparently completely misunderstood the emerge output, there's nothing > wrong w/ your install. > So why on my second "emerge asterisk" all the files from /etc/asterisk are gone ??? #Joseph
(In reply to comment #4) > So why on my second "emerge asterisk" all the files from /etc/asterisk are gone > ??? Would you tell me how exactly are those files gone? # equery check asterisk [ Checking net-misc/asterisk-1.2.14-r2 ] * 824 out of 824 files good
(In reply to comment #5) > Would you tell me how exactly are those files gone? > > # equery check asterisk > [ Checking net-misc/asterisk-1.2.14-r2 ] > * 824 out of 824 files good > By looking at in /etc/asterisk directory. These are the only files I have left in there: /etc/asterisk # ls -al total 28 drwxr-x--- 2 root asterisk 4096 Mar 23 12:27 . drwxr-xr-x 66 root root 4096 Mar 23 12:27 .. -rw-r----- 1 root asterisk 3260 Mar 23 12:27 asterisk.adsi -rw-r----- 1 root asterisk 704 Mar 22 23:33 cdr_mysql.conf -rw-r----- 1 root asterisk 1083 Mar 23 12:27 extensions.ael -rw-r----- 1 root asterisk 406 Mar 22 23:33 res_mysql.conf -rw-r----- 1 root asterisk 1384 Mar 23 12:27 telcordia-1.adsi and I should have: asterisk # ls -al total 304 drwxr-x--- 2 root asterisk 4096 Mar 23 10:53 . drwxr-xr-x 66 root root 4096 Mar 23 10:54 .. -rw-r----- 1 root asterisk 140 Mar 23 10:53 adsi.conf -rw-r----- 1 root asterisk 840 Mar 23 10:53 adtranvofr.conf -rw-r----- 1 root asterisk 2136 Mar 23 10:53 agents.conf -rw-r----- 1 root asterisk 2227 Mar 23 10:53 alarmreceiver.conf -rw-r----- 1 root asterisk 748 Mar 23 10:53 alsa.conf -rw-r----- 1 root asterisk 3260 Mar 23 10:53 asterisk.adsi -rw-r----- 1 root asterisk 412 Mar 23 10:53 asterisk.conf -rw-r----- 1 root asterisk 2191 Mar 23 10:53 cdr.conf -rw-r----- 1 root asterisk 388 Mar 23 10:53 cdr_custom.conf -rw-r----- 1 root asterisk 59 Mar 23 10:53 cdr_manager.conf -rw-r----- 1 root asterisk 704 Mar 22 23:33 cdr_mysql.conf -rw-r----- 1 root asterisk 221 Mar 23 10:53 cdr_odbc.conf -rw-r----- 1 root asterisk 204 Mar 23 10:53 cdr_pgsql.conf -rw-r----- 1 root asterisk 159 Mar 23 10:53 cdr_tds.conf -rw-r----- 1 root asterisk 1655 Mar 23 10:53 codecs.conf -rw-r----- 1 root asterisk 190 Mar 23 10:53 dnsmgr.conf -rw-r----- 1 root asterisk 7744 Mar 23 10:53 dundi.conf -rw-r----- 1 root asterisk 585 Mar 23 10:53 enum.conf -rw-r----- 1 root asterisk 1281 Mar 23 10:53 extconfig.conf -rw-r----- 1 root asterisk 1083 Mar 23 10:53 extensions.ael -rw-r----- 1 root asterisk 16995 Mar 23 10:53 extensions.conf -rw-r----- 1 root asterisk 1656 Mar 23 10:53 features.conf -rw-r----- 1 root asterisk 929 Mar 23 10:53 festival.conf -rw-r----- 1 root asterisk 16006 Mar 23 10:53 iax.conf -rw-r----- 1 root asterisk 2437 Mar 23 10:53 iaxprov.conf -rw-r----- 1 root asterisk 21797 Mar 23 10:53 indications.conf -rw-r----- 1 root asterisk 2158 Mar 23 10:53 logger.conf -rw-r----- 1 root asterisk 1132 Mar 23 10:53 manager.conf -rw-r----- 1 root asterisk 676 Mar 23 10:53 meetme.conf -rw-r----- 1 root asterisk 2249 Mar 23 10:53 mgcp.conf -rw-r----- 1 root asterisk 2514 Mar 23 10:53 modem.conf -rw-r----- 1 root asterisk 1402 Mar 23 10:53 modules.conf -rw-r----- 1 root asterisk 1884 Mar 23 10:53 musiconhold.conf -rw-r----- 1 root asterisk 1821 Mar 23 10:53 osp.conf -rw-r----- 1 root asterisk 1163 Mar 23 10:53 oss.conf -rw-r----- 1 root asterisk 1418 Mar 23 10:53 phone.conf -rw-r----- 1 root asterisk 81 Mar 23 10:53 privacy.conf -rw-r----- 1 root asterisk 6776 Mar 23 10:53 queues.conf -rw-r----- 1 root asterisk 406 Mar 22 23:33 res_mysql.conf -rw-r----- 1 root asterisk 579 Mar 23 10:53 res_odbc.conf -rw-r----- 1 root asterisk 6961 Mar 23 10:53 rpt.conf -rw-r----- 1 root asterisk 397 Mar 23 10:53 rtp.conf -rw-r----- 1 root asterisk 20345 Mar 23 10:53 sip.conf -rw-r----- 1 root asterisk 315 Mar 23 10:53 sip_notify.conf -rw-r----- 1 root asterisk 1282 Mar 23 10:53 skinny.conf -rw-r----- 1 root asterisk 1384 Mar 23 10:53 telcordia-1.adsi -rw-r----- 1 root asterisk 9935 Mar 23 10:53 voicemail.conf -rw-r----- 1 root asterisk 2774 Mar 23 10:53 vpb.conf -rw-r----- 1 root asterisk 18774 Mar 23 10:53 zapata.conf I'm just printing straight facts (I'm not deleting these files manually), I've been using Gentoo from 2003 and running asterisk even longer. #Joseph
So attach complete emerge output that shows your problem here... MAKEOPTS="-j1" emerge asterisk &> log
Created attachment 114173 [details] emerge asterisk log
(In reply to comment #8) > Created an attachment (id=114173) [edit] > emerge asterisk log So, as you can see, there's clearly nothing unmerged from /etc, and there's nothing wrong with the ebuild. You are pretty confused, those files you have listed come from asterisk-addons and other asterisk plugins, *not* from net-misc/asterisk.
As posited to me by amne - sysadmin ----quote----- edit: After looking a bit into the issue, this seems to be intentional: On the first install the templates are installed to /etc, once you upgrade the ebuild drops them in //usr/share/doc/asterisk-1.2.14-r2/conf to avoid overwriting your configurations (or something like that), so the files are still there. ----end quote---- And that is true but I think this is still a bug as the new configuration files should be left in /etc/asterisk and they are not. #Joseph
Eh, there's nothing being deleted from /etc/asterisk, those files are not even installed into that location; read the emerge output a couple of times... Please move this to #gentoo-voip, there's no bug here and this is not a support forum. Thanks.
(In reply to comment #11) > Eh, there's nothing being deleted from /etc/asterisk, those files are not even > installed into that location; read the emerge output a couple of times... > Please move this to #gentoo-voip, there's no bug here and this is not a support > forum. > > Thanks. I just setup PORTAGE_ELOG very nice feature, have I know about this feature earlier it would save me a lot of time and problems. This way at least I will glance though emails and I will take action (including this asterisk). I think you (developers) should force ALL USERS (no exception) to setup this feature it is a MUST HAVE. I'm learning the hard way :-/ but this Portage_Elog is an easy way. Thanks again for your help :-) #Joseph