Re: [Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-02 Thread Bernhard M. Wiedemann
I put it there because the spec says:
> Build systems MUST NOT overwrite this variable for child processes to consume 
> if it is already present.

But then, it probably does not apply if we had set it ourselves (and not the 
user) for the previous rpm to build.

-- 
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/143#issuecomment-276958227___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-02 Thread Florian Festi
Hmm, I am wondering if the 
getenv("SOURCE_DATE_EPOCH") == NULL
condition is really correct here. The problem is that rpmbuild might be used to 
build multiple packages in one go. But even if that was not possible someone 
using the API could.
Do we really need to give precedence of an already set  SOURCE_DATE_EPOCH 
environment variable over %source_date_epoch_from_changelog ?

-- 
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/143#issuecomment-276941975___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-01 Thread Florian Festi
Merged #143.

-- 
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/143#event-945149110___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-01 Thread Bernhard M. Wiedemann
test looks good.

-- 
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/143#issuecomment-276685196___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-01 Thread Bernhard M. Wiedemann
change looks reasonable. I am giving it a round of testing.
Under what condition would headerGet return false here? OOM? no changelog entry 
found?

-- 
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/143#issuecomment-276678061___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-01 Thread Florian Festi
@bmwiedemann would this work for you?
I left you as author of the patch but I can reset it if you wish.

-- 
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/143#issuecomment-276668346___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] set SOURCE_DATE_EPOCH from changelog (#143)

2017-02-01 Thread Florian Festi
Alternative implementation for #141 

It sets the environment variable during the build stage and not while parsing 
the spec which should be free from side effects.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/143

-- Commit Summary --

  * set SOURCE_DATE_EPOCH from changelog

-- File Changes --

M build/build.c (15)
M macros.in (4)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/143.patch
https://github.com/rpm-software-management/rpm/pull/143.diff

-- 
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/143
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint