poudriere icon indicating copy to clipboard operation
poudriere copied to clipboard

installing to stage/etc causes problems

Open dlangille opened this issue 3 years ago • 2 comments

Opened by request. My direct issue is fixed, thank you for your help.

@bdrewery helped me track this one down.

Some of my ports were getting this message on build:

"/usr/ports/Mk/bsd.port.mk" line 1198: UNAME_r (12.2-RELEASE-p9) and OSVERSION (1300139) do not agree on major version number.

Some ports were OK.

The cause was an error in another port which, because of an undeclared variable, was installing to stage/etc.

@bdrewery said: "maybe I should set make.conf and login.conf to schg"

The cause:

PF_JAIL_PATH=           ${FP_JAILS_DIR}/freshports 
${INSTALL_SCRIPT} ${WRKSRC}/Jail/files/etc/make.conf ${STAGEDIR}${FP_JAIL_PATH}/etc

That PF on the first line should be FP.

dlangille avatar Aug 13 '21 21:08 dlangille

This is the file in question, now properly installed:

root@13amd64-default-master-list:~ # cat /jails/freshports/etc/make.conf 
# this avoids Abort trap when cc is invoked in a makefile
CC=echo

# OSVERSION
OSVERSION!= /sbin/sysctl -n kern.osreldate

dlangille avatar Aug 14 '21 00:08 dlangille

To be clear, this file was accidentally installed to stage/etc/make.conf instead of stage/jails/freshports/etc/make.conf

grepping old IRC logs, 2017-01-09.log has a discussion with mat. This might be why, but I'm not sure.

Conclusion: I have no idea why.

[07:23:40] Why does it care? [07:23:41] $ make makesum [07:23:42] make: "/usr/home/dan/WorkingCopyPortsTree/Mk/bsd.port.mk" line 1148: UNAME_r (11.0-RELEASE-p2) and OSVERSION (1002000) do not agree on major version number.

[07:29:06] <mat_> dvl, because some things it does are slightly different for different FreeBSD versions, so, it tells you that you have to tell it which version you really want

[07:56:12] mat_: How do I tell it what version I really want? [07:56:44] <mat_> dvl, you put UNAME_r or OSVERSION (or both) in your environment [08:00:32] mat_: success. Thank you.

dlangille avatar Aug 14 '21 01:08 dlangille