user/4952: strfile installs into /

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

user/4952: strfile installs into /

frantisek holop
>Number:         4952
>Category:       user
>Synopsis:       strfile installs into /
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 22 11:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     -f
>Release:        3.8
>Organization:
net
>Environment:
        System      : OpenBSD 3.8
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        strfile is part of fortune(6), not installed by default.
        when i go and do:
        integer> cd /usr/src/games/fortune/strfile/
        integer> sudo make
        integer> sudo install
        install -c -s -o root -g bin  -m 555 strfile /strfile
        install -c -o root -g bin -m 444 strfile.cat8 /usr/share/man/cat8/strfile.0

        it is installed into /
        as the man page is cat8, which is "System maintenance and operation
        commands." i thought the binary could also go to other
        section 8 commands: /usr/sbin/
>How-To-Repeat:
        integer> cd /usr/src/games/fortune/strfile/
        integer> sudo make
        integer> sudo install
>Fix:
        sorry but i don't know a fix for this, perhaps someone who
        knows all the knobs for bsd.prog.mk


>Release-Note:
>Audit-Trail:
>Unformatted:

Reply | Threaded
Open this post in threaded view
|

Re: user/4952: strfile installs into /

Jasper Lievisse Adriaanse
The following reply was made to PR user/4952; it has been noted by GNATS.

From: Jasper Lievisse Adriaanse <[hidden email]>
To: frantisek holop <[hidden email]>
Cc: [hidden email]
Subject: Re: user/4952: strfile installs into /
Date: Thu, 22 Dec 2005 12:51:15 +0100

 On Thu, 22 Dec 2005 12:39:09 +0100 (CET)
 frantisek holop <[hidden email]> wrote:
 
 > >Description:
 > strfile is part of fortune(6), not installed by default.
 > when i go and do:
 > integer> cd /usr/src/games/fortune/strfile/
 > integer> sudo make
 > integer> sudo install
 > install -c -s -o root -g bin  -m 555 strfile /strfile
 > install -c -o root -g bin -m 444 strfile.cat8
 /usr/share/man/cat8/strfile.0
 >
 > it is installed into /
 > as the man page is cat8, which is "System maintenance and operation
 > commands." i thought the binary could also go to other
 > section 8 commands: /usr/sbin/
 > >How-To-Repeat:
 > integer> cd /usr/src/games/fortune/strfile/
 > integer> sudo make
 > integer> sudo install
 > >Fix:
 > sorry but i don't know a fix for this, perhaps someone who
 > knows all the knobs for bsd.prog.mk
 >
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >
 Why didn't you do a "make obj" ?
 
 
 --
 "Security is decided by quality" -- Theo de Raadt
 
 [demime 1.01d removed an attachment of type application/pgp-signature]

Reply | Threaded
Open this post in threaded view
|

Re: user/4952: strfile installs into /

Jasper Lievisse Adriaanse
In reply to this post by frantisek holop
On Thu, 22 Dec 2005 13:07:46 +0100
frantisek holop <[hidden email]> wrote:

> hmm, on Thu, Dec 22, 2005 at 12:51:15PM +0100, Jasper Lievisse Adriaanse
said that

> > On Thu, 22 Dec 2005 12:39:09 +0100 (CET)
> > frantisek holop <[hidden email]> wrote:
> >
> > > >Description:
> > > strfile is part of fortune(6), not installed by default.
> > > when i go and do:
> > > integer> cd /usr/src/games/fortune/strfile/
> > > integer> sudo make
> > > integer> sudo install
> > > install -c -s -o root -g bin  -m 555 strfile /strfile
> > > install -c -o root -g bin -m 444 strfile.cat8
/usr/share/man/cat8/strfile.0

> > >
> > > it is installed into /
> > > as the man page is cat8, which is "System maintenance and operation
> > > commands." i thought the binary could also go to other
> > > section 8 commands: /usr/sbin/
> > > >How-To-Repeat:
> > > integer> cd /usr/src/games/fortune/strfile/
> > > integer> sudo make
> > > integer> sudo install
> > > >Fix:
> > > sorry but i don't know a fix for this, perhaps someone who
> > > knows all the knobs for bsd.prog.mk
> > >
> > >
> > > >Release-Note:
> > > >Audit-Trail:
> > > >Unformatted:
> > >
> > Why didn't you do a "make obj" ?
>
> i think i did a make obj at top /usr/src level...
You have to be sure.

> but perhaps i am doing something wrong, so i did this:
>
> integer> sudo make cleandir
Make clean will sufice, I guess.

> rm -f a.out [Ee]rrs mklog core *.core  strfile strfile.o  strfile.ln
> rm -f strfile.cat8 strfile.ps8
> rm -f .depend /usr/src/games/fortune/strfile/tags
>
> integer> sudo make obj
> /usr/src/games/fortune/strfile/obj -> /usr/obj/games/fortune/strfile
>
> integer> sudo make
> cc -O2 -pipe    -c /usr/src/games/fortune/strfile/strfile.c
> cc   -o strfile strfile.o
> nroff -Tascii -mandoc /usr/src/games/fortune/strfile/strfile.8 >
> strfile.cat8
>
> integer> sudo make install
> install -c -s -o root -g bin  -m 555 strfile /strfile
> install -c -o root -g bin -m 444 strfile.cat8 /usr/share/man/cat8/strfile.0
Why are you going to src/games/fortune/strfile instead of
justsrc/games/fortune?
If you go to src/games/fortune, than everything works like it should.
I guess that's because of the fact that the Makefile
in src/games/fortune controls things that the Makefile in fortune/strfile
doesn't.

