Skip to contentSkip to conversation

Fix regression caused my moving README

PATCH Superseded Pranith Kumar 4 participants 12 messages Jul 20, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Fix regression caused my moving README

When we renamed README we caused a bunch of regressions caused by checkpatch.pl and the windows installer which check for the presence of the README file. The ensuring discussion made it clear that having a symlink is preferable. This patch series implements that.

This works as expected and can be seen here: https://github.com/pranith/qemu/tree/markdown

Pranith Kumar (3):
Revert e4dfc5e8e("Move README to markdown")
Create README.md as a symlink to README
Update README to accomodate markdown format

 README    | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.md | 107 +-------------------------------------------------------------
 2 files changed, 106 insertions(+), 106 deletions(-)
 create mode 100644 README
 mode change 100644 => 120000 README.md
Signature · 1 line
2.9.2
#1 lore raw

PATCH 1/3 Revert e4dfc5e8e("Move README to markdown")

checkpatch.pl and other scripts fail without README. Also in dicussions it was deemed safer to create a symlink, the patch for which follows.

This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7.

---
 README.md => README | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)
 rename README.md => README (85%)
README renamed from README.md +21 -20
similarity index 85%
rename from README.md
rename to README
index 99da481..f38193f 100644
@@ -1,5 +1,5 @@
-QEMU
----
+         QEMU README
+         ===========
 
 QEMU is a generic and open source machine & userspace emulator and
 virtualizer.
@@ -31,31 +31,31 @@ version 2. For full licensing details, consult the LICENSE file.
 
 
 Building
----
+========
 
 QEMU is multi-platform software intended to be buildable on all modern
 Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
 of other UNIX targets. The simple steps to build QEMU are:
 
-	mkdir build
-	cd build
-	../configure
-	make
+  mkdir build
+  cd build
+  ../configure
+  make
 
 Complete details of the process for building and configuring QEMU for
 all supported host platforms can be found in the qemu-tech.html file.
 Additional information can also be found online via the QEMU website:
 
-	http://qemu-project.org/Hosts/Linux
-	http://qemu-project.org/Hosts/W32
+  http://qemu-project.org/Hosts/Linux
+  http://qemu-project.org/Hosts/W32
 
 
 Submitting patches
----
+==================
 
 The QEMU source code is maintained under the GIT version control system.
 
-	git clone git://git.qemu-project.org/qemu.git
+   git clone git://git.qemu-project.org/qemu.git
 
 When submitting patches, the preferred approach is to use 'git
 format-patch' and/or 'git send-email' to format & send the mail to the
@@ -66,18 +66,18 @@ guidelines set out in the HACKING and CODING_STYLE files.
 Additional information on submitting patches can be found online via
 the QEMU website
 
-	http://qemu-project.org/Contribute/SubmitAPatch
-	http://qemu-project.org/Contribute/TrivialPatches
+  http://qemu-project.org/Contribute/SubmitAPatch
+  http://qemu-project.org/Contribute/TrivialPatches
 
 
 Bug reporting
----
+=============
 
 The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
 found when running code built from QEMU git or upstream released sources
 should be reported via:
 
-	https://bugs.launchpad.net/qemu/
+  https://bugs.launchpad.net/qemu/
 
 If using QEMU via an operating system vendor pre-built binary package, it
 is preferable to report bugs to the vendor's own bug tracker first. If
@@ -86,21 +86,22 @@ reported via launchpad.
 
 For additional information on bug reporting consult:
 
-	http://qemu-project.org/Contribute/ReportABug
+  http://qemu-project.org/Contribute/ReportABug
 
 
 Contact
----
+=======
 
 The QEMU community can be contacted in a number of ways, with the two
 main methods being email and IRC
 
- - Mailing List: [email protected]
- - Archives: http://lists.nongnu.org/mailman/listinfo/qemu-devel
- - IRC: #qemu on irc.oftc.net
+ - [email protected]
+   http://lists.nongnu.org/mailman/listinfo/qemu-devel
+ - #qemu on irc.oftc.net
 
 Information on additional methods of contacting the community can be
 found online via the QEMU website:
 
   http://qemu-project.org/Contribute/StartHere
 
+-- End
Signature · 1 line
2.9.2
#4 lore raw

PATCH 3/3 Update README to accomodate markdown format

In reply to Pranith Kumar
---
 README | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)
README +21 -23
index f38193f..8d5744d 100644
@@ -1,5 +1,5 @@
-         QEMU README
-         ===========
+QEMU
+===
 
 QEMU is a generic and open source machine & userspace emulator and
 virtualizer.
@@ -31,31 +31,31 @@ version 2. For full licensing details, consult the LICENSE file.
 
 
 Building
-========
+===
 
 QEMU is multi-platform software intended to be buildable on all modern
 Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
 of other UNIX targets. The simple steps to build QEMU are:
 
-  mkdir build
-  cd build
-  ../configure
-  make
+   mkdir build
+   cd build
+   ../configure
+   make
 
 Complete details of the process for building and configuring QEMU for
 all supported host platforms can be found in the qemu-tech.html file.
 Additional information can also be found online via the QEMU website:
 
-  http://qemu-project.org/Hosts/Linux
-  http://qemu-project.org/Hosts/W32
+  - http://qemu-project.org/Hosts/Linux
+  - http://qemu-project.org/Hosts/W32
 
 
 Submitting patches
-==================
+===
 
 The QEMU source code is maintained under the GIT version control system.
 
-   git clone git://git.qemu-project.org/qemu.git
+    git clone git://git.qemu-project.org/qemu.git
 
 When submitting patches, the preferred approach is to use 'git
 format-patch' and/or 'git send-email' to format & send the mail to the
@@ -66,18 +66,18 @@ guidelines set out in the HACKING and CODING_STYLE files.
 Additional information on submitting patches can be found online via
 the QEMU website
 
-  http://qemu-project.org/Contribute/SubmitAPatch
-  http://qemu-project.org/Contribute/TrivialPatches
+  - http://qemu-project.org/Contribute/SubmitAPatch
+  - http://qemu-project.org/Contribute/TrivialPatches
 
 
 Bug reporting
-=============
+===
 
 The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
 found when running code built from QEMU git or upstream released sources
 should be reported via:
 
-  https://bugs.launchpad.net/qemu/
+  - https://bugs.launchpad.net/qemu/
 
 If using QEMU via an operating system vendor pre-built binary package, it
 is preferable to report bugs to the vendor's own bug tracker first. If
@@ -86,22 +86,20 @@ reported via launchpad.
 
 For additional information on bug reporting consult:
 
-  http://qemu-project.org/Contribute/ReportABug
+  - http://qemu-project.org/Contribute/ReportABug
 
 
 Contact
-=======
+===
 
 The QEMU community can be contacted in a number of ways, with the two
 main methods being email and IRC
 
- - [email protected]
-   http://lists.nongnu.org/mailman/listinfo/qemu-devel
- - #qemu on irc.oftc.net
+ - Mailing List: [email protected]
+ - Archives: http://lists.nongnu.org/mailman/listinfo/qemu-devel
+ - IRC: #qemu on irc.oftc.net
 
 Information on additional methods of contacting the community can be
 found online via the QEMU website:
 
-  http://qemu-project.org/Contribute/StartHere
-
--- End
+  - http://qemu-project.org/Contribute/StartHere
\ No newline at end of file
Signature · 1 line
2.9.2
#5 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

In reply to Pranith Kumar

See comments below.

Quoted 10 lines · Pranith Kumar
---
 README | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)
README +0 -0
index f38193f..8d5744d 100644

README line 2

Quoted 4 lines
README +2 -2
@@ -1,5 +1,5 @@
-         QEMU README
-         ===========
+QEMU
+===

Underlining may be longer than 3 characters. Use 4 here (looks better for raw README).

README version 2. For full licensing details, consult the LICENSE file. · line 34

Quoted 9 lines
README +1 -1
 QEMU is a generic and open source machine & userspace emulator and
 virtualizer.
@@ -31,31 +31,31 @@ version 2. For full licensing details, consult the LICENSE file.
 
 
 Building
-========
+===

No need to change here.
If you want to change it, use ------- as underline.

README version 2. For full licensing details, consult the LICENSE file. · line 43

Quoted 13 lines
README +4 -4
 QEMU is multi-platform software intended to be buildable on all modern
 Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
 of other UNIX targets. The simple steps to build QEMU are:
 
-  mkdir build
-  cd build
-  ../configure
-  make
+   mkdir build
+   cd build
+   ../configure
+   make

Indentation here is only 3, must be 4 for code blocks.

README version 2. For full licensing details, consult the LICENSE file. · line 50

Quoted 9 lines
README +2 -2
 Complete details of the process for building and configuring QEMU for
 all supported host platforms can be found in the qemu-tech.html file.
 Additional information can also be found online via the QEMU website:
 
-  http://qemu-project.org/Hosts/Linux
-  http://qemu-project.org/Hosts/W32
+  - http://qemu-project.org/Hosts/Linux
+  - http://qemu-project.org/Hosts/W32

No indentation needed here.

README version 2. For full licensing details, consult the LICENSE file. · line 54

Quoted 5 lines
README +1 -1
 Submitting patches
-==================
+===

No need to change here. Same as above.

