Skip to contentSkip to conversation

New: log4cpp package build fails to build within install

Buildroot bugzilla at busybox.net 1 participant 2 messages Sep 2, 2016 – Sep 12, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9216

Bug ID: 9216
Summary: log4cpp package build fails to build within install
Product: buildroot
Version: 2016.05
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: martin.guethle at bachmann-technology.com
CC: buildroot at uclibc.org
Target Milestone: ---

Hi together,

after I've seen that there log4cpp is now part of the buildroot, I've appended the related package to the 2016.5 version, by getting the related stuff from the git repository in the newest version.

The compile itself works fine, but it fails when run as user, as the related install part tries to write data to /usr/doc, where now write access is allowed.

Searching around for the different compile flags from log4cpp itself, it shown up, that the problem can be suppressed, by deactivating the logging itself with the following line in the log4cpp.mk:

LOG4CPP_CONF_OPTS += "--disable-doxygen"

But this part deactivates all kind of documentation stuff.

I've tried a couple of different things to change path specification done via the LOG4CPP_STAGING_CONFIG_SCRIPT_FIXUP definition.
I.e the following ones:
--datarootdir
--mandir
--docdir
Not all at once, but tried some variants. But didn't help.

The reduced build log part to the relevant part is:

/bin/bash ../config/mkinstalldirs /usr/share/man/man3 /usr/bin/install -c -m 644 ./man/man3/log4cpp.3/usr/share/man/man3/log4cpp.3 /usr/bin/install: cannot create regular file '/usr/share/man/man3/log4cpp.3':
Permission denied

If the full build log is necessary, I can append it, too.

As I've not run through the whole Makefile, it seems like some of the path definitions is not done in a correct way.

Hope there is a cleaner way to allow the compile the package and keeping all parts of documentation alive and present within the output staging folder.

Never the less thanks for appending the log4cpp package to the infrastructure

Greets
Martin

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 9216] log4cpp package build fails to build within install

https://bugs.busybox.net/show_bug.cgi?id=9216

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #1 from Thomas Petazzoni <[email protected]> --- This problem has already been fixed in commit
https://git.buildroot.org/buildroot/commit/package/log4cpp?id=bf20a49d4c2f064015b4d437a7cd98c6dd8ce4ff,
which is part of Buildroot since 2016.08. This commit disables the build of the documentation, since Buildroot generally doesn't build the documentation of its packages.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.