[PC-BSD Pbi-dev] Permission problem during the build

Charles Rapenne charles at bsd.zplay.eu
Mon Sep 23 12:53:56 PDT 2013


Le 2013-09-23 19:05, Ken Moore a écrit :
> On 09/22/2013 17:15, charles wrote:
> 
>> Hi,
>> 
>> I'm using EasyPbi to create a PBI but I have a compile error on
>> kdehier, it tries to do an "ln -sf" and fail on this.
>> 
>> Compiling port: /usr/ports/misc/kdehier4
>> 
>> ===> No user-specified options configured for kdehier4-1.1.1
>> 
>> ===> Cleaning for kdehier4-1.1.1
>> 
>> ===> kdehier4-1.1.1 depends on file:
>> /usr/pbi/ninja-ide-amd64/sbin/pkg - found
>> 
>> ===> Fetching all distfiles required by kdehier4-1.1.1 for building
>> 
>> ===> Extracting for kdehier4-1.1.1
>> 
>> ===> Patching for kdehier4-1.1.1
>> 
>> ===> Configuring for kdehier4-1.1.1
>> 
>> ===> Installing for kdehier4-1.1.1
>> 
>> ===> Generating temporary packing list
>> 
>> /bin/mkdir -p /usr/pbi/ninja-ide-amd64/etc/dbus-1
>> 
>> install -o root -g wheel -m 444
>> /usr/wrkdirprefix/usr/ports/misc/kdehier4/work/session-kde4.conf
>> /usr/pbi/ninja-ide-amd64/etc/dbus-1
>> 
>> install -o root -g wheel -m 444
>> /usr/wrkdirprefix/usr/ports/misc/kdehier4/work/system-kde4.conf
>> /usr/pbi/ninja-ide-amd64/etc/dbus-1
>> 
>> /bin/ln -sf /usr/pbi/ninja-ide-amd64/etc/pam.d /usr/local/etc/
>> 
>> ln: /usr/local/etc//pam.d: Operation not permitted
>> 
>> *** [do-install] Error code 1
>> 
>> Stop in /usr/ports/misc/kdehier4.
>> 
>> BUILDERROR1!!
>> 
>> ===> Installing for kdehier4-1.1.1
>> 
>> ===> Generating temporary packing list
>> 
>> /bin/mkdir -p /usr/pbi/ninja-ide-amd64/etc/dbus-1
>> 
>> install -o root -g wheel -m 444
>> /usr/wrkdirprefix/usr/ports/misc/kdehier4/work/session-kde4.conf
>> /usr/pbi/ninja-ide-amd64/etc/dbus-1
>> 
>> install -o root -g wheel -m 444
>> /usr/wrkdirprefix/usr/ports/misc/kdehier4/work/system-kde4.conf
>> /usr/pbi/ninja-ide-amd64/etc/dbus-1
>> 
>> /bin/ln -sf /usr/pbi/ninja-ide-amd64/etc/pam.d /usr/local/etc/
>> 
>> ln: /usr/local/etc//pam.d: Operation not permitted
>> 
>> *** [do-install] Error code 1
>> 
>> Stop in /usr/ports/misc/kdehier4.
>> 
>> ===> Cleaning for kdehier4-1.1.1
>> 
>> ERROR: make install of devel/ninja-ide failed!
>> 
>> Cleaning /usr/pbi/ninja-ide-amd64.chroot.10686
>> 
>> _______________________________________________
>> Pbi-dev mailing list
>> Pbi-dev at lists.pcbsd.org
>> http://lists.pcbsd.org/mailman/listinfo/pbi-dev [1]
> 
>  Two questions immediately come to mind:
>  1) Is your ports tree up-to-date? Usually that fixes this type of
> error because the port maintainers are pretty good about making sure
> that the port is not broken like this.
> 
>  2) It looks like you are trying to make a PBI for devel/ninja-ide,
> which does not require any of the KDE ports (just python and the
> python/qt4 bindings). So did you manually specify the inclusion of
> misc/kdehier4 into the PBI for some reason?
> 
> --
> ~~ Ken Moore ~~
> PC-BSD/iXsystems
> 
> 
> Links:
> ------
> [1] http://lists.pcbsd.org/mailman/listinfo/pbi-dev
> 
> _______________________________________________
> Pbi-dev mailing list
> Pbi-dev at lists.pcbsd.org
> http://lists.pcbsd.org/mailman/listinfo/pbi-dev

I updated the ports tree and I have the same error. I can build the 
package from the ports, but not as pbi.

Here is the pbi.conf :


#!/bin/sh
# PBI Build Configuration

# -- Program Information --
PBI_PROGNAME="ninja-ide"
PBI_PROGWEB="http://ninja-ide.org/"
PBI_PROGAUTHOR="nivit at FreeBSD.org"
PBI_PROGICON="defaulticon.png"

# -- Port Information --
PBI_MAKEPORT="devel/ninja-ide"
PBI_MKPORTBEFORE=""
PBI_MKPORTAFTER=""
PBI_MAKEOPTS=""

# -- Require Root Permissions to Install PBI --
PBI_REQUIRESROOT="NO"
# -- Auto-build Configuration Options --
PBI_BUILDKEY="00"
PBI_AB_PRIORITY="00"
PBI_AB_NOTMPFS="NO"

export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT 
PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS PBI_REQUIRESROOT 
PBI_BUILDKEY PBI_AB_PRIORITY PBI_NOTMPFS


More information about the Pbi-dev mailing list