<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>206088</bug_id>
          
          <creation_ts>2008-01-16 16:03 0000</creation_ts>
          <short_desc>[PATCH] dev-libs/newt-0.52.2/0.52.7 failed patch</short_desc>
          <delta_ts>2008-01-18 14:59:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>206302</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>natanael.copa@gmail.com</reporter>
          <assigned_to>xmerlin@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-16 16:03:45 0000</bug_when>
            <thetext>* Applying newt-0.52.2-dwchar.patch ...                                  [ ok ]
 * Applying newt-0.52.2-notcl.patch ...

 * Failed Patch: newt-0.52.2-notcl.patch !
 *  ( /usr/portage/dev-libs/newt/files/newt-0.52.2-notcl.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dev-libs/newt-0.52.2/temp/newt-0.52.2-notcl.patch-16683.out

the .out file shows its hunk #2.

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch &lt; /usr/portage/dev-libs/newt/files/newt-0.52.2-notcl.patch

===================================
patching file Makefile.in
Hunk #2 FAILED at 78.
1 out of 3 hunks FAILED -- saving rejects to file Makefile.in.rej
===================================</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-16 16:07:16 0000</bug_when>
            <thetext>same with 0.52.7. Seems to work on my amd64 so I attach the emerge --info.

nc alpine # emerge --info
Portage 2.1.3.19 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.3-r2, 2.6.22-vsgrsec-r2 i686)
=================================================================
System uname: 2.6.22-vsgrsec-r2 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Wed, 16 Jan 2008 12:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS=&quot;x86&quot;
CBUILD=&quot;i386-gentoo-linux-uclibc&quot;
CFLAGS=&quot;-march=i386 -Os -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i386-gentoo-linux-uclibc&quot;
CONFIG_PROTECT=&quot;/etc /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-Os -pipe&quot;
DISTDIR=&quot;/var/cache/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/var/cache/packages/default&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/alpine-portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X509 bitmap-fonts bri bzip2 cli cracklib dri encode expat extensions hardened iproute2 ipv6 jpeg lua mad midi mmap mudflap ncurses netboot nonfsv4 ntfs ogg openmp oss pci pcmcia pic png pppd pri readline reflection rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts type1-fonts uclibc uclibc++ udev usb userlocales wifi wordexp x86 xorg zaptel zlib&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; APACHE2_MODULES=&quot;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 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&quot; ELIBC=&quot;uclibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; MISDN_CARDS=&quot;avmfritz hfcmulti hfcpci hfcsmini hfcsusb netjetpci sedlfax w6692pci xhfc&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;dummy fbdev v4l apm ark chips cirrus cyrix epson glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng vesa vga via voodoo&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 07:16:21 0000</bug_when>
            <thetext>Created an attachment (id=141100)
newt-0.52.2.ebuild.patch

The problem is that a conditional sed is run before the patch. Can easily be solved by applying all patches first and run sed after.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 07:21:36 0000</bug_when>
            <thetext>Created an attachment (id=141101)
newt-0.52.7.ebuild.patch

same thing but for 0.52.7 ebuild. Those should be perfectly safe as they only change the order things are done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmerlin@gentoo.org</who>
            <bug_when>2008-01-18 14:59:35 0000</bug_when>
            <thetext>fixed in cvs, thanks.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>141100</attachid>
            <date>2008-01-17 07:16 0000</date>
            <desc>newt-0.52.2.ebuild.patch</desc>
            <filename>newt-0.52.2.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG5ld3QtMC41Mi4yLmVidWlsZC5vcmlnCTIwMDgtMDEtMTcgMDc6MTA6NTUgKzAwMDAKKysr
IG5ld3QtMC41Mi4yLmVidWlsZAkyMDA4LTAxLTE3IDA3OjExOjIyICswMDAwCkBAIC0yOSwxMSAr
MjksNiBAQAogCXJwbV9zcmNfdW5wYWNrCiAJY2QgIiR7U30iCiAKLQkjIGJ1ZyA3Mzg1MAotCWlm
IHVzZSBlbGliY191Y2xpYmM7IHRoZW4KLQkJc2VkIC1pIC1lICdzOi1sc2xhbmc6LWxzbGFuZyAt
bG5jdXJzZXM6ZycgJHtTfS9NYWtlZmlsZS5pbgotCWZpCi0KIAllcGF0Y2ggIiR7RklMRVNESVJ9
Ii8ke1B9LXNjcm9sbGJhcnMucGF0Y2gKIAllcGF0Y2ggIiR7RklMRVNESVJ9Ii8ke1B9LXBndXBk
b3duLWNyYXNoLnBhdGNoCiAJZXBhdGNoICIke0ZJTEVTRElSfSIvJHtQfS1zY3JlZW5zaXplLnBh
dGNoCkBAIC00Nyw2ICs0MiwxMSBAQAogCWlmICEgdXNlIHRjbDsgdGhlbgogCQllcGF0Y2ggIiR7
RklMRVNESVJ9Ii8ke1B9LW5vdGNsLnBhdGNoCiAJZmkKKworCSMgYnVnIDczODUwCisJaWYgdXNl
IGVsaWJjX3VjbGliYzsgdGhlbgorCQlzZWQgLWkgLWUgJ3M6LWxzbGFuZzotbHNsYW5nIC1sbmN1
cnNlczpnJyAke1N9L01ha2VmaWxlLmluCisJZmkKIH0KIAogc3JjX2NvbXBpbGUoKSB7Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>141101</attachid>
            <date>2008-01-17 07:21 0000</date>
            <desc>newt-0.52.7.ebuild.patch</desc>
            <filename>newt-0.52.7.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG5ld3QtMC41Mi43LmVidWlsZC5vcmlnCTIwMDgtMDEtMTcgMDc6MTg6MDEgKzAwMDAKKysr
IG5ld3QtMC41Mi43LmVidWlsZAkyMDA4LTAxLTE3IDA3OjE3OjI5ICswMDAwCkBAIC0yNiwxNiAr
MjYsMTYgQEAKIAlycG1fc3JjX3VucGFjawogCWNkICIke1N9IgogCi0JIyBidWcgNzM4NTAKLQlp
ZiB1c2UgZWxpYmNfdWNsaWJjOyB0aGVuCi0JCXNlZCAtaSAtZSAnczotbHNsYW5nOi1sc2xhbmcg
LWxuY3Vyc2VzOmcnICR7U30vTWFrZWZpbGUuaW4KLQlmaQotCiAJaWYgISB1c2UgdGNsOyB0aGVu
CiAJCWVwYXRjaCAiJHtGSUxFU0RJUn0iLyR7UH0tbm90Y2wucGF0Y2ggfHwgZGllCiAJZmkKIAog
CWVwYXRjaCAiJHtGSUxFU0RJUn0iLyR7UH0tREVTVERJUi5wYXRjaCB8fCBkaWUKKworCSMgYnVn
IDczODUwCisJaWYgdXNlIGVsaWJjX3VjbGliYzsgdGhlbgorCQlzZWQgLWkgLWUgJ3M6LWxzbGFu
ZzotbHNsYW5nIC1sbmN1cnNlczpnJyAke1N9L01ha2VmaWxlLmluCisJZmkKIH0KIAogc3JjX2Nv
bXBpbGUoKSB7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>