pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/34977: /pkgsrc/sysutils/munin-* cannot be built on Solaris 10 with LOCALBASE != /usr/pkg/
>Number: 34977
>Category: pkg
>Synopsis: /pkgsrc/sysutils/munin-* cannot be built on Solaris 10 with
>LOCALBASE != /usr/pkg/
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 02 13:05:00 +0000 2006
>Originator: Andreas Putzo
>Release:
>Organization:
>Environment:
SunOS build-zone 5.10 Generic_118833-17 sun4u sparc SUNW,Ultra-4
>Description:
Hi,
sorry if this is the wrong BTS for non NetBSD systems using pkgsrc.
I tried to build a sysutils/munin-node package with LOCALBASE=/usr/local/pkg
instead of the default /usr/pkg/.
This fails, because it tries to install plugins into /usr/pkg/lib/munin/plugins
(which is a read-only filesystem here).
-----
[BUILD-ZONE]:~/pkgsrc/sysutils/munin-node$ bmake package
=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /root/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/local/pkg/sbin/download-vulnerability-list''.
=> Checksum SHA1 OK for munin_1.3.1.tar.gz
=> Checksum RMD160 OK for munin_1.3.1.tar.gz
===> Installing for munin-node-1.3.1nb4
=> Running PRE-INSTALL script actions
mkdir -p /usr/local/pkg/etc/munin/plugins
mkdir -p /usr/local/pkg/etc/munin/plugin-conf.d
mkdir -p /usr/pkg/lib/munin/plugins
mkdir: "/usr/pkg/lib/munin/plugins": Read-only file system
gmake: *** [install-node-non-snmp] Error 2
*** Error code 2
Stop.
bmake: stopped in /root/pkgsrc/sysutils/munin-node
*** Error code 1
Stop.
bmake: stopped in /root/pkgsrc/sysutils/munin-node
*** Error code 1
Stop.
bmake: stopped in /root/pkgsrc/sysutils/munin-node
------
I resolved this problem by changing the UPREFIX assignment in patches/patch-aa.
Doing a grep for UPREFIX in /pkgsrc shows, that all munin packages use this
variable, but no other package so i believe this is a bug?
After changing this, munin-node failed to built a package because of missing
installed plugins. I know, this is another problem which i believe is Solaris
related because the missing plugins do not exist in
sysutils/munin-node/work/munin-1.3.1/node/node.d.sunos/ and therefore cannot be
packaged.
I solved this the dirty way by touching the missing files.
-----
=> Running POST-INSTALL script actions
[...]
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/forks'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/interrupts'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/iostat'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/iostat_ops'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/irqstats'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/memory_pools'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/memory_types'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/nfs_client'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/nfsd'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/open_files'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/sensors_'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/swap'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/uptime'
=> Registering installation for munin-node-1.3.1nb4
pkg_admin: munin-node-1.3.1nb4: File `/usr/local/pkg/lib/munin/plugins/forks'
is in +CONTENTS but not on filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/interrupts' is in +CONTENTS but not on
filesystem!
pkg_admin: munin-node-1.3.1nb4: File `/usr/local/pkg/lib/munin/plugins/iostat'
is in +CONTENTS but not on filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/iostat_ops' is in +CONTENTS but not on
filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/irqstats' is in +CONTENTS but not on
filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/memory_pools' is in +CONTENTS but noton
filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/memory_types' is in +CONTENTS but noton
filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/nfs_client' is in +CONTENTS but not on
filesystem!
pkg_admin: munin-node-1.3.1nb4: File `/usr/local/pkg/lib/munin/plugins/nfsd' is
in +CONTENTS but not on filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/open_files' is in +CONTENTS but not on
filesystem!
pkg_admin: munin-node-1.3.1nb4: File
`/usr/local/pkg/lib/munin/plugins/sensors_' is in +CONTENTS but not on
filesystem!
pkg_admin: munin-node-1.3.1nb4: File `/usr/local/pkg/lib/munin/plugins/swap' is
in +CONTENTS but not on filesystem!
pkg_admin: munin-node-1.3.1nb4: File `/usr/local/pkg/lib/munin/plugins/uptime'
is in +CONTENTS but not on filesystem!
munin-node-1.3.1nb4 requires installed package munin-doc-1.3.1
munin-node-1.3.1nb4 requires installed package p5-Net-SSLeay-1.30
munin-node-1.3.1nb4 requires installed package p5-Net-Server-0.94
munin-node-1.3.1nb4 requires installed package perl-5.8.8nb3
===> Building binary package for munin-node-1.3.1nb4
Creating package /root/pkgsrc/packages/All/munin-node-1.3.1nb4.tgz
Using SrcDir value of /usr/local/pkg
Registering depends: p5-Net-Server>=0 p5-Net-SSLeay>=0 munin-doc>=1.3.1
perl>=5.0.
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/forks'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/interrupts'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/iostat'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/iostat_ops'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/irqstats'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/memory_pools'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/memory_types'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/nfs_client'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/nfsd'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/open_files'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/sensors_'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/swap'
pkg_create: can't stat `/usr/local/pkg/lib/munin/plugins/uptime'
tar: Unable to access lib/munin/plugins/forks (No such file or directory)
tar: Unable to access lib/munin/plugins/interrupts (No such file or directory)
tar: Unable to access lib/munin/plugins/iostat (No such file or directory)
tar: Unable to access lib/munin/plugins/iostat_ops (No such file or directory)
tar: Unable to access lib/munin/plugins/irqstats (No such file or directory)
tar: Unable to access lib/munin/plugins/memory_pools (No such file or directory)
tar: Unable to access lib/munin/plugins/memory_types (No such file or directory)
tar: Unable to access lib/munin/plugins/nfs_client (No such file or directory)
tar: Unable to access lib/munin/plugins/nfsd (No such file or directory)
tar: Unable to access lib/munin/plugins/open_files (No such file or directory)
tar: Unable to access lib/munin/plugins/sensors_ (No such file or directory)
tar: Unable to access lib/munin/plugins/swap (No such file or directory)
tar: Unable to access lib/munin/plugins/uptime (No such file or directory)
tar: WARNING! These file names were not selected:
lib/munin/plugins/forks
lib/munin/plugins/interrupts
lib/munin/plugins/iostat
lib/munin/plugins/iostat_ops
lib/munin/plugins/irqstats
lib/munin/plugins/memory_pools
lib/munin/plugins/memory_types
lib/munin/plugins/nfs_client
lib/munin/plugins/nfsd
lib/munin/plugins/open_files
lib/munin/plugins/sensors_
lib/munin/plugins/swap
lib/munin/plugins/uptime
pkg_create: /usr/local/pkg/bin/tar command failed with code 1
ERROR: (env pkg_create -K pkg: exitcode 2)
*** Error code 1
Stop.
bmake: stopped in /root/pkgsrc/sysutils/munin-node
*** Error code 1
Stop.
bmake: stopped in /root/pkgsrc/sysutils/munin-node
*** Error code 1
Stop.
bmake: stopped in /root/pkgsrc/sysutils/munin-node
-----
Thanks,
Andreas
>How-To-Repeat:
Solaris 10, LOCALBASE=/usr/local/pkg in /etc/mk.conf.
cd pkgsrc/sysutils/munin-node
bmake package
>Fix:
UPREFIX=LOCALBASE
Home |
Main Index |
Thread Index |
Old Index