Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587784 - dev-dotnet/nuget-2.8.7 fails patching
Summary: dev-dotnet/nuget-2.8.7 fails patching
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 09:24 UTC by gletonai
Modified: 2016-07-08 20:01 UTC (History)
4 users (show)

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


Attachments
patch log (add-keyfile-option-to-csproj.patch.out,3.67 KB, text/plain)
2016-07-02 09:24 UTC, gletonai
Details
Patch which is adjusted to the look of the new xml in Core.csproj (add-keyfile-option-to-csproj-2.8.7.patch,618 bytes, patch)
2016-07-04 17:02 UTC, J.O. Aho
Details | Diff
add-keyfile-option-to-csproj.patch (add-keyfile-option-to-csproj.patch,887 bytes, patch)
2016-07-06 18:49 UTC, gletonai
Details | Diff
/var/tmp/portage/dev-dotnet/nuget-2.8.7/temp/add-keyfile-option-to-csproj.patch.out (add-keyfile-option-to-csproj.patch.out,3.49 KB, text/plain)
2016-07-08 12:10 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gletonai 2016-07-02 09:24:50 UTC
Created attachment 439418 [details]
patch log

***************************
 Error while updating world (monodevelop pulls it)
***************************

 * Failed Patch: add-keyfile-option-to-csproj.patch !
 *  ( /usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch )
...

***************************
 Info
***************************

emerge --info:

Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.1.27-gentoo x86_64)
=================================================================
System uname: Linux-4.1.27-gentoo-x86_64-AMD_FX-tm-6100_Six-Core_Processor-with-gentoo-2.2
KiB Mem:     8024340 total,   3746184 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 02 Jul 2016 08:22:31 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 0

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 1

roslin
    location: /var/lib/layman/roslin
    masters: gentoo
    priority: 2

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 3

cg
    location: /var/lib/layman/cg
    masters: gentoo
    priority: 4

bakusaiga
    location: /usr/local/portage
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=6 --load-average=6"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup compress-build-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ ftp://de-mirror.org/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l6"
PKGDIR="/usr/portage/packages"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="10bit 12bit 3d 7zip X X509 a52 aac aacplus aacs acl acpi action_modeswitch additions adns aes aften aio airplay all_sfx alsa amd64 amr amrenc android androiddump apache2 apidoc apng aqsis ass audiofile aura autoshutdown autotools autotrace avahi avs avx bash-completion bazaar berkdb bittorrent blender bluetooth bluray boost bs2b bzip2 cairo caps cdda cddb cdinstall cdio cdr cdsound celt cg cgroups charmap chm chroot cilk city cjk clamdtop clang classbrowser cli client clockdiff clucene cmake coinmp coinor collada color-management colord colorio compressed-lumas conntrack consolekit context contrast corefonts cracklib creds crypt cryptokit cryptsetup css cuda cue cups curl custom-cflags custom-cpuopts custom-optimization cvs cxx cycles dane dap dbus debugger declarative demosaic detex device-mapper dhcp dhcp-tools dia dirac djvu dmraid doc docbook doomsday dos dot dpi dri drm dts dv dvd dvi2tty dvipdfm ebook eclipse ecwj2k edd editor egl eigen emf emovix enchant encode equalizer ethernet evdev examples exif expat extensions extra extra-tools extras faac farstream fax fbcon fdk ffmpeg ffmpegsource fftw fgpanel filecaps fits flac flash flite fltk fluidsynth fma fma4 fontconfig fortran fpx freedoom freetds frei0r fribidi ftp fullscreen fuse g3dvl gadu games gbm gcdmaster gd gdbm geo geoclue geoip geolocation geos gflags gfortran gif gimp git gl glew glib glsl gltf glut gme gml gmp gnome-keyring gnome-online-accounts gnumeric gnuplot gold google gost gpg gphoto2 gpm gps gpsd gpu graphics graphite graphviz groupwise grp grub gs gsf gsl gsm gstreamer gtk gtk2 gtk3 gtkstyle gudev gui hddtemp hdf hdf5 hdri heretic hexen hidpi highlight hog hpcups hpn html http http2 httpd hwdb i18n ibus iconv icoutils icu id3tag ide idn iec61883 ieee1394 image-imlib image-io imagemagick imaging imap imlib import-filter indi infinality inkjar inotify input_control input_testpicture input_uvc int-quality iodbc ipv6 jadetex jai java javafx javascript jbig jce jemalloc jingle jit jmf joystick jpeg jpeg2k json justify kate kde kdenlive kernel keymap kms konsole kpathsea kvm ladspa lame lapack lastfm latex lcms ldap ldns legacy-systray lensfun libass libcaca libcanberra libffi libguess libkms libmpeg2 libmpv libmysqlclient libnotify libobjc2 libopts libsamplerate libsecret libsoxr libtiger libv4l libv4l2 libxml lightning lights live lm_sensors localstorage lqr ls-dos lua luajit luatex lyx lzma lzo mad marble matplotlib matroska md5sum mdnsresponder-compat meanwhile mediawiki melt mem-scramble memmap mencoder mercurial messages metadata-analysis-api metric midi mikmod minizip mixer mjpeg mmap mms mmx mmxext mng mobi mod models modemmanager modern-top modplug modules mongodb mono motif mount mount-locking mozdom mozilla mp3 mp4 mpeg mpeg2 mpfi mpg123 mpi mpris msn mtp mudflap multilib multimedia musepack music musicbrainz mvl mysql mysqli native-exceptions natspec ncat ncurses ndiff netapi netcdf network networkmanager nfs nfsdcld nfsv41 nls notebook nping nptl nptlonly nsplugin ntfsdecrypt ntfsprogs ntp nut nvcontrol nvidia nvtt objc objc++ objc-gc octave odbc odbcmanual odf odk offensive ogg ogm ogre oil ois okteta omxil oom openal opencl opencv openexr opengl openimageio openinventor openmax openmp openssl optimization opus orientation oscar osgapps otr output_autofocus output_file output_rtsp output_udp pam pango pbs pcap pcapnav pci pcntl pcre pcre16 pdf pdfannotextractor pdfimport pdo perl pgo pipelight player plotutils plugins png pnm policykit popcnt portaudio postproc postscript ppds pppd printsupport private-headers profiler projectm proprietary-codecs pstricks pulseaudio python pyx q32 q64 q8 qalculate qmake qml qpak qrcode qt3support qt4 qt5 qthelp quesoglc quicktime quvi rar raw readline real realtime redcode reencrypt rendering resources rfc3779 rle romio rtaudio rtc rtf rtmp rtsp rubberband s3tc samba sasl savedconfig sbc sbsms scanner schroedinger science scim script scrobbler sctp sdk sdl sdl-image sdl-sound sdlgfx seccomp secure-delete sendto server session shared-dricore shared-glapi shine sid sidxindex sift silc simage skype slideshow slp sm_30 sm_35 smi smp smpeg sms snappy sndfile snmp soap sockets sound soundtouch sox spatialite speex spell spice sql sqlite srt sse sse2 sse3 sse4 sse4_1 sse4_2 sse4a ssh ssl ssse3 stars startup-notification static-ppds steamgames_defenders_quest steamgames_dwarfs steamgames_hammerwatch steamgames_journey_down steamgames_painkiller steamgames_shatter steamgames_source_engine steamgames_tf2 steamgames_trine2 steamgames_unwritten_tales steamruntime streaming strong-optimization subversion suid svc svg swfdec sysfs syslog system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libCg system-libevent system-libvpx system-sqlite system-wine szip taglib tahoma tbb tcl tcmalloc tcpd tcpreplay telepathy templates terminal testprograms tex4ht textures tfshark tga theora threads thumbnail tiff timezone tinfo tk tools tracepath traceroute track-src-odirect tremor truetype tsmuxer twolame uchardet udev udisks uml unicode unlock-notify unwind upcall upnp upower urandom usb utils utp uuid uvm v4l vaapi vala valgrind vamp vc vcd vcdx vdpau vf-dlopen vhost-net video views virt-network virtualbox vlc vnc vorbis vpx wad wavpack wayland wcs wddx webchannel webgl webkit webkit2 webm webp webserver widevine widgets wifi winbind windows-games winpopup wireless wma-fixed wmf www wxwidgets x264 x265 xa xanim xattr xcb xcomposite xdg xetex xfce xft xkb xml xmlreader xmlrpc xmlwriter xmp xop xorg xosd xplanet xpm xps xrandr xscreensaver xslt xv xvfb xvid xvidmode xvmc yahoo yuv4mpeg zenmap zephyr zip zlib zvbi" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbd authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir env expires ext_filter file_cache filter headers http2 include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="author braindump flow karbon kexi krita plan sheets stage words gemini" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="nss" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" L10N="en hu hr de ko sr sr-Latn ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport scripting-javascript wiki-publisher scripting-beanshell" LINGUAS="en hu hr de ko sr sr@latin ru" NETBEANS_MODULES="apisupport java javafx profiler websvccommon javacard mobility php webcommon cnd dlight" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev modesetting" XFCE_PLUGINS="logout menu brightness clock trash" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Juergen Rose 2016-07-02 10:05:55 UTC
I have the same issue.
Comment 2 mercuriete 2016-07-02 14:21:33 UTC
I have the same issue:


 * Failed Patch: add-keyfile-option-to-csproj.patch !
 *  ( /usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dev-dotnet/nuget-2.8.7/temp/add-keyfile-option-to-csproj.patch.out
 * ERROR: dev-dotnet/nuget-2.8.7::gentoo failed (prepare phase):
 *   Failed Patch: add-keyfile-option-to-csproj.patch!
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_prepare
 *   environment, line 2182:  Called epatch '/usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch'
 *   environment, line  813:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=dev-dotnet/nuget-2.8.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-dotnet/nuget-2.8.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-dotnet/nuget-2.8.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-dotnet/nuget-2.8.7/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-dotnet/nuget-2.8.7/work/nuget-Release-2.8.7-MonoDevelop'
 * S: '/var/tmp/portage/dev-dotnet/nuget-2.8.7/work/nuget-Release-2.8.7-MonoDevelop'


-----------------------------


 cat /var/tmp/portage/dev-dotnet/nuget-2.8.7/temp/add-keyfile-option-to-csproj.patch.out

 
***** add-keyfile-option-to-csproj.patch *****
PWD: /var/tmp/portage/dev-dotnet/nuget-2.8.7/work/nuget-Release-2.8.7-MonoDevelop
PATCH TOOL: patch -> /usr/bin/patch
VERSION INFO:
GNU patch 2.7.5
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Larry Wall and Paul Eggert

==============================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch  --dry-run -f < '/usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch'

==============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj     2014-10-29 13:28:28.000000000 +0300
|+++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj  2015-03-06 10:55:17.783762949 +0300
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
==============================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  --dry-run -f < '/usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch'

==============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj     2014-10-29 13:28:28.000000000 +0300
|+++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj  2015-03-06 10:55:17.783762949 +0300
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
==============================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  --dry-run -f < '/usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch'

==============================================
checking file src/Core/Core.csproj
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED

patch program exited with status 1
==============================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch  --dry-run -f < '/usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch'

==============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj     2014-10-29 13:28:28.000000000 +0300
|+++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj  2015-03-06 10:55:17.783762949 +0300
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
==============================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch  --dry-run -f < '/usr/portage/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch'

==============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj     2014-10-29 13:28:28.000000000 +0300
|+++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj  2015-03-06 10:55:17.783762949 +0300
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
Comment 3 J.O. Aho 2016-07-04 17:00:42 UTC
I run into this issues (and with the monodevelop 6, haven't had time to fix it yet) too and it breaks with the add-keyfile-option-to-csproj.patch as the order of elements in the xml has changed.

I did make my own patch called add-keyfile-option-to-csproj-2.8.7.patch which I used to build this on my machine.
Comment 4 J.O. Aho 2016-07-04 17:02:46 UTC
Created attachment 439704 [details, diff]
Patch which is adjusted to the look of the new  xml in Core.csproj
Comment 5 Sumit Khanna 2016-07-06 13:08:29 UTC
I had this same issue. Confirmed J.O's patch applied cleanly and fixed the build.
Comment 6 gletonai 2016-07-06 18:49:17 UTC
Created attachment 439914 [details, diff]
add-keyfile-option-to-csproj.patch

drop in patch that works
Comment 7 Cynede (RETIRED) gentoo-dev 2016-07-07 05:25:00 UTC
thanks, I will take a look today
Comment 8 Juergen Rose 2016-07-08 12:09:41 UTC
(In reply to J.O. Aho from comment #4)
> Created attachment 439704 [details, diff] [details, diff]
> Patch which is adjusted to the look of the new  xml in Core.csproj

The patch does not work for me, I get the attached add-keyfile-option-to-csproj.patch.out .
Comment 9 Juergen Rose 2016-07-08 12:10:48 UTC
Created attachment 440040 [details]
/var/tmp/portage/dev-dotnet/nuget-2.8.7/temp/add-keyfile-option-to-csproj.patch.out
Comment 10 Juergen Rose 2016-07-08 12:14:51 UTC
(In reply to gletonai from comment #6)
> Created attachment 439914 [details, diff] [details, diff]
> add-keyfile-option-to-csproj.patch
> 
> drop in patch that works

This patch worked for me.
Comment 11 Cynede (RETIRED) gentoo-dev 2016-07-08 17:53:00 UTC
I've applied modified patch, is there still being something?
Comment 12 mercuriete 2016-07-08 20:01:31 UTC
Thank you guys.

You are the best. keep going!

:)