First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 176337
Alias:
Product:
Component:
Status: REOPENED
Resolution:
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Fabian Groffen <grobian@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
patch fixes the second issue patch Stefan Schweizer 2007-04-28 18:28 0000 1.56 KB Details | Diff
patch fixes the second issue patch Stefan Schweizer 2007-04-28 20:24 0000 1.57 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 176337 depends on: Show dependency tree
Show dependency graph
Bug 176337 blocks: 136048
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)









View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-04-28 10:57 0000
I'm sorry to say so, but echangelog's svn support seems to be broken:

[tefnut:portage/sys-apps/portage] % echangelog "New snapshot, two leap jumps
forward"
Can't read portage-2.1.23.6370.ebuild to update copyright year
--- ChangeLog   2007-04-14 10:49:19 +0200
+++ ChangeLog.new       2007-04-28 12:45:04 +0200
@@ -2,6 +2,10 @@
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $

+  28 Apr 2007; Fabian Groffen <grobian@gentoo.org>
+  -portage-2.1.23.6370.ebuild, +portage-2.1.25.6450.ebuild:
+  New snapshot, two leap jumps forward
+
 *portage-2.1.23.6400 (14 Apr 2007)

   14 Apr 2007; Fabian Groffen <grobian@gentoo.org>
svn: warning: 'ChangeLog' is already under version control
[tefnut:portage/sys-apps/portage] % 

As you can see, there are two issues here:
1) it doesn't add a new version header, and
2) it tries to add ChangeLog


Reproducible: Always

Steps to Reproduce:
1. emerge =gentoolkit-dev-0.2.6.5
2. use echangelog on an SVN repo
3.

Actual Results:  
crap as described above

Expected Results:  
To work like my own SVN patch.  Not as elegant as the one included maybe, but
works fine.

emergeing =gentoolkit-dev-0.2.6.4 with my own patch applied
(http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/app-portage/gentoolkit-dev/files/gentoolkit-dev-0.2.6.1-svn-echangelog.patch)
I get for the same command (with a reverted ChangeLog) the following output:

[tefnut:portage/sys-apps/portage] % echangelog "New snapshot, two leap jumps
forward"
--- ChangeLog   2007-04-28 12:54:10 +0200
+++ ChangeLog.new       2007-04-28 12:54:24 +0200
@@ -2,6 +2,12 @@
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $

+*portage-2.1.25.6450 (28 Apr 2007)
+
+  28 Apr 2007; Fabian Groffen <grobian@gentoo.org>
+  -portage-2.1.23.6370.ebuild, +portage-2.1.25.6450.ebuild:
+  New snapshot, two leap jumps forward
+
 *portage-2.1.23.6400 (14 Apr 2007)

   14 Apr 2007; Fabian Groffen <grobian@gentoo.org>
[tefnut:portage/sys-apps/portage] %

------- Comment #1 From Stefan Schweizer 2007-04-28 18:28:24 0000 -------
Created an attachment (id=117567) [edit]
fixes the second issue

I don't understand the first issue enough. Need to debug more.

------- Comment #2 From Stefan Schweizer 2007-04-28 20:24:44 0000 -------
Created an attachment (id=117581) [edit]
fixes the second issue

small bug correction ..

------- Comment #3 From Paul Varner 2007-05-11 05:19:04 0000 -------
$ svn commit -m "Add patch from genstef to fix issues from Bug 176337"
Sending        echangelog/echangelog
Transmitting file data .
Committed revision 400.

------- Comment #4 From Stefan Schweizer 2007-05-11 11:00:43 0000 -------
ok, fixes the other issues:


$ svn diff .
Index: echangelog
===================================================================
--- echangelog  (Revision 401)
+++ echangelog  (Arbeitskopie)
@@ -410,6 +410,7 @@
 # copyright lines on ebuilds that haven't changed.  I verified this with an IP
 # lawyer.
 for my $e (grep /\.ebuild$/, @files) {
+  if (-s $e) {
     my ($etext, $netext);
     open E, "<$e" or warn("Can't read $e to update copyright year\n"), next;
     { local $/ = undef; $etext = <E>; }
@@ -427,6 +428,7 @@
     # Move things around and show the diff
     system "diff -U 0 $e $e.new";
     rename "$e.new", $e or warn("Can't rename $e.new: $!\n");
+  }
 }

 # Move things around and show the ChangeLog diff
@@ -442,7 +444,7 @@
     }
 } elsif ($vcs eq "svn") {
     if (open F, ".svn/entries") {
-        system("svn add ChangeLog") unless (scalar grep /^ChangeLog$/, <F>);
+        system("svn add ChangeLog") unless (scalar grep /ChangeLog/, <F>);
     }
 } else {
     system("$vcs{$vcs}{add} ChangeLog 2>&1 >> /dev/null");

------- Comment #5 From Paul Varner 2007-05-22 21:36:33 0000 -------
gentoolkit-dev-0.2.6.6 will be in the tree within a couple of hours.  I'm
waiting for the updated package.mask to propagate before making the commit.

------- Comment #6 From Paul Varner 2007-05-23 01:38:33 0000 -------
Fixed in gentoolkit-0.2.6.6

------- Comment #7 From Fabian Groffen 2007-08-10 17:29:43 0000 -------
well, I waited a long time to try this, basically because I have no time to
debug this kind of stuff.  Anyway, it is STILL broken.

[ra:portage/sys-apps/portage] % svn rm -f portage-2.2.00.7521.ebuild
D         portage-2.2.00.7521.ebuild
[ra:portage/sys-apps/portage] % svn add portage-2.2.00.7586.ebuild
A         portage-2.2.00.7586.ebuild
[ra:portage/sys-apps/portage] % echangelog "New snapshot which solves creating
double prefixes"
--- ChangeLog   2007-08-04 23:43:04.990704552 +0200
+++ ChangeLog.new       2007-08-10 19:21:54.865769375 +0200
@@ -2,6 +2,10 @@
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $

+  10 Aug 2007; Fabian Groffen <grobian@gentoo.org>
+  -portage-2.2.00.7521.ebuild, +portage-2.2.00.7586.ebuild:
+  New snapshot which solves creating double prefixes
+
 *portage-2.2.00.7571 (04 Aug 2007)

   04 Aug 2007; Fabian Groffen <grobian@gentoo.org>
[ra:portage/sys-apps/portage] % emerge -av gentoolkit-dev

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-portage/gentoolkit-dev-0.2.6.6  0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] n

Quitting.



Again: my own patch worked and always has worked Flawlessly.  Masking 0.2.6.6
again here.

------- Comment #8 From Michael A. Smith 2008-02-29 21:33:15 0000 -------
(In reply to comment #7)
> well, I waited a long time to try this, basically because I have no time to
> debug this kind of stuff.  Anyway, it is STILL broken.

<snip>

> Again: my own patch worked and always has worked Flawlessly.  Masking 0.2.6.6
> again here.

I don't actually see what's wrong with the output demonstrated in comment #7.

------- Comment #9 From Fabian Groffen 2008-02-29 22:05:02 0000 -------
it doesn't add a new entry for the new portage version added.

First Last Prev Next    No search results available      Search page      Enter new bug