Coder Social home page Coder Social logo

Comments (10)

vchrizz avatar vchrizz commented on August 26, 2024

try https://salsa.debian.org/debian/olsrd

from olsrd.

pmelange avatar pmelange commented on August 26, 2024

Thanks for the link.

I have a fork of OLSRd, so I tried the following. Unfortunately it didn't work.

git clone <myForkedRepo.git>
cd olsrd
git checkout <myBranch>
mkdir debbuild
cd debbuild
git clone https://salsa.debian.org/debian/olsrd.git
mv olsrd/debian ..
cd ..
echo "1.0" > debian/source/format
vi debian/changelog # update to my version number
dpkg-buildpackage -uc -us

now instead of just making the debian packages, it seems to want to install olsrd. That is not what I want. Here is the error:

========= C O N F I G U R A T I O N - F I L E ============
olsrd uses the configfile /etc/olsrd/olsrd.conf
a default configfile. A sample RFC-compliance aimed
configfile can be found in olsrd.conf.default.rfc.
However none of the larger OLSRD using networks use that
so install a configfile with activated link quality exstensions
per default.
can be found at files/olsrd.conf.default.lq
==========================================================
mkdir -p /etc/olsrd
mkdir: cannot create directory ‘/etc/olsrd’: Permission denied
Makefile:168: recipe for target 'install_olsrd' failed
make[2]: *** [install_olsrd] Error 1
make[2]: Leaving directory '/home/pmelange/src/olsrd'
debian/rules:27: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 2
make[1]: Leaving directory '/home/pmelange/src/olsrd'
debian/rules:15: recipe for target 'binary' failed
make: *** [binary] Error 2

The only files generated are olsrd_<version>.dsc and olsrd_<version>.tar.gz

Can you help any further? Would it make more sense to add the debian directoy to this repo?

from olsrd.

vchrizz avatar vchrizz commented on August 26, 2024

mkdir: cannot create directory ‘/etc/olsrd’: Permission denied

had this problem too, thus made a PR: Fix Makefiles not to create files in root dir when building packages

but for building debian packages i considered not to do everything by hand and found this neat software debian-jenkins-glue to be very handy for this task.

from olsrd.

pmelange avatar pmelange commented on August 26, 2024

jenkins-glue seems to be quite cool, but since my feature is in production, I don't really need it. I just need to make the packages once.

Also, as per the install instructions, I need sudo permission. This should not be a requirement to build debian packages.

I have added the Makefile changes from #63 in my branch, and it works. Thanks for the tip. I look forward to seeing that PR get merged.

But still, README-Debian-package is out of date. Would you say that the instructions above are ok? Or is there some git magic to just get the debian directory from https://salsa.debian.org/debian/olsrd.git and put it directly in my forked olsrd directory structure.

Or, would it be better to have the debian directory in the main olsrd repo?

@fhuberts what do you think?

from olsrd.

vchrizz avatar vchrizz commented on August 26, 2024

Or, would it be better to have the debian directory in the main olsrd repo?

i thought about that too, but since there is a debian catalog "maintained" on salsa.debian.org, i would say its better to use this, so i use that git repo for packaging. a copy of that here would make hassles in having them both sync i guess.
its fairly recent on 0.9.6.1, i forked it and copied changes from github-olsrd repo over into upstream branch, added tag 0.9.6.2 and actually am using my forked repo for building packages.
one could do that too on the salsa-olsrd repo to update it...

from olsrd.

pmelange avatar pmelange commented on August 26, 2024

I Cherry-picked your commit in #63 to my feature branch.

Also, I figured out how to get the debian directory with git magic. I think these instructions are better.

git clone <url to olsrd repo>
cd olsrd
git checkout <you branch> # This step is optional
git add remote debbuild https://salsa.debian.org/debian/olsrd.git 
git fetch debbuild
git checkout debbuild/master debian
echo "1.0" > debian/source/format
vi debian/changelog # Set the version number on top line
dpkg-buildpackage -uc -us
ls-l ../olsrd*.*

I would make the change to README-Debian-package. What do you think?

from olsrd.

vchrizz avatar vchrizz commented on August 26, 2024

echo "1.0" > debian/source/format
this is often made i noticed but not really a good idea, see this link for details: https://wiki.debian.org/Projects/DebSrc3.0
in my opinion, better to let it on "3.0 (quilt)" and make everything around work with it, instead using hacks for quick&dirty fix.

from olsrd.

pmelange avatar pmelange commented on August 26, 2024

Leaving it as "3.0 (quilt)" gave me the following error:

dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../olsrd_0.9.6.1.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b olsrd gave error exit status 255

I would say that incompatibility with "3.0 (quilt)" should be it's own issue.

from olsrd.

vchrizz avatar vchrizz commented on August 26, 2024

that error just tells you, it wants to build from a (previously created) tar file.
create that tarball beforehand and it should work.

from olsrd.

pmelange avatar pmelange commented on August 26, 2024

resolved 7e33556

from olsrd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.