Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define TARGET_PREFIX to use with grub2 deployment #760

Closed
wants to merge 3 commits into from

Conversation

OYTIS
Copy link

@OYTIS OYTIS commented Mar 27, 2017

Hardcoded path to ostree-grub-generator breaks workwlow with prefixes other that /usr.

Makefile.am Outdated
@@ -48,6 +48,8 @@ endif

EXTRA_DIST += autogen.sh COPYING README.md

DEFS += -DTARGET_PREFIX="\"$(prefix)\""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, I'd never heard of DEFS before. Let's instead add to AM_CPPFLAGS, since we use that above this for very similar things like -DDATADIR='"$(datadir)"'.

Makefile.am Outdated
@@ -24,7 +24,7 @@ OSTREE_GITREV=$(shell if command -v git >/dev/null 2>&1 && test -d $(srcdir)/.gi
ACLOCAL_AMFLAGS = -I buildutil -I libglnx ${ACLOCAL_FLAGS}
AM_CPPFLAGS += -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \
-DLOCALEDIR=\"$(datadir)/locale\" -DSYSCONFDIR=\"$(sysconfdir)\" \
-DSHORTENED_SYSCONFDIR=\"$(shortened_sysconfdir)\" \
-DTARGET_PREFIX='"$(prefix)' -DSHORTENED_SYSCONFDIR=\"$(shortened_sysconfdir)\" \
Copy link
Author

@OYTIS OYTIS Mar 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing quote is probably missing. I'll check if it works for me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, pushed another fixup ⬇️ - let me know if it works for you.

@OYTIS
Copy link
Author

OYTIS commented Mar 27, 2017

@cgwalters Works fine, thank you.

@cgwalters
Copy link
Member

@rh-atomic-bot r+ b56e8b3

@rh-atomic-bot
Copy link

⌛ Testing commit b56e8b3 with merge 3b09620...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: cgwalters
Pushing 3b09620 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants