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

DKMS changes #200

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

DKMS changes #200

wants to merge 5 commits into from

Conversation

anandhk-juniper
Copy link
Contributor

Create one new package 'contrail-vrouter-src-dkms' that will have the 'vrouter' kernel module sources and the required sandesh files to compile the module in any system.

echo "AUTOINSTALL=\"yes\"" >> $(_packagedir)/dkms.conf


install -p -m 755 $(_srcdir)/dp-core/SConscript $(_packagedir)/dp-core/SConscript
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of individually selecting each of the files, can't we tar the entire directory and put the tarball?

This way whenever we add or delete files in the source, we don't have to modify the spec/rules file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello ND,

There are a couple of problems in tar-ing (though, none are signifcant). Firstly,

it is possible that there could be binary files in the same directory. Secondly, not

all the files inside the vrouter directory is copied. Thirdly, all the sources don't

actually come from the same directory. However, I agree to the point that people

can forget adding files into the spec file. I do not have a good solution for this.

Let me know.

Thanks,

Anand


From: ndramesh notifications@github.com
Sent: Saturday, April 5, 2014 6:44 AM
To: Juniper/contrail-packaging
Cc: Anand H Krishnan
Subject: Re: [contrail-packaging] DKMS changes (#200)

In common/debian/contrail-vrouter-src-dkms/debian/rules:

  • install -d -m 755 $(_packagedir)/sandesh
    
  • install -d -m 755 $(_packagedir)/sandesh/gen-c/
    
  • install -d -m 755 $(_packagedir)/sandesh/library/c
    
  • install -d -m 755 $(_packagedir)/sandesh/library/c/protocol
    
  • install -d -m 755 $(_packagedir)/sandesh/library/c/transport
    
  • echo "MAKE[0]=\"'make' -C . KERNELDIR=/lib/modules/\$${kernelver}/build\"" >> $(_packagedir)/dkms.conf
    
  • echo "CLEAN[0]=\"'make' -C . KERNELDIR=/lib/modules/\$${kernelver}/build\"" >> $(_packagedir)/dkms.conf
    
  • echo "DEST_MODULE_LOCATION[0]=\"/kernel/extra/net/vrouter\"" >> $(_packagedir)/dkms.conf
    
  • echo "BUILT_MODULE_NAME[0]=\"vrouter\"" >> $(_packagedir)/dkms.conf
    
  • echo "PACKAGE_NAME=vrouter" >> $(_packagedir)/dkms.conf
    
  • echo "PACKAGE_VERSION=$(BUILDTAG)" >> $(_packagedir)/dkms.conf
    
  • echo "AUTOINSTALL=\"yes\"" >> $(_packagedir)/dkms.conf
    
  • install -p -m 755 $(_srcdir)/dp-core/SConscript $(_packagedir)/dp-core/SConscript
    

Instead of individually selecting each of the files, can't we tar the entire directory and put the tarball?

This way whenever we add or delete files in the source, we don't have to modify the spec/rules file.

Reply to this email directly or view it on GitHubhttps://github.com//pull/200/files#r11319153.

- update the maintainer and copyright labels
rajreddy pushed a commit to rajreddy/contrail-packaging that referenced this pull request Nov 24, 2014
Tweak log message and level for Router ID and AS change.
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