Quoted 9 lines
README +1 -1
 The QEMU source code is maintained under the GIT version control system.
 
-   git clone git://git.qemu-project.org/qemu.git
+    git clone git://git.qemu-project.org/qemu.git
 
 When submitting patches, the preferred approach is to use 'git
 format-patch' and/or 'git send-email' to format & send the mail to the

README guidelines set out in the HACKING and CODING_STYLE files. · line 70

Quoted 7 lines
README +2 -2
@@ -66,18 +66,18 @@ guidelines set out in the HACKING and CODING_STYLE files.
 Additional information on submitting patches can be found online via
 the QEMU website
 
-  http://qemu-project.org/Contribute/SubmitAPatch
-  http://qemu-project.org/Contribute/TrivialPatches
+  - http://qemu-project.org/Contribute/SubmitAPatch
+  - http://qemu-project.org/Contribute/TrivialPatches

No indentation needed here.

README guidelines set out in the HACKING and CODING_STYLE files. · line 74

Quoted 5 lines
README +1 -1
 Bug reporting
-=============
+===

No need to change here. Same as above.

README guidelines set out in the HACKING and CODING_STYLE files. · line 80

Quoted 7 lines
README +1 -1
 The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
 found when running code built from QEMU git or upstream released sources
 should be reported via:
 
-  https://bugs.launchpad.net/qemu/
+  - https://bugs.launchpad.net/qemu/

No indentation needed.

README reported via launchpad. · line 89

Quoted 9 lines
README +1 -1
 If using QEMU via an operating system vendor pre-built binary package, it
 is preferable to report bugs to the vendor's own bug tracker first. If
@@ -86,22 +86,20 @@ reported via launchpad.
 
 For additional information on bug reporting consult:
 
-  http://qemu-project.org/Contribute/ReportABug
+  - http://qemu-project.org/Contribute/ReportABug

No indentation needed.

README reported via launchpad. · line 93

Quoted 5 lines
README +1 -1
 Contact
-=======
+===

No need to change here. Same as above.

Quoted 10 lines
README +3 -3
 The QEMU community can be contacted in a number of ways, with the two
 main methods being email and IRC
 
- - [email protected]
-   http://lists.nongnu.org/mailman/listinfo/qemu-devel
- - #qemu on irc.oftc.net
+ - Mailing List: [email protected]
+ - Archives: http://lists.nongnu.org/mailman/listinfo/qemu-devel
+ - IRC: #qemu on irc.oftc.net

README reported via launchpad.

Quoted 10 lines
README +1 -3
 
 Information on additional methods of contacting the community can be
 found online via the QEMU website:
 
-  http://qemu-project.org/Contribute/StartHere
-
--- End
+  - http://qemu-project.org/Contribute/StartHere
\ No newline at end of file
 

I'd also switch commits 2 and 3, because 2 is only valid as soon as README is in markup format.

Regards,
Stefan

Reviewed-by on v1 1/3
#2 lore raw

Re: [Qemu-devel] [PATCH 1/3] Revert e4dfc5e8e("Move README to markdown")

In reply to Pranith Kumar
Quoted 109 lines · Pranith Kumar

checkpatch.pl and other scripts fail without README. Also in dicussions it was deemed safer to create a symlink, the patch for which follows.

This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7.

---
 README.md => README | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)
 rename README.md => README (85%)
README renamed from README.md +17 -20
similarity index 85%
rename from README.md
rename to README
index 99da481..f38193f 100644
@@ -1,5 +1,5 @@
-QEMU
----
+         QEMU README
+         ===========
 
 QEMU is a generic and open source machine & userspace emulator and
 virtualizer.
@@ -31,31 +31,31 @@ version 2. For full licensing details, consult the LICENSE file.
 
 
 Building
----
+========
 
 QEMU is multi-platform software intended to be buildable on all modern
 Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
 of other UNIX targets. The simple steps to build QEMU are:
 
-	mkdir build
-	cd build
-	../configure
-	make
+  mkdir build
+  cd build
+  ../configure
+  make
 
 Complete details of the process for building and configuring QEMU for
 all supported host platforms can be found in the qemu-tech.html file.
 Additional information can also be found online via the QEMU website:
 
-	http://qemu-project.org/Hosts/Linux
-	http://qemu-project.org/Hosts/W32
+  http://qemu-project.org/Hosts/Linux
+  http://qemu-project.org/Hosts/W32
 
 
 Submitting patches
----
+==================
 
 The QEMU source code is maintained under the GIT version control system.
 
-	git clone git://git.qemu-project.org/qemu.git
+   git clone git://git.qemu-project.org/qemu.git
 
 When submitting patches, the preferred approach is to use 'git
 format-patch' and/or 'git send-email' to format & send the mail to the
@@ -66,18 +66,18 @@ guidelines set out in the HACKING and CODING_STYLE files.
 Additional information on submitting patches can be found online via
 the QEMU website
 
-	http://qemu-project.org/Contribute/SubmitAPatch
-	http://qemu-project.org/Contribute/TrivialPatches
+  http://qemu-project.org/Contribute/SubmitAPatch
+  http://qemu-project.org/Contribute/TrivialPatches
 
 
 Bug reporting
----
+=============
 
 The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
 found when running code built from QEMU git or upstream released sources
 should be reported via:
 
-	https://bugs.launchpad.net/qemu/
+  https://bugs.launchpad.net/qemu/
 
 If using QEMU via an operating system vendor pre-built binary package, it
 is preferable to report bugs to the vendor's own bug tracker first. If
@@ -86,21 +86,22 @@ reported via launchpad.
 
 For additional information on bug reporting consult:
 
-	http://qemu-project.org/Contribute/ReportABug
+  http://qemu-project.org/Contribute/ReportABug
 
 
 Contact
----
+=======
 
 The QEMU community can be contacted in a number of ways, with the two
 main methods being email and IRC
 
- - Mailing List: [email protected]
- - Archives: http://lists.nongnu.org/mailman/listinfo/qemu-devel
- - IRC: #qemu on irc.oftc.net

README reported via launchpad. · line 107

Quoted 10 lines
README renamed from README.md +4 -0
+ - [email protected]
+   http://lists.nongnu.org/mailman/listinfo/qemu-devel
+ - #qemu on irc.oftc.net
 
 Information on additional methods of contacting the community can be
 found online via the QEMU website:
 
   http://qemu-project.org/Contribute/StartHere
 
+-- End

Peter, I suggest to apply this first patch before tagging the next release version. This will fix the current regression.

Kind regards,
Stefan

#6 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

In reply to Stefan Weil

Thank you for reviewing.

Quoted 1 line · Stefan Weil

See comments below.

<snip>

Quoted 4 lines

I'd also switch commits 2 and 3, because 2 is only valid as soon as README is in markup format.

OK, I will update patches 2 and 3 and resend a v2.

Thanks!

Signature · 1 line
Pranith
#7 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

In reply to Pranith Kumar
Quoted 5 lines · Pranith Kumar
---
 README | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)

In addition to Stefan's comments,

README reported via launchpad. · line 105

Quoted 8 lines

Information on additional methods of contacting the community can be found online via the QEMU website:

README +1 -3
-  http://qemu-project.org/Contribute/StartHere
-
--- End
+  - http://qemu-project.org/Contribute/StartHere
\ No newline at end of file

Why no ending newline?

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#8 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

Quoted 13 lines · Eric Blake
Quoted 5 lines · Pranith Kumar
---
 README | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)

In addition to Stefan's comments,

Quoted 3 lines

Information on additional methods of contacting the community can be found online via the QEMU website:

Quoted 8 lines

README reported via launchpad. · line 105

Quoted 5 lines
README +1 -3
-  http://qemu-project.org/Contribute/StartHere
-
--- End
+  - http://qemu-project.org/Contribute/StartHere
\ No newline at end of file

Why no ending newline?

Hmm, the original README did not have an explicit new line at end of file. I am not sure if it is really necessary though. Why do we need one?

Signature · 1 line
Pranith
#9 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

Quoted 9 lines · Pranith Kumar
Quoted 5 lines
Quoted 2 lines

+ - http://qemu-project.org/Contribute/StartHere
\ No newline at end of file

Why no ending newline?

Hmm, the original README did not have an explicit new line at end of file. I am not sure if it is really necessary though. Why do we need one?

Technically, ALL text files should have an ending newline. POSIX says that a file without an ending newline is not a text file, at which point programs like sed and grep are allowed to do rather interesting things (such as refuse to process the file because it is binary).

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#10 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

In reply to Pranith Kumar
Quoted 2 lines · Pranith Kumar

Hmm, the original README did not have an explicit new line at end of file.

Yes it did:

$ git show 70f87e0f0a:README | tail -c 1 | od -An -a
  nl

thanks
-- PMM

#11 lore raw

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

Quoted 8 lines · Peter Maydell
Quoted 2 lines · Pranith Kumar

Hmm, the original README did not have an explicit new line at end of file.

Yes it did:

$ git show 70f87e0f0a:README | tail -c 1 | od -An -a
  nl

OK.

The v2 version of the patch I sent earlier has this fixed. I thought that Eric was commenting on that version but he was commenting on v1.

Thanks,

Signature · 1 line
Pranith