make error relocation

30 views
Skip to first unread message

John Harding

unread,
Jan 24, 2017, 7:36:52 AM1/24/17
to The Luggage
I'm new to Luggage, likely messing up somewhere but I can't get this to work. Luggage is creating the package but is giving an error:

Disabling bundle relocation.

If you need to override permissions or ownerships, override modify_packageroot in your Makefile

Creating /tmp/the_luggage/Desktop_Icon_Indie-20170124/payload/Desktop_Icon_Indie-20170124.pkg with /usr/bin/pkgbuild.

sudo /usr/bin/pkgbuild --root /tmp/the_luggage/Desktop_Icon_Indie-20170124/root \

--component-plist /tmp/the_luggage/Desktop_Icon_Indie-20170124/luggage.pkg.component.plist \

--identifier com.github.brrrink.Desktop_Icon_Indie \

--filter "/CVS$" --filter "/\.svn$" --filter "/\.cvsignore$" --filter "/\.cvspass$" --filter "/(\._)?\.DS_Store$" --filter "/\.git$" --filter "/\.gitignore$" \

--scripts /tmp/the_luggage/Desktop_Icon_Indie-20170124/scripts \

--version 20170124 \

--ownership preserve --quiet \

/tmp/the_luggage/Desktop_Icon_Indie-20170124/payload/Desktop_Icon_Indie-20170124.pkg


I've initiated the make with sudo (also installed with sudo, no difference)


The script is named postflight and is executable. 


Makefile:


# Which interpreter to use to make the package, 1=pkgbuild, 0=packageMaker.

USE_PKGBUILD=1 


# Include the default luggage tools

include /usr/local/share/luggage/luggage.make


#The title of the resulting installer

TITLE=Desktop_Icon_Indie


# Add new version numbers here

VERSION=1.0


# Reverse domain for the identifier, com.github.brrrink for example

REVERSE_DOMAIN=com.github.brrrink


# The payload, these locations are pre-built in luggage, see here: https://github.com/unixorn/luggage/wiki

PAYLOAD=\

pack-server\

pack-script


pack-server:

@sudo mkdir -p ${WORK_D}/Library/Management/Desktop_Icons

@sudo ${CP} Indie\ Server.afploc ${WORK_D}/Library/Management/Desktop_Icons/Indie\ Server.afploc

@sudo chmod -R 755 ${WORK_D}/Library/Management/Desktop_Icons

@sudo chown -R root:wheel ${WORK_D}/Library/Management/Desktop_Icons/

pack-script:

@sudo mkdir -p ${WORK_D}/usr/local/outset/login-once

@sudo ${CP} ./postinstall ${WORK_D}/usr/local/outset/login-once

@sudo chmod -R 755 ${WORK_D}/usr/local/outset/login-once/postinstall

@sudo chown -R root:wheel ${WORK_D}/usr/local/outset/login-once/postinstall


Thanks and best!

John Harding

unread,
Jan 24, 2017, 8:41:16 AM1/24/17
to The Luggage
Update:

After digging in the luggage.make file I saw the the pack-script was already in usage, I've changed it to read: pack-shelly instead in case of conflict.

in the pack-shelly (previously pack-server) I changed 
@sudo ${CP} "filename"
to 
@sudo ${INSTALL} -m 755 -g wheel -o root "filename"

I've tested the package that is created and it seems to work fine now.

I'm still getting the Disabling bundle relocation  error though, on two different systems. Any ideas? One thing I should note is that I did not install packageMaker (my understanding is it's deprecated, correct me if I'm wrong/need this)

New makefile:

# Which interpreter to use to make the package, 1=pkgbuild, 0=packageMaker.
USE_PKGBUILD=1 

# Include the default luggage tools
include /usr/local/share/luggage/luggage.make

#The title of the resulting installer
TITLE=Desktop_Icon_Indie

# Add new version numbers here
VERSION=1.0

# Reverse domain for the identifier, com.github.brrrink for example
REVERSE_DOMAIN=com.github.brrrink

# The payload, these locations are pre-built in luggage, see here: https://github.com/unixorn/luggage/wiki
# This example will unpack the tar file into /Applications
PAYLOAD=\
pack-server\
pack-shelly

pack-server:
@sudo mkdir -p ${WORK_D}/Library/Management/Desktop_Icons
@sudo ${CP} Indie\ Server.afploc ${WORK_D}/Library/Management/Desktop_Icons/Indie\ Server.afploc
@sudo chmod -R 755 ${WORK_D}/Library/Management/Desktop_Icons
@sudo chown -R root:wheel ${WORK_D}/Library/Management/Desktop_Icons/
pack-shelly:
@sudo mkdir -p ${WORK_D}/usr/local/outset/login-once
@sudo ${INSTALL} -m 755 -g wheel -o root ./postinstall ${WORK_D}/usr/local/outset/login-once

Vaughn Miller

unread,
Jan 24, 2017, 8:54:03 AM1/24/17
to the-l...@googlegroups.com
"Disabling bundle relocation"

Is not an error, simply an informational message.

Vaughn Miller
Desktop Engineer
Lafayette College

--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Harding

unread,
Jan 24, 2017, 10:41:45 AM1/24/17
to The Luggage
Oh I see, thanks for clarifying that. When searching the (non) issue I found a few post where people were not using sudo when initiating the make. My mistake. Can I ask when I should use ${install} vs ${CP} and changing ownership/permissions that way. Using ${INSTALL} worked where ${CP} didn't for me but I don't understand why it differs exactly.

Thanks very much for your time

Vaughn Miller

unread,
Jan 24, 2017, 10:54:39 AM1/24/17
to the-l...@googlegroups.com
${CP} is referencing /bin/cp  and ${INSTALL} is referencing /usr/bin/install

Either should work (you use both in your Makefile) as long as you use the appropriate syntax.  I tend to use ${CP} simply because I'm more familiar with the syntax.

Vaughn

On Tue, Jan 24, 2017 at 10:41 AM, John Harding <nonze...@gmail.com> wrote:
Oh I see, thanks for clarifying that. When searching the (non) issue I found a few post where people were not using sudo when initiating the make. My mistake. Can I ask when I should use ${install} vs ${CP} and changing ownership/permissions that way. Using ${INSTALL} worked where ${CP} didn't for me but I don't understand why it differs exactly.

Thanks very much for your time

John Harding

unread,
Jan 24, 2017, 10:56:31 AM1/24/17
to The Luggage
Make sense. Thanks again!
Reply all
Reply to author
Forward
0 new messages