Stage support trouble

Baptiste Daroussin bapt at FreeBSD.org
Tue Sep 24 15:23:43 UTC 2013


On Tue, Sep 24, 2013 at 05:11:13PM +0000, Olivier Duchateau wrote:
> Hi,
> 
> I've read wiki [1] and Mk/bsd.stage.mk, but I don't understand process.
> 
> I tested on simple port (devel/xfce4-dev-tools). I removed NO_STAGE, and followed wiki.
> 
> If I made make check-orphans (or makeplist) nothing appends. 
> I must send SIGINT signal otherwise make is always running.
> 
> So, is there good documentation somewhere ?
> 
> [1] https://wiki.freebsd.org/ports/StageDir

Strange, I went into that port removed NO_STAGED
$ make stage
[SNIP]
===>  Building for xfce4-dev-tools-4.10.0
Making all in m4macros
Making all in scripts
rm -f xdt-autogen xdt-autogen.gen
sed -e 's,\@DATADIR\@,/usr/local/share,g'  xdt-autogen.in  > xdt-autogen.gen
mv xdt-autogen.gen xdt-autogen
Making all in xdt-csource
clang -DPACKAGE_NAME=\"xfce4-dev-tools\" -DPACKAGE_TARNAME=\"xfce4-dev-tools\" -DPACKAGE_VERSION=\"4.10.0\" -DPACKAGE_STRING=\"xfce4-dev-tools\ 4.10.0\" -DPACKAGE_BUGREPORT=\"http://bugzilla.xfce.org/enter_bug.cgi\?product=Xfce4-dev-tools\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xfce4-dev-tools\" -DVERSION=\"4.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_LIBINTL_H=1 -DHAVE_LOCALE_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -I..         -DG_LOG_DOMAIN=\"xdt-csource\"  -I/usr/local/include -L/usr/local/lib -I/usr/local/include/glib-2.0 -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT xdt_csource-main.o -MD -MP -MF .deps/xdt_csource-main.Tpo -c -o xdt_csource-main.o `test -f 'main.c' || echo './'`main.c
clang: warning: argument unused during compilation: '-L/usr/local/lib'
mv -f .deps/xdt_csource-main.Tpo .deps/xdt_csource-main.Po
/bin/sh ../libtool --tag=CC    --mode=link clang -I/usr/local/include/glib-2.0 -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -no-undefined  -o xdt-csource xdt_csource-main.o -L/usr/local/lib -lglib-2.0 
libtool: link: clang -I/usr/local/include/glib-2.0 -I/usr/local/include -O2 -pipe -fno-strict-aliasing -o xdt-csource xdt_csource-main.o  -L/usr/local/lib /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so /usr/local/lib/libpcre.so -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib
===>  Staging for xfce4-dev-tools-4.10.0
===>   xfce4-dev-tools-4.10.0 depends on file: /usr/local/share/autotools - not found
===>    Verifying install for /usr/local/share/autotools in /home/bapt/ports/devel/autotools
===>   autotools-20130627 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by autotools-20130627 for building
===>  Extracting for autotools-20130627
===>  Patching for autotools-20130627
===>  Configuring for autotools-20130627
===>  Installing for autotools-20130627
===>   autotools-20130627 depends on executable: libtool - found
===>   autotools-20130627 depends on executable: autoconf-2.13 - found
===>   autotools-20130627 depends on executable: autoconf-2.69 - found
===>   autotools-20130627 depends on executable: automake-1.4 - found
===>   autotools-20130627 depends on executable: automake-1.14 - found
===>   Generating temporary packing list
===>  Checking if devel/autotools already installed
===>  Switching to root credentials for 'install' target
===>   Registering installation for autotools-20130627 as automatic
Installing autotools-20130627... done
===>  Returning to user credentials
===>   Returning to build of xfce4-dev-tools-4.10.0
===>   Generating temporary packing list
Making install in m4macros
 /bin/mkdir -p '/home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/share/xfce4/dev-tools/m4macros'
 install   -m 444 xdt-depends.m4 xdt-features.m4 xdt-i18n.m4 xdt-python.m4 xdt-xfce.m4 '/home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/share/xfce4/dev-tools/m4macros'
Making install in scripts
 /bin/mkdir -p '/home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/bin'
 install   -m 555 xdt-autogen xdt-commit '/home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/bin'
Making install in xdt-csource
 /bin/mkdir -p '/home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/bin'
  /bin/sh ../libtool   --mode=install install  -s  -m 555 xdt-csource '/home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/bin'
libtool: install: install -m 555 -s xdt-csource /home/bapt/ports/devel/xfce4-dev-tools/work/stage/usr/local/bin/xdt-csource
====> Compressing man pages
$ make check-orphans
$
$ make package
===>  Building package for xfce4-dev-tools-4.10.0
$

Congratulation this port does natively support stage.
and I have run all the above as user bapt not as root and it worked :).

Make sure to make clean before any testing ! probably there was an old work directory in there.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130924/dff008c5/attachment.sig>


More information about the freebsd-ports mailing list