pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: apache 2.4.3 'bmake install' symlinks to wrong directory (perhaps)



Saifi Khan <saifi.khan%fastpath.in@localhost> writes:

> echo Installing CGIs ;  
> /usr/pkgsrc/www/apache24/work/httpd-2.4.3/build/mkdir.sh 
> /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/cgi-bin ;  cd 
> /usr/pkgsrc/www/apache24/work/httpd-2.4.3/docs/cgi-examples &&  /bin/pax 
> -rwppm . /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/cgi-bin
> Installing CGIs
> Installing header files
> Installing build system files
> Installing man pages and online manual
> /usr/bin/install -c -o root -g wheel -m 644 
> /usr/pkgsrc/www/apache24/work/httpd-2.4.3/docs/man/*.1 
> /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/man/man1
> /usr/bin/install -c -o root -g wheel -m 644 
> /usr/pkgsrc/www/apache24/work/httpd-2.4.3/docs/man/*.8 
> /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/man/man8
> cd /usr/pkgsrc/www/apache24/work/httpd-2.4.3/docs/manual &&  /bin/pax -rwppm 
> . /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/manual
> /bin/ln -sf /usr/pkg/libexec/apr/libtool 
> /usr/pkgsrc/www/apache24/work/.destdir/usr/pkg/share/httpd/build
> ln: /usr/pkgsrc/www/apache24/work/.destdir/usr/pkg/share/httpd/build: No such 
> file or directory
> *** Error code 1

Thus, the failing statement is ln.

> Stop.
> bmake: stopped in /usr/pkgsrc/www/apache24
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/www/apache24
> x53u#
>
> Perhaps this is a case of incorrect symbolic linking.
>
> The directory build is found in the following path
> /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/

It looks like source isn't patched correctly, and staged installation caught it.
Normally packages should not install anything outside LOCALBASE which
seems to be standard /usr/pkg in your case.

> The contents of 'build' directory are as follows:
>
> ./
> ../
> config.nice*
> config_vars.mk
> instdso.sh*
> library.mk
> ltlib.mk
> mkdir.sh*
> program.mk
> rules.mk
> special.mk
>
> i must add that under the path
> /usr/pkgsrc/www/apache24/work/.destdir/usr/local/apache2/
>
> the following directories are seen:
>
> .
> |-- bin
> |-- build
> |-- cgi-bin
> |-- error
> |   `-- include
> |-- htdocs
> |-- icons
> |   `-- small
> |-- include
> |-- logs
> |-- man
> |   |-- man1
> |   `-- man8
> |-- manual
> |   |-- developer
> |   |-- faq
> |   |-- howto
> |   |-- images
> |   |-- misc
> |   |-- mod
> |   |-- platform
> |   |-- programs
> |   |-- rewrite
> |   |-- ssl
> |   |-- style
> |   |   |-- css
> |   |   |-- lang
> |   |   |-- latex
> |   |   |-- scripts
> |   |   `-- xsl
> |   |       `-- util
> |   `-- vhosts
> `-- modules
>
> Can the experienced folks ascertain if this is the correct interpretation ?
>
> In asmuch i'm trying to build a package, i'm also trying to learn and 
> understanding pkgsrc better.

Package installs files not into intended place.
It isn't clear why this happens, either source wasn't patched enough
(and it doesn't honour pkgsrc's PREFIX) or your environment is
contaminated with settings that override normal PREFIX.


-- 
HE CE3OH...



Home | Main Index | Thread Index | Old Index