Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 475046

Summary: multilib-build.eclass: multilib_prepare_wrappers() generates headers with needless additional slashes inside paths
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: EclassesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: multilib-build.eclass.patch

Description Arfrever Frehtes Taifersar Arahesis 2013-06-28 00:03:21 UTC
multilib_prepare_wrappers() generates headers with needless additional slashes inside paths.

Example: /usr/include/ogg/config_types.h (installed by media-libs/libogg-1.3.1) contains:

/* This file is auto-generated by multilib-build.eclass
 * as a multilib-friendly wrapper. For the original content,
 * please see the files that are #included below.
 */

#if defined(__x86_64__) /* amd64 */
#       if defined(__ILP32__) /* x32 ABI */
#               error "abi_x86_x32 not supported by the package."
#       else /* 64-bit ABI */
#               include <x86_64-pc-linux-gnu//ogg/config_types.h>
#       endif
#elif defined(__i386__) /* plain x86 */
#       error "abi_x86_32 not supported by the package."
#else
#       error "No ABI matched, please report a bug to bugs.gentoo.org"
#endif

It contains <x86_64-pc-linux-gnu//ogg/config_types.h> path, which instead should be <x86_64-pc-linux-gnu/ogg/config_types.h>
Comment 1 Arfrever Frehtes Taifersar Arahesis 2013-06-28 00:43:43 UTC
Created attachment 352128 [details, diff]
multilib-build.eclass.patch
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-06-28 02:37:55 UTC
Thanks for the patch. Fixed now.