| View previous topic :: View next topic |
| Author |
Message |
write2david n00b

Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri May 04, 2012 12:54 am Post subject: Nothing being installed into /etc/init.d |
|
|
Hey, got an odd issue here. When installing packages, nothing gets installed into /etc/init.d anymore.
For example, here's the last part of the output after doing "emerge mysql"...
>>> Installing (1 of 2) dev-db/mysql-5.1.61
* checking 338 files for package collisions
>>> Merging dev-db/mysql-5.1.61 to /
--- /usr/
--- /usr/include/
>>> /usr/include/mysql/
>>> /usr/include/mysql/mysql.h
[snip]
--- /usr/bin/
>>> /usr/bin/mysqld_safe
>>> /usr/bin/mysql_install_db
>>> /usr/bin/msql2mysql
[snip]
--- /usr/share/
>>> /usr/share/mysql/
>>> /usr/share/mysql/fill_help_tables.sql
[snip]
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/mysqlshow.1.bz2
[snip]
--- /usr/share/man/man8/
>>> /usr/share/man/man8/mysqld.8.bz2
>>> /usr/share/man/man8/mysqlmanager.8.bz2
--- /usr/share/aclocal/
>>> /usr/share/aclocal/mysql.m4
--- /usr/share/doc/
>>> /usr/share/doc/mysql-5.1.61/
>>> /usr/share/doc/mysql-5.1.61/support-files/
>>> /usr/share/doc/mysql-5.1.61/support-files/my-huge.cnf.bz2
[snip]
--- /usr/share/info/
>>> /usr/share/info/mysql.info.bz2
--- /usr/lib/
>>> /usr/lib/mysql/
>>> /usr/lib/mysql/libmysqlclient.so.16.0.0
[snip]
--- /usr/sbin/
>>> /usr/sbin/mysqld
>>> /usr/sbin/mysqlmanager
--- /etc/
--- /etc/mysql/
>>> /etc/mysql/mysqlaccess.conf
>>> /etc/mysql/._cfg0000_my.cnf
--- /var/
--- /var/log/
--- /var/log/mysql/
>>> /var/log/mysql/.keep_dev-db_mysql-0
--- /var/run/
>>> /var/run/mysqld/
>>> /var/run/mysqld/.keep_dev-db_mysql-0 |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1931 Location: Zurich, Switzerland
|
Posted: Fri May 04, 2012 2:53 am Post subject: |
|
|
that is normal behavior.
/etc/ and subdir thereof are protected against overwriting from portage. in order to get a new config file merged use etc-update or dispatch-conf.
V. _________________ read the portage output!
If my answer is too short, just ask for an explanation. |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Fri May 04, 2012 3:05 am Post subject: |
|
|
what are your USE for mysql?
If you have USE="minimal", for example, there will be no init script, as only the client libraries and their relevant pieces will be installed; if there is no daemon, there's no need for the init script
USE="minimal" will have similar effects on other packages _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
| Back to top |
|
 |
write2david n00b

Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri May 04, 2012 3:09 am Post subject: |
|
|
| Oh, yes, of course. But dispatch-conf reports nothing to update. And usually, regardless of etc-update/dispatch-conf, files are installed into /etc/init.d by default, especially if they do not previously exist. |
|
| Back to top |
|
 |
write2david n00b

Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri May 04, 2012 3:12 am Post subject: |
|
|
In other words, the following command yields no files installed by mysql which are waiting to be updated...
find /etc -iname ´._cfg????_*´ |
|
| Back to top |
|
 |
The Doctor l33t


Joined: 27 Jul 2010 Posts: 938
|
Posted: Fri May 04, 2012 3:45 am Post subject: |
|
|
I may be mistaken, but I believe that portage does not bother you unless the new and old config files are different. _________________ First things first, but not necessarily in that order. |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Fri May 04, 2012 4:16 am Post subject: |
|
|
write2david
Does equery show any files for /etc
| Code: | | equery f dev-db/mysql-5.1.61|grep /etc |
_________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Fri May 04, 2012 7:57 am Post subject: |
|
|
| penguin swordmaster wrote: | | I may be mistaken, but I believe that portage does not bother you unless the new and old config files are different. |
++
if the question is "why does etc-update show me nothing", then yeah...if there isnt any change, it's not going to be clobbered.
why those old files are left hanging around? I havent a clue. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1931 Location: Zurich, Switzerland
|
Posted: Fri May 04, 2012 12:54 pm Post subject: |
|
|
sorry - i somehow misread the first question.
the initscripts for mysql are not part of dev-db/mysql or dev-db/mariadb respectively, but are in dev-db/mysql-init-scripts.
V. _________________ read the portage output!
If my answer is too short, just ask for an explanation. |
|
| Back to top |
|
 |
write2david n00b

Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri May 04, 2012 2:20 pm Post subject: |
|
|
| Quote: | | why those old files are left hanging around? I havent a clue. |
The 'emerge' man page states:
In addition to protecting overwritten files, Portage will not delete
any files from a protected directory when a package is unmerged. While
this may be a little bit untidy, it does prevent potentially valuable
config files from being deleted, which is of paramount importance. |
|
| Back to top |
|
 |
write2david n00b

Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri May 04, 2012 2:29 pm Post subject: |
|
|
| Quote: | | the initscripts for mysql are not part of dev-db/mysql or dev-db/mariadb respectively, but are in [color=darkred]dev-db/mysql-init-scripts |
Thanks a ton for pointing me to that package. |
|
| Back to top |
|
 |
|