So please try again in from src/games/fortune.
>
> -f
Jasper

> --
> why did kamikaze pilots wear helmets anyway?


--
"Security is decided by quality" -- Theo de Raadt

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply | Threaded
Open this post in threaded view
|

Re: user/4952: strfile installs into /

frantisek holop
In reply to this post by frantisek holop
The following reply was made to PR user/4952; it has been noted by GNATS.

From: frantisek holop <[hidden email]>
To: Jasper Lievisse Adriaanse <[hidden email]>
Cc: [hidden email]
Subject: Re: user/4952: strfile installs into /
Date: Thu, 22 Dec 2005 13:07:46 +0100

 hmm, on Thu, Dec 22, 2005 at 12:51:15PM +0100, Jasper Lievisse Adriaanse said that
 > On Thu, 22 Dec 2005 12:39:09 +0100 (CET)
 > frantisek holop <[hidden email]> wrote:
 >
 > > >Description:
 > > strfile is part of fortune(6), not installed by default.
 > > when i go and do:
 > > integer> cd /usr/src/games/fortune/strfile/
 > > integer> sudo make
 > > integer> sudo install
 > > install -c -s -o root -g bin  -m 555 strfile /strfile
 > > install -c -o root -g bin -m 444 strfile.cat8 /usr/share/man/cat8/strfile.0
 > >
 > > it is installed into /
 > > as the man page is cat8, which is "System maintenance and operation
 > > commands." i thought the binary could also go to other
 > > section 8 commands: /usr/sbin/
 > > >How-To-Repeat:
 > > integer> cd /usr/src/games/fortune/strfile/
 > > integer> sudo make
 > > integer> sudo install
 > > >Fix:
 > > sorry but i don't know a fix for this, perhaps someone who
 > > knows all the knobs for bsd.prog.mk
 > >
 > >
 > > >Release-Note:
 > > >Audit-Trail:
 > > >Unformatted:
 > >
 > Why didn't you do a "make obj" ?
 
 i think i did a make obj at top /usr/src level...
 but perhaps i am doing something wrong, so i did this:
 
 integer> sudo make cleandir
 rm -f a.out [Ee]rrs mklog core *.core  strfile strfile.o  strfile.ln
 rm -f strfile.cat8 strfile.ps8
 rm -f .depend /usr/src/games/fortune/strfile/tags
 
 integer> sudo make obj
 /usr/src/games/fortune/strfile/obj -> /usr/obj/games/fortune/strfile
 
 integer> sudo make
 cc -O2 -pipe    -c /usr/src/games/fortune/strfile/strfile.c
 cc   -o strfile strfile.o
 nroff -Tascii -mandoc /usr/src/games/fortune/strfile/strfile.8 >
 strfile.cat8
 
 integer> sudo make install
 install -c -s -o root -g bin  -m 555 strfile /strfile
 install -c -o root -g bin -m 444 strfile.cat8 /usr/share/man/cat8/strfile.0
 
 -f
 --
 why did kamikaze pilots wear helmets anyway?

Reply | Threaded
Open this post in threaded view
|

Re: user/4952: strfile installs into /

frantisek holop
In reply to this post by Jasper Lievisse Adriaanse
hmm, on Thu, Dec 22, 2005 at 01:13:39PM +0100, Jasper Lievisse Adriaanse said that

> > but perhaps i am doing something wrong, so i did this:
> >
> > integer> sudo make cleandir
> Make clean will sufice, I guess.
>
> > rm -f a.out [Ee]rrs mklog core *.core  strfile strfile.o  strfile.ln
> > rm -f strfile.cat8 strfile.ps8
> > rm -f .depend /usr/src/games/fortune/strfile/tags
> >
> > integer> sudo make obj
> > /usr/src/games/fortune/strfile/obj -> /usr/obj/games/fortune/strfile
> >
> > integer> sudo make
> > cc -O2 -pipe    -c /usr/src/games/fortune/strfile/strfile.c
> > cc   -o strfile strfile.o
> > nroff -Tascii -mandoc /usr/src/games/fortune/strfile/strfile.8 >
> > strfile.cat8
> >
> > integer> sudo make install
> > install -c -s -o root -g bin  -m 555 strfile /strfile
> > install -c -o root -g bin -m 444 strfile.cat8 /usr/share/man/cat8/strfile.0
> Why are you going to src/games/fortune/strfile instead of
> justsrc/games/fortune?

integer> pwd
/usr/src/games/fortune

integer> sudo make install
===> fortune
install -c -s -o root -g games  -m 555 fortune /usr/games/fortune
install -c -o root -g bin -m 444 fortune.cat6 /usr/share/man/cat6/fortune.0
===> datfiles
(cd /usr/src/games/fortune/datfiles && install -c -o root -g bin -m 444 fortunes fortunes2 startrek zippy recipes fortunes2-o limerick /usr/share/games/fortune)
install -c -o root -g bin -m 444 fortunes.dat fortunes2.dat startrek.dat zippy.dat  fortunes-o fortunes-o.dat recipes.dat fortunes2-o.dat limerick.dat  /usr/share/games/fortune


does _not_ install strfile.


i want to use strfile for my homegrown fortune data files, which change
frequently.  as fortune doesn't install strfile, i find it logical that
i can go into /usr/src/games/fortune/strfile and do a make && make install...

-f
--
unix should be used as an adjective. - at&t