why is 'make' installing?

Freddie Cash fjwcash at gmail.com
Mon Nov 3 03:20:29 UTC 2014


It's installing into the staing directory in order to create the binary
package that actually gets installed. More the full install path.

This is the STAGING work that went on this year.
On Nov 2, 2014 7:02 PM, "Waitman Gobble" <uzimac at da3m0n8t3r.com> wrote:

>
> On Sun, November 2, 2014 5:23 pm, Chris H wrote:
> > On Sun, 2 Nov 2014 08:35:33 -0800 "Waitman Gobble"
> > <uzimac at da3m0n8t3r.com>
> > wrote
> >
> >> Issue, help appreciated. Missed day two of MeetBSD sorry alot going on
> >> today. Day one was great.
> >>
> >> I'm updating a port and noticed that 'make' is actually calling install
> >> in my program Makefile. seems strange. It's not registering the port as
> >> installed but the compiled binary is going into /usr/local/bin
> >>
> >> ie:
> >>
> >>
> >>> ls /usr/local/bin/dcraw-m
> >> ls: /usr/local/bin/dcraw-m: No such file or directory
> >>
> >>
> >>> make
> >> ===>  License GPLv2 accepted by the user
> >> ===>  Found saved configuration for dcraw-m-9.22
> >> ===>   dcraw-m-9.22 depends on file: /usr/local/sbin/pkg - found
> >> ===> Fetching all distfiles required by dcraw-m-9.22 for building
> >> ===>  Extracting for dcraw-m-9.22
> >> => SHA256 Checksum OK for dcraw-m-9.22.tar.gz.
> >> ===>  Patching for dcraw-m-9.22
> >> ===>   dcraw-m-9.22 depends on shared library: libjasper.so - found
> >> (/usr/local/lib/libjasper.so.4.0.0)
> >> ===>   dcraw-m-9.22 depends on shared library: libjpeg.so - found
> >> (/usr/local/lib/libjpeg.so.11)
> >> ===>   dcraw-m-9.22 depends on shared library: liblcms2.so - found
> >> (/usr/local/lib/liblcms2.so.2.0.6)
> >> ===>   dcraw-m-9.22 depends on shared library: libMagickWand-6.Q16.so -
> >> found (/usr/local/lib/libMagickWand-6.Q16.so.2.0.0) ===>  Configuring
> for
> >> dcraw-m-9.22 ===>  Building for dcraw-m-9.22
> >> ===>  Staging for dcraw-m-9.22
> >> ===>   Generating temporary packing list
> >> install -m 0755 -g wheel -o root dcraw-m /usr/local/bin ====>
> Compressing
> >> man pages (compress-man) ====> Running Q/A tests (stage-qa)
> >>
> >>
> >>> ls /usr/local/bin/dcraw-m
> >> /usr/local/bin/dcraw-m
> >>
> >>
> >> AFAIK a port 'make' should not actually call install in the Makefile. ?
> >>
> >>
> >>> rm /usr/local/bin/dcraw-m cd work/waitman-dcraw-m-1b90326/ make clean
> >>> make
> >> cc -O2 -pipe   -Wall -Werror -I/usr/local/include 'MagickWand-config
> >> --cflags --cppflags' -DMAGICKCORE_HDRI_ENABLE=0
> >> -DMAGICKCORE_QUANTUM_DEPTH=16 -DNO_JASPER -L/usr/local/lib
> >> 'MagickWand-config --ldflags --libs' -lm -llcms2 -ljpeg -o dcraw-m
> >> dcraw-m.c
> >>> ls /usr/local/bin/dcraw-m
> >> ls: /usr/local/bin/dcraw-m: No such file or directory
> >>
> >>> make install
> >> install -m 0755 -g wheel -o root dcraw-m /usr/local/bin
> >>> ls /usr/local/bin/dcraw-m
> >> /usr/local/bin/dcraw-m
> >>
> >>
> >>
> >> hmmm why is 'make' on the port Makefile calling install?
> >
> > Because you asserted "make install"?
> >
> >>> make install
> >> install -m 0755 -g wheel -o root dcraw-m /usr/local/bin
> >
> > That's all I can gather from the limited output you provided. :)
> >
> >
> > --Chris
> >
> >
> >>
> >>> uname -a
> >> FreeBSD dx.waitman.net 11.0-CURRENT FreeBSD 11.0-CURRENT #2: Mon Oct 27
> >>  18:47:44 PDT 2014     root at dx.waitman.net:/usr/obj/usr/src/sys/AMINEH
> >> amd64
> >>
> >>
> >> Thank you,
> >>
> >>
> >> --
> >> Waitman Gobble
> >> Los Altos California USA
> >> +1.510-830-7975
> >>
> >>
> >> _______________________________________________
> >> freebsd-ports at freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org
> "
> >>
> >
> >
>
> no, i was showing that the program Makefile only installs when you
> explicitly do 'make install', but the port Makefile seems to be calling
> 'make install' for some reason.
>
>
> here's another port that is not mine, it is doing the same thing..
>
>
> [1492] > cd /usr/ports/graphics/dcraw
> [1493] > make
> ===>   dcraw-9.21 depends on file: /usr/local/sbin/pkg - found
> => dcraw-9.21.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
> => Attempting to fetch
> http://distcache.FreeBSD.org/local-distfiles/sunpoet/dcraw-9.21.tar.xz
> dcraw-9.21.tar.xz                             100% of   78 kB  206 kBps
> 00m01s
> ===> Fetching all distfiles required by dcraw-9.21 for building
> ===>  Extracting for dcraw-9.21
> => SHA256 Checksum OK for dcraw-9.21.tar.xz.
> ===>  Patching for dcraw-9.21
> ===>   dcraw-9.21 depends on shared library: libjasper.so - found
> (/usr/local/lib/libjasper.so.4.0.0)
> ===>   dcraw-9.21 depends on shared library: libjpeg.so - found
> (/usr/local/lib/libjpeg.so.11)
> ===>   dcraw-9.21 depends on shared library: liblcms2.so - found
> (/usr/local/lib/liblcms2.so.2.0.6)
> ===>  Configuring for dcraw-9.21
> ===>  Building for dcraw-9.21
> dcraw.c:1009:4: warning: add explicit braces to avoid dangling else
>       [-Wdangling-else]
>           else ip[col][c] = (ip[col-width][c] + ip[col+width][c] + 1) >> 1;
>           ^
> dcraw.c:9038:41: warning: data argument not used by format string
>       [-Wformat-extra-args]
>         _("Converting to %s colorspace...\n"), name[output_color-1]);
>                                                ^
> dcraw.c:9708:44: warning: adding 'unsigned int' to a string does not
> append to
>       the string [-Wstring-plus-int]
>       write_ext = ".pgm\0.ppm\0.ppm\0.pam" + colors*5-5;
>                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
> dcraw.c:9708:44: note: use array indexing to silence this warning
>       write_ext = ".pgm\0.ppm\0.ppm\0.pam" + colors*5-5;
>                                            ^
>                   &                        [         ]
> 3 warnings generated.
> ===>  Staging for dcraw-9.21
> ===>   Generating temporary packing list
> install  -s -o root -g wheel -m 555
> /usr/ports/graphics/dcraw/work/dcraw-9.21/dcraw
> /usr/ports/graphics/dcraw/work/stage/usr/local/bin/
> install  -o root -g wheel -m 444
> /usr/ports/graphics/dcraw/work/dcraw-9.21/dcraw.1
> /usr/ports/graphics/dcraw/work/stage/usr/local/man/man1/
> ====> Compressing man pages (compress-man)
> ====> Running Q/A tests (stage-qa)
>
>
>
>
> any idea why 'make' in the port directory would trigger 'install' ?
>
>
>
> --
> Waitman Gobble
> San Jose California USA
> (510) 830-7975
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>


More information about the freebsd-ports mailing list