diff mbox series

package: always sort the conffiles

Message ID 20230727153732.1104305-1-j.lemetayer@kerlink.fr
State New
Headers show
Series package: always sort the conffiles | expand

Commit Message

Jean-Marie Lemetayer July 27, 2023, 3:37 p.m. UTC
To improve package reproducibility, the conffiles order should not be
directly linked to the file system.

Sorting the conffiles solves this issue.
---
 meta/lib/oe/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexandre Belloni July 28, 2023, 10:31 a.m. UTC | #1
Hello,

On 27/07/2023 17:37:32+0200, Jean-Marie Lemetayer via lists.openembedded.org wrote:
> To improve package reproducibility, the conffiles order should not be
> directly linked to the file system.
> 
> Sorting the conffiles solves this issue.


This is missing you Signed-off-by tag.

> ---
>  meta/lib/oe/package.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
> index 70040f09e7..9d70925b9b 100644
> --- a/meta/lib/oe/package.py
> +++ b/meta/lib/oe/package.py
> @@ -613,7 +613,7 @@ def get_conffiles(pkg, d):
>          conf_list[i] = conf_list[i][1:]
>  
>      os.chdir(cwd)
> -    return conf_list
> +    return sorted(conf_list)
>  
>  def legitimize_package_name(s):
>      """
> -- 
> 2.34.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#184964): https://lists.openembedded.org/g/openembedded-core/message/184964
> Mute This Topic: https://lists.openembedded.org/mt/100392906/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 70040f09e7..9d70925b9b 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -613,7 +613,7 @@  def get_conffiles(pkg, d):
         conf_list[i] = conf_list[i][1:]
 
     os.chdir(cwd)
-    return conf_list
+    return sorted(conf_list)
 
 def legitimize_package_name(s):
     """