Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77676 - dnsmasq ebuild error
Summary: dnsmasq ebuild error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.gentoo.org/doc/en/home-rou...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-12 06:35 UTC by Jonathan Smith (RETIRED)
Modified: 2005-01-12 13:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Smith (RETIRED) gentoo-dev 2005-01-12 06:35:23 UTC
the guide tells you to, under code listing 5.2:
# emerge dnsmasq
# nano /etc/conf.d/dnsmasq
Add "-i eth0" to DNSMASQ_OPTS
# rc-update add dnsmasq default
# /etc/init.d/dnsmasq start

the only problem is, /etc/conf.d/dnsmasq does not exist. i am using dnsmasq-2.19
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2005-01-12 07:39:14 UTC
It's because the ebuild now uses newconfd.

Look for this error when you emerge dnsmasq with portage-2.0.51-r8:
install: cannot create regular file `/var/tmp/portage/dnsmasq-2.19/image//etc/conf.d/': Is a directory

*Solution*
Upgrade >=portage-2.0.51-r10
or copy the file manually from the files/ directory
Comment 2 Jonathan Smith (RETIRED) gentoo-dev 2005-01-12 08:39:21 UTC
sorry, but portage -r10 still doesn't install the file. perhaps this is an ebuild bug, but i thought you docs kids should be aware
Comment 3 Jonathan Smith (RETIRED) gentoo-dev 2005-01-12 08:42:38 UTC
*back to the wranglers*
*changed title of bug from "gentoo home router guide has an error with DNS" to "dnsmasq ebuild error"
*added docs team to CC list
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2005-01-12 08:45:02 UTC
I tried again from a clean slate and /etc/conf.d/dnsmasq is installed as expected.

# equery files dnsmasq
[ Searching for packages matching dnsmasq... ]
net-dns/dnsmasq-2.19
* Contents of net-dns/dnsmasq-2.19:
/etc
/etc/conf.d
/etc/conf.d/dnsmasq
/etc/dnsmasq.conf
/etc/init.d
/etc/init.d/dnsmasq
/usr
/usr/sbin
/usr/sbin/dnsmasq
/usr/share
/usr/share/doc
/usr/share/doc/dnsmasq-2.19
/usr/share/doc/dnsmasq-2.19/CHANGELOG.gz
/usr/share/doc/dnsmasq-2.19/FAQ.gz
/usr/share/doc/dnsmasq-2.19/html
/usr/share/doc/dnsmasq-2.19/html/doc.html
/usr/share/doc/dnsmasq-2.19/html/setup.html
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/dnsmasq.8.gz
Comment 5 Jonathan Smith (RETIRED) gentoo-dev 2005-01-12 08:53:42 UTC
sory for the slew of posts, but the offending line in the ebuild seems to be 42, as it calls for a file which does not exist. since the dnsmasq seems to use /etc/dnsmasq.conf for config, is the /etc/conf.d file even necessary?


the unpacked source:

smithj dnsmasq-2.19 # ls -la
total 184
drwxr-xr-x   5  500 users  4096 Dec 13 11:46 .
drwx------  29 root root   4096 Jan 12 11:50 ..
-rw-r--r--   1  500 users 56589 Dec 13 06:56 CHANGELOG
-rw-r--r--   1  500 users 18007 Dec 11 12:02 COPYING
-rw-r--r--   1  500 users 16473 Dec 11 13:40 FAQ
-rw-r--r--   1  500 users   385 Dec 11 12:02 Makefile
-rw-r--r--   1  500 users  2999 Dec 11 12:02 UPGRADING_to_2.0
drwxr-xr-x   4  500 users    42 Dec 11 12:02 contrib
-rw-r--r--   1  500 users  3812 Dec 11 12:03 dnsmasq-rh.spec
-rw-r--r--   1  500 users  3364 Dec 11 12:03 dnsmasq-suse.spec
-rw-r--r--   1  500 users 26416 Dec 11 12:02 dnsmasq.8
-rw-r--r--   1  500 users 11654 Dec 11 12:02 dnsmasq.conf.example
-rw-r--r--   1  500 users  5147 Dec 11 12:02 doc.html
drwxr-xr-x   2  500 users    96 Dec 11 12:02 rpm
-rw-r--r--   1  500 users 12022 Dec 11 12:02 setup.html
drwxr-xr-x   2  500 users  4096 Jan 12 11:46 src


the ebuild states:
41	insinto /etc/conf.d
42	newins ${FILESDIR}/dnsmasq.confd dnsmasq

but i do not see the dnsmasq.confd that the ebuild calls for. i have no idea how mr Neys got it to work; it doesn't seem possible
Comment 6 Xavier Neys (RETIRED) gentoo-dev 2005-01-12 09:03:58 UTC
dnsmasq-2.19.ebuild has
line 39:  newconfd ${FILESDIR}/dnsmasq.confd dnsmasq

Please sync your tree and check you're not using a version from your overlay.
It looks like you're using a renamed ebuild from a previous version.

FYI, the file is copied from /usr/portage/net-dns/dnsmasq/files/dnsmasq.confd
Comment 7 Jonathan Smith (RETIRED) gentoo-dev 2005-01-12 13:13:29 UTC
ok, that worked. sorry for the hassle. the docs team might consider editing the router handbook to include the info that portage...-r8 won't emerge this package correctly