Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

man pages installed in /

2 views
Skip to first unread message

Patrick Welche

unread,
Oct 8, 2005, 12:43:52 PM10/8/05
to

--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I find I need the attached patch (attached as it includes tabs) to stop
the man pages and mibs from being installed in /. It could be because I
am using fairly new autotools, but it boils down to Makefile containing

datarootdir = ${prefix}/share
datadir = ${datarootdir}
mandir = ${datarootdir}/man

If datarootdir isn't defined, mandir=/man...

Cheers,

Patrick

--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=snmppat

Index: Makefile.top
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/Makefile.top,v
retrieving revision 5.19
diff -u -r5.19 Makefile.top
--- Makefile.top 6 Sep 2005 15:19:59 -0000 5.19
+++ Makefile.top 8 Oct 2005 15:06:41 -0000
@@ -15,6 +15,7 @@
bindir = @bindir@
sbindir = @sbindir@
libdir = @libdir@
+datarootdir = @datarootdir@
datadir = @datadir@
includedir = @includedir@/net-snmp
ucdincludedir = @includedir@/ucd-snmp

--ZPt4rx8FFjLCG7dd--


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snm...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Robert Story

unread,
Oct 11, 2005, 1:44:16 PM10/11/05
to
On Sat, 8 Oct 2005 17:43:16 +0100 Patrick wrote:
PW> I find I need the attached patch (attached as it includes tabs) to stop
PW> the man pages and mibs from being installed in /. It could be because I
PW> am using fairly new autotools,

indeed. What versions are you using? I don't think we can apply the patch
until we upgrade our tools. It didn't cause any problems on Linux, but I don't
want to gamble on all the other platforms...

--
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different.

Dave Shield

unread,
Oct 12, 2005, 5:24:23 AM10/12/05
to
On Sat, 2005-10-08 at 17:43 +0100, Patrick Welche wrote:
> I find I need the attached patch (attached as it includes tabs) to stop
> the man pages and mibs from being installed in /. It could be because I
> am using fairly new autotools, but it boils down to Makefile containing
>
> datarootdir = ${prefix}/share
> datadir = ${datarootdir}
> mandir = ${datarootdir}/man

Yes - I suspect it may well be down to an incompatibility with
your version of autotools. In the Makefile on my system,
the relevant definition is

mandir = ${prefix}/man

which seems to be picked up from a setting in one of the autoconf files.

We would be somewhat reluctant to upgrade the required version of
autoconf, without careful liaison among the core developers first.
And the run-up to a new release (let alone two!) is hardly the
ideal time for that :-)

Dave

Patrick Welche

unread,
Oct 12, 2005, 12:44:03 PM10/12/05
to
On Tue, Oct 11, 2005 at 01:42:57PM -0400, Robert Story wrote:
> On Sat, 8 Oct 2005 17:43:16 +0100 Patrick wrote:
> PW> I find I need the attached patch (attached as it includes tabs) to stop
> PW> the man pages and mibs from being installed in /. It could be because I
> PW> am using fairly new autotools,
>
> indeed. What versions are you using? I don't think we can apply the patch
> until we upgrade our tools. It didn't cause any problems on Linux, but I don't
> want to gamble on all the other platforms...

There isn't a gamble: the older version don't use datarootdir, so
all that happens is you end up with

datarootdir=

in your Makefile :-)

Patrick

Thomas Anders

unread,
Oct 12, 2005, 12:52:44 PM10/12/05
to
Patrick Welche wrote:
> There isn't a gamble: the older version don't use datarootdir, so
> all that happens is you end up with
>
> datarootdir=
>
> in your Makefile :-)

Agreed, this was my gut reaction also. But since we supply the generated
configure in CVS, there's no general need to use autoconf anyway (let
aside using later versions). I'd vote to apply this to MAIN only.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)

Robert Story

unread,
Oct 13, 2005, 6:26:06 PM10/13/05
to
On Wed, 12 Oct 2005 16:48:56 +0100 Patrick wrote:
PW> There isn't a gamble: the older version don't use datarootdir, so
PW> all that happens is you end up with
PW>
PW> datarootdir=

No, if autoconf hasn't been updated, you'd end up with

datarootdir=@datarootdir@

and I'm less sure what various versions of 'make' will, uh, make, of that.

--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.

You are lost in a twisty maze of little standards, all different.

Patrick Welche

unread,
Oct 14, 2005, 2:46:27 PM10/14/05
to
On Thu, Oct 13, 2005 at 06:25:12PM -0400, Robert Story wrote:
> On Wed, 12 Oct 2005 16:48:56 +0100 Patrick wrote:
> PW> There isn't a gamble: the older version don't use datarootdir, so
> PW> all that happens is you end up with
> PW>
> PW> datarootdir=
>
> No, if autoconf hasn't been updated, you'd end up with
>
> datarootdir=@datarootdir@
>
> and I'm less sure what various versions of 'make' will, uh, make, of that.

Ah yes - that would be more problematic..

Patrick

0 new messages