Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix udev rule filename(s) #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sephalon
Copy link

The udev rule filename must match the package name for dh_installudev to
recognize it.

The udev rule filename must match the package name for dh_installudev to
recognize it.
Copy link
Collaborator

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a package with udev rules to test this change against but I had one comment based on my experience adding Suite3 in #147.

Comment on lines -1471 to +1476
link_func(fname,
os.path.join(debian_dir, '%s.udev' % debinfo.package))
if debinfo.with_python2:
link_func(fname,
os.path.join(debian_dir, '%s.udev' % debinfo.package))
if debinfo.with_python3:
link_func(fname,
os.path.join(debian_dir, '%s.udev' % debinfo.package3))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked how this will behave when both with_python2 and with_python3 are true? Does it create issues if the udev rules are linked under both package names?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried this and it works fine; the udev rule file actually has to be present twice (with prefix python- and python3-) in that case to be picked up by both the Python 2 and 3 package.

Copy link
Collaborator

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not given this a try myself but I'm satisfied with the explanation given for the question I had regarding building with both python2 and python3 and the change looks good otherwise.

@sephalon
Copy link
Author

Can this be merged then? It would be great to have an stdeb bugfix release since this blocks linux-automation/usbsdmux#37 from being merged.

@nuclearsandwich nuclearsandwich added this to the 0.10.1 milestone May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants