Re: [Rpm-maint] [rpm-software-management/rpm] Add macros for default flags of file extractors. (#557)

2020-01-21 Thread Andreas Scherer
I've transfered ownership of `debbuild` after running out of ideas for that tool, so `rpmbuild` is of even less interest to me. Feel free to close this PR or elaborate on it as you deem appropriate. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

2019-12-03 Thread Andreas Scherer
Closed #953. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/953#event-2849137933___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

2019-12-02 Thread Andreas Scherer
It's easier (and less error-prone) to change incompatible behavior [in a single spot](https://github.com/ascherer/cwebbin/blob/master/cwebbin.spec#L54), e.g., when switching from GNU/Linux to macOS. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

2019-11-27 Thread Andreas Scherer
I've been using the double-underscore names in [my specfiles](https://gist.github.com/ascherer/474764be05e3d8031f0e1cf375b61b4c) for years, and secondary versions like `%{__ln_s}` and `%{__mkdir_p}` always came quite handy. -- You are receiving this because you are subscribed to this thread.

[Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

2019-11-27 Thread Andreas Scherer
BSDs sed _requires_ an `extension` for the `-i` option, even an empty (`-i `) extension to suppress creation of a backup for in-place editing, while GNU seds `-i` defaults to no backup without an express `suffix`. With `%{__sed_i}` it should be easier to write portable specfiles for both

[Rpm-maint] [rpm-software-management/rpm] Fix double point. (#634)

2019-02-19 Thread Andreas Scherer
You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/634 -- Commit Summary -- * Fix double point. -- File Changes -- M doc/rpmbuild.8 (6) -- Patch Links -- https://github.com/rpm-software-management/rpm/pull/634.patch

Re: [Rpm-maint] [rpm-software-management/rpm] Fix issue #608. (#609)

2018-12-10 Thread Andreas Scherer
@ascherer pushed 1 commit. 17bbc985df9bb538dcb7e6aea8316a4f9f0dd0fe Simplify Lua backwards compatibility. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Fix issue #608. (#609)

2018-12-10 Thread Andreas Scherer
Re-establish string `"_LOADED"` for pre-5.3.4 Lua. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/609 -- Commit Summary -- * Fix issue #608. -- File Changes -- M lib/rpmliblua.c (6) -- Patch Links --

Re: [Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
It seems [you're at it](https://github.com/rpm-software-management/rpm/pull/169). KYFC! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
Even trying to install `lua5.3` and associated dev stuff in parallel fails, because Ubutun 16.04 only provides Lua 5.3.1 in its standard repos. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
It seems that `"_LOADED"` was replaced by macro `LUA_LOADED_TABLE` in [lua 5.3.4](https://github.com/lua/lua/commit/b2aa2ba046502bdcdfa3de4af898810667c1843a). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
f13de84bab9cd5b1be30c44002285743c8c3f7a9 is the first bad commit; see [the associated log files](https://gist.github.com/ascherer/0235fd0c7c16bbe8a03d87eb88c27aeb) for details. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

Re: [Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
I'll `bisect`: compilation worked at 7ffc4d1 in September (when I submitted my last PR). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Compilation fails. (#608)

2018-12-09 Thread Andreas Scherer
Trying to do the following on Kubuntu 16.04.5 ``` git clone --depth=1 g...@github.com:ascherer/rpm.git cd rpm sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt update sudo apt install autoconf-archive fakechroot libarchive-dev:amd64 libdb4.8 libdb4.8++ libdb4.8++-dev libdb4.8-dev

Re: [Rpm-maint] [rpm-software-management/rpm] Pass %patch options to patch command as is. (#579)

2018-11-05 Thread Andreas Scherer
No, I'm just being pedantic. :smiley: -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/579#issuecomment-435932580___ Rpm-maint

[Rpm-maint] [rpm-software-management/rpm] Pass %patch options to patch command as is. (#579)

2018-10-26 Thread Andreas Scherer
The `%patch` macro uses only single-character options; for consistency, these are passed to the `patch` command as well. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/579 -- Commit Summary -- * Pass %patch options to

Re: [Rpm-maint] [rpm-software-management/rpm] Short option for SCM setting. (#564)

2018-10-25 Thread Andreas Scherer
@ascherer pushed 1 commit. 27409eb Add short rationale for shortcut '--scm=SCM'. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] [RFE] Provide a way to store checksum of sources in .spec file (#570)

2018-10-11 Thread Andreas Scherer
See issue #463. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/570#issuecomment-429056223___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Short option for SCM setting. (#564)

2018-10-08 Thread Andreas Scherer
Aside: I haven't noticed (m)any incompatibilities with `git`, `git_am`, `quilt`, `gendiff`, and the default `patch` backends with any of my specfiles, where `%autosetup`/`%autopatch` is used. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or

Re: [Rpm-maint] [rpm-software-management/rpm] Short option for SCM setting. (#564)

2018-10-08 Thread Andreas Scherer
It's much easier to type. As the co-author and current maintainer of `debbuild`, I often run tests on my own packages with various SCM programs. With the exception of a single (private) specfile, where several non-automatic `git commit`commands are hard-coded, non of my other specfiles uses the

Re: [Rpm-maint] [rpm-software-management/rpm] Support filenames with spaces in filelists (#568)

2018-10-07 Thread Andreas Scherer
Try `%{quote:Bodoni Specimen.pdf}`. (Off the top of my hat.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Short option for SCM setting. (#564)

2018-10-07 Thread Andreas Scherer
… and for `git`, `git_am`, `gendiff`. I don't have `hg`, `quilt` installed to check these. What else? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Short option for SCM setting. (#564)

2018-10-07 Thread Andreas Scherer
Why? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/564#issuecomment-427672948___ Rpm-maint mailing list

[Rpm-maint] [rpm-software-management/rpm] Short option for SCM setting. (#564)

2018-10-06 Thread Andreas Scherer
In addition to `--define="__scm "` and `-D "__scm "`, rpmbuild now acknowledges the short form `-S ` for selecting the versioning system from the command line. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/564 -- Commit

Re: [Rpm-maint] [rpm-software-management/rpm] Shortcut option '-S' for rpmbuild (#100)

2018-10-06 Thread Andreas Scherer
Hand over to PR #564. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/100#issuecomment-427557546___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Shortcut option '-S' for rpmbuild (#100)

2018-10-06 Thread Andreas Scherer
Closed #100. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/100#event-1888486062___ Rpm-maint mailing list

[Rpm-maint] [rpm-software-management/rpm] Remove redundant 'cd %{_builddir}'. (#563)

2018-10-04 Thread Andreas Scherer
And reuse the already exported environment. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/563 -- Commit Summary -- * Remove redundant 'cd %{_builddir}'. -- File Changes -- M build/parsePrep.c (9) M macros.in (2)

Re: [Rpm-maint] [rpm-software-management/rpm] Add %setup option -pN. (#558)

2018-10-03 Thread Andreas Scherer
Closed #558. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/558#event-1882474077___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Add macros for default flags of file extractors. (#557)

2018-10-03 Thread Andreas Scherer
Done. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/557#issuecomment-426715690___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-03 Thread Andreas Scherer
@ascherer pushed 1 commit. 1338c02 Compactify tar option string. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-03 Thread Andreas Scherer
@ascherer pushed 1 commit. cc31bc5 Correctly inject gem spec options. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-02 Thread Andreas Scherer
Don't worry. I'll smash my commits after I'm back at my own machine, where I can actually compile and check this stuff.  -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-02 Thread Andreas Scherer
@ascherer pushed 1 commit. 6e2b98a DRY: Uniform error handling. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-02 Thread Andreas Scherer
@ascherer pushed 1 commit. 001509e Quit processing if tar fails. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-02 Thread Andreas Scherer
@ascherer pushed 2 commits. 6036ec0 Source: file extraction may use other filters. 0b4473e Use default option macros for extractors. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-10-01 Thread Andreas Scherer
@pmatilai I'll try to provide a more generic approach. Combining #557 and #558 surely is feasible. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add %setup option -pN. (#558)

2018-09-29 Thread Andreas Scherer
@ascherer pushed 1 commit. c288ac1 Add %autosetup option -tN. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Provide option for %setup to strip path parts in tarballs (#548)

2018-09-28 Thread Andreas Scherer
Closed #548. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/548#event-1874148855___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Provide option for %setup to strip path parts in tarballs (#548)

2018-09-28 Thread Andreas Scherer
Hand over to PR #558. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/548#issuecomment-425521671___ Rpm-maint mailing list

[Rpm-maint] [rpm-software-management/rpm] Add %setup option -pN. (#558)

2018-09-28 Thread Andreas Scherer
The numeric value `N` from `%setup -pN` will be passed to `tar`'s `--strip-component=N` option, which eliminates top `N` parts of paths in the tarball. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/558 -- Commit Summary --

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Provide macronized default option(s) for %setup (#549)

2018-09-28 Thread Andreas Scherer
Closed #549. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/549#event-1873855343___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Provide macronized default option(s) for %setup (#549)

2018-09-28 Thread Andreas Scherer
Hand over to PR #557. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/549#issuecomment-425478667___ Rpm-maint mailing list

[Rpm-maint] [rpm-software-management/rpm] Add macro for tar default flags. (#557)

2018-09-28 Thread Andreas Scherer
`%patch` is supplied with `%_default_patch_flags` from `macros.in`. A similar macro `%_default_tar_flags` may be useful when `%__tar` is invoked by `%setup` "behind the scenes". A possible setting in `macros.in` is `--keep-old-files` (`-k`). You can view, comment on, or merge this pull request

Re: [Rpm-maint] [rpm-software-management/rpm] Purge %_buildshell default. (#550)

2018-09-26 Thread Andreas Scherer
As it stands, `%___build_shell` might as well be renamed to/replaced with `%_buildshell`. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: set builsubdir to the *first* extracted archive not the last one (#551)

2018-09-24 Thread Andreas Scherer
I believe that's what the `-n` option of `%setup` is for. You can (or have to) set/repeat the desired `%buildsubdir` on every invocation of `%setup`. (IIRC, multiple `%setup`s are deemed esoteric/byzantine anyway.) -- You are receiving this because you are subscribed to this thread. Reply to

[Rpm-maint] [rpm-software-management/rpm] Purge %_buildshell default. (#550)

2018-09-23 Thread Andreas Scherer
`%__build_shell` is perfectly set up to work without it. Note: You can use `rpmbuild --define="_buildshell /bin/bash"` to use a different shell interpreter. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/550 -- Commit

[Rpm-maint] [rpm-software-management/rpm] RFE: Provide macronized default option(s) for %setup (#549)

2018-09-22 Thread Andreas Scherer
`%patch` is supplied with `%_default_patch_flags` from `macros.in`. A similar macro `%_default_tar_flags` may be useful when `%__tar` is invoked by `%setup` "behind the scenes". A possible setting in `macros.in` might be `--keep-old-files` (`-k`). -- You are receiving this because you are

[Rpm-maint] [rpm-software-management/rpm] RFE: Provide option for %setup to strip path parts in tarballs (#548)

2018-09-21 Thread Andreas Scherer
`%patch` provides option `-pN` that gets promoted to `patch` with the same name. I propose a similar option `-pN` for `%setup` that gets promoted to `tar` as its option `--strip-component=N` (available both in Linux and BSD tar). -- You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

2018-09-21 Thread Andreas Scherer
@ignatenkobrain what exactly are you trying to set up in the `BUILD` arena? After downloading ca. 80 MB (which most certainly is not a 'minimal' example), I find that the two tarballs contain top-level directories `nipy-data-0.2/` and `nipy-templates-0.2/` respectively. So, with your example

Re: [Rpm-maint] [rpm-software-management/rpm] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

2018-09-21 Thread Andreas Scherer
Has anybody tried to use ``` %autosetup -c -T -a 0 -N %autosetup -T -a 1 ``` ? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

2018-08-29 Thread Andreas Scherer
Maybe `%autosetup` should be "internalized" in `parsePrep.c` alongside `%setup`? For the most part – after groking and converting some options – it would call `doSetupMacro()` (plus `%autopatch`). Moreover, it would be possible to issue a more useful diagnostic if the user requests an unknown

Re: [Rpm-maint] [rpm-software-management/rpm] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

2018-08-27 Thread Andreas Scherer
This reminds me of the [weirdness of `%patch -P 1 2 3`](https://github.com/rpm-software-management/rpm/pull/19). Would it useful to make matters with `%setup` more complicated by permitting options `-b` and `-a` to have multiple numeric arguments? :wink: BTW, `debbuild`'s `%autosetup`

Re: [Rpm-maint] [rpm-software-management/rpm] [feature request] autopatch to handle scm same as autosetup (#442)

2018-08-27 Thread Andreas Scherer
You can use `%autosetup -N -S git` to initialize `%__scm` and then `%autopatch`/`%apply_patch` continues appropriately. I believe I have a private specfile somewhere that makes use of such a recipe (plus some manual `git commit`invocations in between). -- You are receiving this because you

Re: [Rpm-maint] [rpm-software-management/rpm] Macros: Use full build template (#480)

2018-08-12 Thread Andreas Scherer
@Conan-Kudo you may want to try the new `%_debmacrodir` from debbuild 18.8.1 for your macro bundle. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] %autopatch -p1 fails with rpmbuild 4.14.90 (#484)

2018-08-07 Thread Andreas Scherer
@pmatilai Maybe I should simply delete the empty `%build` stage in this specfile. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] %autopatch -p1 fails with rpmbuild 4.14.90 (#484)

2018-08-06 Thread Andreas Scherer
After neutralizing the TeX macros, I can't reproduce the patch error. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] %autopatch -p1 fails with rpmbuild 4.14.90 (#484)

2018-08-06 Thread Andreas Scherer
Closed #484. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/484#event-1773221029___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-08-01 Thread Andreas Scherer
I just learned about `make check` (and `fakechroot`) and can report that the modified `rpmbuild` produces the exactly same 70,986 bytes of log output as the original `rpmbuild` as of `HEAD`. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-31 Thread Andreas Scherer
@ascherer pushed 1 commit. 74daeff Addendum: Clean up logic in 'doScript()'. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-30 Thread Andreas Scherer
Yep, I just wrote a [gist with an escape function](https://gist.github.com/ascherer/c5813ade3df9207573be0227555371d0) on my machine at work. I'll incorporate this in the real code at home later and rephrase the PR accordingly. -- You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-30 Thread Andreas Scherer
Don't rush me! I'll try to add the '%' masking ASAP. :o) Maybe in the meantime someone can direct me to the canonical way inside the rpm codebase? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
@ascherer pushed 1 commit. c77f6d3 Activate empty default for %___build_body. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
Thanks, now `sgb.soec` works fine with **rpmbuild 4.14.90**. I propose to apply this (squashed) PR for inclusion. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] %autopatch -p1 fails with rpmbuild 4.14.90 (#484)

2018-07-29 Thread Andreas Scherer
The following specfile works fine with **rpm 4.12.0.1**, but fails with **rpm 4.12.0.1**. ``` Name: tetex-anschrift Summary: Eigene Briefgestaltung mit diversen LaTeX-Klassen Version: 1.4 Release: 8 Packager: Andreas Scherer License: LPPL URL: localhost://home/andreas/TeX/Briefe/anschrift

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
And finally `sudo make install`: ``` make install-recursive make[1]: Verzeichnis „/opt/github/rpm“ wird betreten Making install in po make[2]: Verzeichnis „/opt/github/rpm/po“ wird betreten /bin/mkdir -p /usr/local/share installing ar.gmo as /usr/local/share/locale/ar/LC_MESSAGES/rpm.mo

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
Àfter `sed "s/lua >=/lua5.2 >=/g" -i configure` the following `./configure` writes this: ``` checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
Here's the output from `./autogen.sh --noconfigure`: ``` Copying file ABOUT-NLS Copying file config.rpath Creating directory m4 Copying file m4/codeset.m4 Copying file m4/gettext.m4 Copying file m4/glibc2.m4 Copying file m4/glibc21.m4 Copying file m4/iconv.m4 Copying file m4/intdiv0.m4 Copying

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
Why is it not build resp. installed by the recipe above? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
What is `/usr/local/lib/rpm/elfdeps` and how to I compile it from the sources of rpm 4.14.90? This missing executable (?) breaks all my packages. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
@ascherer pushed 1 commit. efb1355 Purge scriptlet files for production. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
@ascherer pushed 1 commit. bcff142 Purge test stage scriptlets. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
@ascherer pushed 1 commit. 1080ad3 Successful run with modified rpm 4.14.90 (almost). -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-29 Thread Andreas Scherer
@ascherer pushed 3 commits. 3f29960 Failed run with modified rpm 4.14.90. ffcf9ef Reshuffle code to concat stage script parts. 665c32b Clean out the diagnostics and old comments. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-28 Thread Andreas Scherer
@ascherer pushed 1 commit. de4dd0a Failed run with modified rpm 4.14.90. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-28 Thread Andreas Scherer
Successo! It looks like I have installed enough development stuff to make ``` ./autogen.sh --noconfigure sed "s/lua >=/lua5.2 >=/g" -i configure ./configure make sudo make install ``` complete. Now I seem to have ``` LD_LIBRARY_PATH=/usr/local/lib rpmbuild --version ``` respond with "4.14.90" and

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-28 Thread Andreas Scherer
@ascherer pushed 1 commit. 6ba0bec Add header for 'rasprintf()'. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-28 Thread Andreas Scherer
@ascherer pushed 1 commit. 3383d3d Next step of my 'gedankenexperiment'. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-27 Thread Andreas Scherer
So I guess I should investigate `rpmPopMacro(NULL, '___build_body')` and `rpmPushMacro(NULL, '___build_body', sb)` (approximately), iff the global context is correct. Probably I should reestablish the build environment in order to compile `rpmbuild` locally. (The last time was on Mint, but on

Re: [Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-27 Thread Andreas Scherer
Thanks @n3npq for your comments. My considerations were indeed triggered by today's work on `debbuild`, which (a) didn't use `%___build_post` at all, and (b) would use the inspecific value **0** in all situations, even errors. After inspecting the PR for `debbuild`, I changed `debbuild`'s

Re: [Rpm-maint] [rpm-software-management/rpm] Use full %___build_template (#479)

2018-07-27 Thread Andreas Scherer
Closed #479. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/479#event-1757060262___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Use full %___build_template (#479)

2018-07-27 Thread Andreas Scherer
See the following pull request #480. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/479#issuecomment-408390409___ Rpm-maint

[Rpm-maint] [rpm-software-management/rpm] Use full build template (#480)

2018-07-27 Thread Andreas Scherer
Wouldn't it be nice (or would it) to use the full power of macro `%___build_template` if only it included the `%___build_body` and the vital `%___build_post` part already? Unfortunately, I'm not familiar with the internal macro engine of RPM to finish this myself, but I hope for someone more

[Rpm-maint] [rpm-software-management/rpm] Use full %___build_template (#479)

2018-07-27 Thread Andreas Scherer
Don't abort macro [`%__build_template`](https://github.com/rpm-software-management/rpm/blob/master/macros.in#L834) after `%___build_pre`, but set `%___build_body` "somewhere in the middle". (See the [dynamic solution in

[Rpm-maint] [rpm-software-management/rpm] Macros in script comments are expanded (#140)

2017-01-30 Thread Andreas Scherer
At least with **rpmbuild 4.12.0.1** on Kubuntu 16.04 it seems to be impossible to comment parts of script sections. This code ``` %build # Don't expand %autopatch here ``` _does_ invoke macro `%autopatch` quite inappropriately. -- You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] Conditional macro expansion fails (#127)

2017-01-16 Thread Andreas Scherer
Closed #127. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/127#event-924250381___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Conditional macro expansion fails (#127)

2017-01-16 Thread Andreas Scherer
In the particular case of [`%autosetup` in `sgb.spec`](https://github.com/ascherer/sgb/blob/local/sgb.spec#L52), using `-N` or `-p1` depending on the CLI option `--without patches` is utterly redundant, because [the set of patches is

[Rpm-maint] [rpm-software-management/rpm] Conditional macro expansion fails (#127)

2017-01-13 Thread Andreas Scherer
I have [at least one example](https://github.com/ascherer/sgb/blob/local/sgb.spec#L53) where the conditional macro `%{?with_patches:-p1}` does _not_ produce the expected `-p1` option correctly. This occurs with **rpmbuild 4.12** on **Kubuntu 16.04**. -- You are receiving this because you

[Rpm-maint] [rpm-software-management/rpm] Shortcut option '-S' for rpmbuild (#100)

2016-11-20 Thread Andreas Scherer
If one does _not_ use the `-S SCM` option of the `%autosetup` macro in a specfile, it is possible to activate a SCM of choice by invoking `rpmbuild` with the somewhat convoluted option ``` --define="__scm SCM" ``` It would be even more convenient to have a shortcut option `-S SCM` on the

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-02-22 Thread Andreas Scherer
I can't find any good reason. Case closed. --- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/55#issuecomment-187211753___ Rpm-maint mailing list Rpm-maint@lists.rpm.org

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-29 Thread Andreas Scherer
Replacing `%__scm_apply_quilt(qp:m:)` according to http://mywiki.wooledge.org/Bashism from ``` %{__quilt} import %{-p:-p%{-p*}} %{1} && %{__quilt} push %{-q} ``` to ``` mkfifo debbuild.fifo; cat >debbuild.fifo &\ %{__quilt} import %{-p:-p%{-p*}} -P %{-m*} debbuild.fifo && %{__quilt} push %{-q}\

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-29 Thread Andreas Scherer
Another try with `<(cat)` instead of `%{1}`: Set **bash** as executing shell in the specfile ``` %prep %define _buildshell /bin/shell %autosetup -S svn ``` This produces the correct commands ``` + /bin/cat /home/andreas/Programming/RPM/SOURCES/0001-Fix-intermediate-bugs.patch + /usr/bin/svn

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-29 Thread Andreas Scherer
I suggest to stick with `%{1}` (for both `%__scm_apply_svn` and `%__scm_apply_quilt`) and go without compressed patches (well, `quilt` _does_ this internally). --- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-28 Thread Andreas Scherer
@lkardos Thanks for the hint; that syntax was new to me. In a first attempt, it indeed works from the console with `quilt` and `.zip`ped patches. However, `<(cat)` seems to be **bash** syntax. Both **debbuild** and **rpmbuild** use `#!/bin/sh` as the executing shell interpreter, which – at

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-28 Thread Andreas Scherer
Keyword "process substitution": http://mywiki.wooledge.org/Bashism --- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/55#issuecomment-176393161___ Rpm-maint mailing list Rpm-maint@lists.rpm.org

Re: [Rpm-maint] [rpm] Put all Perl-related macros in a single file. (#37)

2016-01-28 Thread Andreas Scherer
Personally, I don't use the Perl macros, but I know of [at least this project](https://github.com/pld-linux/perl-Pod-Simple/blob/master/perl-Pod-Simple.spec#L5) that makes use of `macros.perl`. (I suggested to [use `%_rpmconfigdir`](https://github.com/pld-linux/perl-Pod-Simple/pull/1) for the

Re: [Rpm-maint] [rpm] Permit dynamic selection of SCM. (#56)

2016-01-28 Thread Andreas Scherer
What error do you get? I just checked, installed _this_ branch and edited [MMIX specfile](https://github.com/ascherer/mmix/blob/local/mmix.spec#L36) accordingly. ``` debbuild -bp SPECS/mmix.spec ``` runs perfectly with `-S git`, `-S git_am`, `-S patch`, and `-S quilt`, but **not** with `-S

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-28 Thread Andreas Scherer
> @@ -1120,6 +1122,23 @@ done \ > %{__patch} %{-p:-p%{-p*}} %{-q:-s}\ > %{__bzr} commit %{-q} -m %{-m*} > > +# Subversion > +%__scm_setup_svn(q)\ > +%{__svnadmin} create .svnrepos\ > +%{__svn} mkdir %{-q} -m "Create directory structure." > file://`pwd`/.svnrepos/trunk\ > +%{__svn} checkout

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-28 Thread Andreas Scherer
> @@ -1120,6 +1122,23 @@ done \ > %{__patch} %{-p:-p%{-p*}} %{-q:-s}\ > %{__bzr} commit %{-q} -m %{-m*} > > +# Subversion > +%__scm_setup_svn(q)\ > +%{__svnadmin} create .svnrepos\ > +%{__svn} mkdir %{-q} -m "Create directory structure." > file://`pwd`/.svnrepos/trunk\ > +%{__svn} checkout

Re: [Rpm-maint] [rpm] Support Apache Subversion as SCM in the BUILD arena. (#55)

2016-01-28 Thread Andreas Scherer
> @@ -1120,6 +1122,23 @@ done \ > %{__patch} %{-p:-p%{-p*}} %{-q:-s}\ > %{__bzr} commit %{-q} -m %{-m*} > > +# Subversion > +%__scm_setup_svn(q)\ > +%{__svnadmin} create .svnrepos\ > +%{__svn} mkdir %{-q} -m "Create directory structure." > file://`pwd`/.svnrepos/trunk\ > +%{__svn} checkout

  1   2   >