From: Sergey Vlasov <vsu@mivlgu.murom.ru> To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] как сделать Patch Date: Wed Jul 4 17:41:15 2001 Message-ID: <20010704135353.A835B829FA@mail.mivlgu.murom.ru> (raw) In-Reply-To: <20010704154107.627e1089.vserge@menatepspb.msk.ru> On Wed, 4 Jul 2001 15:41:07 +0400 Volkov Serge <vserge@menatepspb.msk.ru> wrote: > On Wed, 4 Jul 2001 15:25:24 +0400 > Aleksey Novodvorsky <aen@altlinux.ru> wrote: > > > On Wed, 4 Jul 2001 15:12:12 +0400 > > Volkov Serge <vserge@menatepspb.msk.ru> wrote: > > > > > доброго времени суток > > > > > > Подскажите пожалуйста как правильно сделать patch > > > > > > есть дерево исходников оригинальных, есть исправленные нужено > > > сделать патч > > > > > diff -urN tree.orig tree > tree.patch > > > > N -- в том случае, если есть новые файлы > > я попробовал cделать так diff -r -U 3 orig/MigrationTools-38/ MigrationTools-38/ > my.patch > > но в заголовке файла получил такое > diff -r -U 3 orig/MigrationTools-38/migrate_all_netinfo_offline.sh MigrationTool > s-38/migrate_all_netinfo_offline.sh > --- orig/MigrationTools-38/migrate_all_netinfo_offline.sh Thu Jul 16 15:51 > :12 1998 > +++ MigrationTools-38/migrate_all_netinfo_offline.sh Wed Jul 4 15:08:50 2001 > > И возникло несколько вопросов > > 1-ая строка не нужна ! > 2-ая сторка не такая как у тех патчей, которые все прикладывают > > например > --- MigrationTools-34/migrate_all_netinfo_offline.sh.instdir Thu Jul 16 07:51 > :12 1998 > +++ MigrationTools-34/migrate_all_netinfo_offline.sh Fri Jan 12 16:55:05 2001 > > как такого добиться? А зачем? patch это и так прекрасно поймет. Путь к исходному файлу (после ---) он все равно не использует, да и строку с diff молча пропустит. А второй вариант похож на вывод скрипта gendiff, с ним нужно обращаться несколько по-другому: перед правкой файла создать его копию, добавив к имени суффикс, нигде не встречающийся в дереве, а потом gendiff <dir> <suffix>. Или gendiff <dir> <suffix> <patch-name> - тогда результат сразу ляжет в /usr/src/RPM/SOURCES/<dir>-<patch-name>.patch. Это иногда удобнее при мелких правках.
next prev parent reply other threads:[~2001-07-04 17:41 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-07-04 15:01 Volkov Serge 2001-07-04 15:07 ` Aleksey Novodvorsky 2001-07-04 15:30 ` Volkov Serge 2001-07-04 17:41 ` Sergey Vlasov [this message] 2001-07-04 17:59 ` Volkov Serge 2001-07-04 15:07 ` Konstantin Volckov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010704135353.A835B829FA@mail.mivlgu.murom.ru \ --to=vsu@mivlgu.murom.ru \ --cc=mandrake-russian@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git