On Mon, Mar 6, 2017 at 12:43 AM, Dmitry V. Levin <l...@altlinux.org> wrote:
> On Sun, Mar 05, 2017 at 06:27:49PM +0530, Abhishek Tiwari wrote:
>> On Sun, Mar 5, 2017 at 8:48 AM, Dmitry V. Levin wrote:
>> > On Sun, Mar 05, 2017 at 01:54:33AM +0530, Abhishek Tiwari wrote:
>> >> On Sat, Mar 4, 2017 at 5:41 PM, Abhishek Tiwari wrote:
>> >> > Good evening everyone,
>> >> > I am Abhishek Tiwari pursuing M.Tech IIT Kharagpur. I am looking
>> >> > forward to contribute to strace Project Idea -> Netlink socket
>> >> > parsers.
>> >> >
>> >> > Thank you.
>> >>
>> >> I have made a change in INSTALL file (there the bootstrap script was
>> >> not mentioned to be run in installation step). Please review the
>> >> patch.
>> >
>> > This INSTALL file comes directly from GNU Automake, it's intended
>> > for those who build the package from tarball.
>> >
>> > To build strace "from git", one has to run ./bootstrap script first.
>> > This is mentioned in README-hacking, but not in INSTALL file,
>> > which is somewhat confusing.
>> >
>> > Perhaps it would be better to create a separate file with instructions how
>> > to build strace "from git" and reference INSTALL from there.
>> >
>> > Alternatively, we can modify INSTALL file, but the new wording shouldn't
>> > be confusing to those who build strace from tarball.
>> >
>> >> Is sending patch preferred over sending pull request or I can directly
>> >> send pull requests from github?
>> >
>> > We prefer patches sent to this mailing list.
>>
>> Thank you ldv for your response
>> I have made changes to README.md file so that instruction would be
>> visible as anyone visits the repository on Github.
>> Below is patch attached for the same.
>
> Adding a reference in README.md file is a good idea.
> At the same time, mentioning ./bootstrap is not enough.
> For example, README-hacking that mentions ./bootstrap also describes
> its requirements.
>
> I think it would be better if all this "how to build from git" information
> was moved into a separate file, which could be referenced by README.md and
> README-hacking.
>
> See my technical comments below.
>
>> --- a/README.md
>> +++ b/README.md
>> @@ -7,3 +7,16 @@ See the file
>> [NEWS](https://raw.githubusercontent.com/strace/strace/master/NEWS)
>> Please send bug reports and enhancements to [the strace mailing
>> list](https://lists.sourceforge.net/lists/listinfo/strace-devel).
>>
>> [](https://travis-ci.org/strace/strace)
>> [](https://codecov.io/github/strace/strace?branch=master)
>> +
>> +INSTALLATION GUIDELINES
>> +========================
>> +
>> +1. Install using tarball
>> +--------------------------
>> +
>> +To install `strace` using tarball run GNU Automake command and follow
>> instructions given in `INSTALL` file.
>> +
>> +2. Build using git
>> +---------------------
>> +
>> +To build strace source code downloaded from git repository, first run
>> `./bootstrap` script and then follow the guidelines given in `INSTALL` file.
>
> 1. This patch has whitespace issues and therefore doesn't apply:
>
> Applying: Updated README.md file for building strace source code from git
> version
> .git/rebase-apply/patch:14: trailing whitespace.
> INSTALLATION GUIDELINES
> .git/rebase-apply/patch:22: trailing whitespace.
> 2. Build using git
> fatal: 2 lines add whitespace errors.
>
> 2. The reference to Automake is wrong, a user is not expected to run any
> automake commands just to build strace.
>
> 3. Assuming that INSTALL-git exists, the whole change could be reduced
> to just a reference and placed before "send bug reports", e.g.
>
> Please read the file [INSTALL-git](INSTALL-git) for installation instructions.
Sorry for making irrelevant errors. Made changes as suggested.
I was going through the mail archives to get understanding of code base.
In the mail archive for extending -e trace=class, the following code
section is referred,
Through the init() --> qualify()
for (p = strtok(copy, ","); p; p = strtok(NULL, ",")) {
int n;
if (opt->bitflag == QUAL_TRACE && (n = lookup_class(p)) > 0) {
unsigned pers;
for (pers = 0; pers < SUPPORTED_PERSONALITIES; pers++) {
for (i = 0; i < nsyscall_vec[pers]; i++)
if (sysent_vec[pers][i].sys_flags & n)
qualify_one(i, opt->bitflag, not, pers);
}
continue;
}
I have gone through strace.c file where following sequence of calls are made
main()->init()->qualify()
In qualify.c the given code section is not present, so how a new class
is registered?
From d5101613d630e1adcf0b21ba3eafe2304dd31c1b Mon Sep 17 00:00:00 2001
From: Abhishek Tiwari <erabhishektiwar...@gmail.com>
Date: Mon, 6 Mar 2017 02:29:00 +0530
Subject: [PATCH v3] Updated Installation Guide
---
INSTALL-git.md | 8 ++++++++
README-hacking | 6 +-----
README.md | 2 ++
3 files changed, 11 insertions(+), 5 deletions(-)
create mode 100644 INSTALL-git.md
diff --git a/INSTALL-git.md b/INSTALL-git.md
new file mode 100644
index 0000000..fee14d1
--- /dev/null
+++ b/INSTALL-git.md
@@ -0,0 +1,8 @@
+Install Strace from git
+=======================
+If you use the GIT version of strace there will be some files missing
+that you need to build strace. These files are generated by tools from
+the GNU Autoconf and Automake packages.
+
+Note: rather than running `autoreconf` directly, use the `./bootstrap` script
+and follow the instructions given in given in [INSTALL](INSTALL) file for further installation.
diff --git a/README-hacking b/README-hacking
index 16d12c0..ff8ce12 100644
--- a/README-hacking
+++ b/README-hacking
@@ -1,10 +1,6 @@
Requirements
============
-If you use the GIT version of strace there will be some files missing
-that you need to build strace. These files are generated by tools from
-the GNU Autoconf and Automake packages.
-
-Note: rather than run `autoreconf' directly, use the `./bootstrap' script.
+If you use the GIT version of strace, please refer to INSTALL-git.md file.
No more ChangeLog file
diff --git a/README.md b/README.md
index 35663a1..14796b3 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,8 @@ strace is released under a Berkeley-style license at the request of Paul Kranenb
See the file [NEWS](https://raw.githubusercontent.com/strace/strace/master/NEWS) for information on what has changed in recent versions.
+Please read the file [INSTALL-git](INSTALL-git) for installation instructions.
+
Please send bug reports and enhancements to [the strace mailing list](https://lists.sourceforge.net/lists/listinfo/strace-devel).
[](https://travis-ci.org/strace/strace) [](https://codecov.io/github/strace/strace?branch=master)
--
2.7.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel