[Bug 1872427] Review Request: ec2-hibinit-agent - support for hibernation for Amazon ec2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1872427



--- Comment #16 from Neal Gompa <ngompa13@xxxxxxxxx> ---
(In reply to Mohamed Aboubakr from comment #14)
> Question related to 
> 
> %py3_build_egg
> %py3_install_egg
> 
> I receive this error 
> 
> 
> error: Installed (but unpackaged) file(s) found:
>    /usr/config/hibinit-config.cfg
>   

You should probably fix this in the code, because this is a legitimate error.
You have made a setup.py that installs a config file in the wrong place. Either
don't have the setup.py install the file, or adjust it to install it to the
correct location.

> /usr/lib/python3.6/site-packages/ec2_hibinit_agent-1.0.2-py3.6.egg-info/PKG-
> INFO
>   
> /usr/lib/python3.6/site-packages/ec2_hibinit_agent-1.0.2-py3.6.egg-info/
> SOURCES.txt
>   
> /usr/lib/python3.6/site-packages/ec2_hibinit_agent-1.0.2-py3.6.egg-info/
> dependency_links.txt
>   
> /usr/lib/python3.6/site-packages/ec2_hibinit_agent-1.0.2-py3.6.egg-info/
> top_level.txt
> 
> I did this fix under %file section 
> 
> %{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info/*
> %{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info/._SOURCES.txt
> %{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info/.
> _dependency_links.txt
> 
> 
> The feedback that I received 
> All the files in
> `%{python3_sitelib}/ec2_hibinit_agent-%{version}-py3.*.egg-info` are owned,
> but that directory is not [3]. 
> 
> [3]
> https://docs.fedoraproject.org/en-US/packaging-guidelines/UnownedDirectories/
> #_wildcarding_files_inside_a_created_directory
> 
> 
> I confused little here, what should I do ? 
> 
> If I shouldn't use py3_build_egg and use py3_build, what should I do in the
> above error ?

You can just do the following for the Python metadata files:

%{python3_sitelib}/ec2_hibinit_agent-%{version}-*.egg-info/


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux