Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500992 - dev-libs/libiconv-1.14-r1 Unable to apply install-sh patch.
Summary: dev-libs/libiconv-1.14-r1 Unable to apply install-sh patch.
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 500994 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-11 13:48 UTC by droidz2a111
Modified: 2019-10-11 17:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for profiles/default/bsd/fbsd/profile.bashrc (install-sh.patch,786 bytes, patch)
2014-02-11 14:29 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description droidz2a111 2014-02-11 13:48:42 UTC
# emerge --info

Portage 2.2.8-r1 (default/bsd/fbsd/amd64/9.1, gcc-4.6.4, freebsd-lib-9.1-r11, 9.1-r5-Gentoo amd64)
=================================================================
System uname: FreeBSD-9.1-r5-Gentoo-amd64-64bit-ELF
KiB Mem:     1028572 total
KiB Swap:    3145624 total
Timestamp of tree: Mon, 10 Feb 2014 23:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:         4.2_p45-r1
dev-lang/python:         2.7.6, 3.2.5-r3, 3.3.3
dev-util/pkgconfig:      0.28
sys-apps/baselayout:     2.2
sys-apps/openrc:         0.12.4
sys-devel/autoconf:      2.69
sys-devel/automake:      1.9.6-r3, 1.13.2, 1.14.1
sys-devel/binutils:      2.22-r1
sys-devel/gcc:           4.6.4
sys-devel/gcc-config:    1.8
sys-devel/libtool:       2.4.2
sys-devel/make:          4.0-r1
sys-freebsd/freebsd-lib: 9.1-r11 (virtual/os-headers)
Repositories: gentoo
ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-freebsd9.1"
CFLAGS="-O2 -pipe -mtune=generic"
CHOST="x86_64-gentoo-freebsd9.1"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=generic"
DISTDIR="/usr/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/usr/lib/systemd"
LANG="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/usr/binpackages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl amd64-fbsd berkdb bindist cracklib crypt cxx dri gdbm iconv ipv6 java5 java6 mmx modules multilib ncurses nls oss pam pcre python2 readline sse sse2 ssl tcpd unicode zlib" ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="FreeBSD" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 intel mach64 mga nv r128 radeon rendition s3 s3virge savage siliconmotion sis tga trident tseng fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

# emerge dev-libs/libiconv-1.14-r1

>>> Messages generated by process 13722 on 2014-02-11 12:22:16 UTC for package dev-libs/libiconv-1.14-r1:

WARN: prepare
Unable to apply install-sh patch.
If you experience errors during install phase, try with MAKEOPTS="-j1"
Comment 1 droidz2a111 2014-02-11 13:55:48 UTC
emerge --info was run with MAKEOPTS="-j3" but the actual emerge was tested with MAKEOPTS="-j1"
Comment 2 Yuta SATOH 2014-02-11 14:29:25 UTC
Created attachment 370154 [details, diff]
sample patch for profiles/default/bsd/fbsd/profile.bashrc

elibtoolize applies the patch to install-sh automatically. 
Profile is also trying to apply the patch as well, but fails, an error message is displayed.

I think better to change the error message.
Please keep code to apply the patch for ebuild that does not call elibtoolize.

# cd /usr/portage/dev-libs/libiconv
# ebuild libiconv-1.14-r1.ebuild clean prepare
 * libiconv-1.14.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...         [ ok ]
 * checking ebuild checksums ;-) ...                                 [ ok ]
 * checking auxfile checksums ;-) ...                                [ ok ]
 * checking miscfile checksums ;-) ...                               [ ok ]
>>> Unpacking source...
>>> Unpacking libiconv-1.14.tar.gz to /var/tmp/portage/dev-libs/libiconv-1.14-r1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libiconv-1.14-r1/work
>>> Preparing source in /var/tmp/portage/dev-libs/libiconv-1.14-r1/work/libiconv-1.14 ...
 * Running elibtoolize in: libiconv-1.14/
 *   Applying target-nm/2.4.2 patch ...
 *   Applying fbsd-conf/00broken-libglade patch ...
 * Running elibtoolize in: libiconv-1.14/build-aux/
 *   Applying install-sh/1.5.4 patch ...
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Running elibtoolize in: libiconv-1.14/libcharset/
 *   Applying target-nm/2.4.2 patch ...
 *   Applying fbsd-conf/00broken-libglade patch ...
 * Running elibtoolize in: libiconv-1.14/libcharset/build-aux/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Running elibtoolize in: libiconv-1.14/preload/
 *   Applying target-nm/2.4.2 patch ...
 *   Applying fbsd-conf/00broken-libglade patch ...
>>> Source prepared.
 * Automatically patching parallel-make unfriendly install-sh.
 * Unable to apply install-sh patch.
 * If you experience errors during install phase, try with MAKEOPTS="-j1"

# cat /var/tmp/portage/dev-libs/libiconv-1.14-r1/temp/patch_install-sh.log
checking file ./build-aux/install-sh
Hunk #1 FAILED at 192.
1 out of 1 hunk FAILED
Comment 3 Naohiro Aota gentoo-dev 2014-03-04 16:23:00 UTC
*** Bug 500994 has been marked as a duplicate of this bug. ***
Comment 4 Naohiro Aota gentoo-dev 2014-03-04 16:33:34 UTC
So what's a problem with this? Warning is just a warning, not a problem.

(In reply to Yuta SATOH from comment #2)
> Created attachment 370154 [details, diff] [details, diff]
> sample patch for profiles/default/bsd/fbsd/profile.bashrc

The solution you suggested seems quite fragile for me.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 17:37:10 UTC
*-fbsd is gone.