Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nothing being installed into /etc/init.d
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
write2david
n00b
n00b


Joined: 08 Aug 2008
Posts: 8

PostPosted: Fri May 04, 2012 12:54 am    Post subject: Nothing being installed into /etc/init.d Reply with quote

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
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1931
Location: Zurich, Switzerland

PostPosted: Fri May 04, 2012 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Fri May 04, 2012 3:05 am    Post subject: Reply with quote

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
View user's profile Send private message
write2david
n00b
n00b


Joined: 08 Aug 2008
Posts: 8

PostPosted: Fri May 04, 2012 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
write2david
n00b
n00b


Joined: 08 Aug 2008
Posts: 8

PostPosted: Fri May 04, 2012 3:12 am    Post subject: Reply with quote

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
View user's profile Send private message
The Doctor
l33t
l33t


Joined: 27 Jul 2010
Posts: 938

PostPosted: Fri May 04, 2012 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Fri May 04, 2012 4:16 am    Post subject: Reply with quote

write2david

Does equery show any files for /etc :?:
Code:
equery f dev-db/mysql-5.1.61|grep /etc

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Fri May 04, 2012 7:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1931
Location: Zurich, Switzerland

PostPosted: Fri May 04, 2012 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
write2david
n00b
n00b


Joined: 08 Aug 2008
Posts: 8

PostPosted: Fri May 04, 2012 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
write2david
n00b
n00b


Joined: 08 Aug 2008
Posts: 8

PostPosted: Fri May 04, 2012 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum